CSS color names · Purples

Medium Slate Blue color: hex #7b68ee, RGB and HSL

Medium Slate Blue is the CSS keyword mediumslateblue, hex #7b68ee, rgb(123, 104, 238), hsl(249, 80%, 67%). It is a medium, vivid blue in the purples family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
mediumslateblue
Hex
#7b68ee
RGB
rgb(123, 104, 238)
HSL
hsl(249, 80%, 67%)
On white
4.15:1 — large text and UI only (3:1)
On black
5.06:1 — passes AA for body text
.example {
  color: mediumslateblue;          /* keyword */
  color: #7b68ee;          /* hex */
  color: rgb(123, 104, 238); /* rgb */
  color: hsl(249, 80%, 67%); /* hsl */
}

What colors go with medium slate blue

Each match keeps medium slate blue's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside medium slate blue as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#dbee68

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#eebe68
#98ee68

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

#ee7b68
#68ee7b

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#6898ee
#be68ee

Tints and shades of medium slate blue

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as medium slate blue — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#9181f1
#a79af4
#bdb4f7
#d3cdf9
#e9e6fc

Shades (darker)

#4e35e8
#3117cd
#25119a
#180c66
#0c0633

A UI color palette built from medium slate blue

The eight semantic roles an interface actually uses, derived from medium slate blue as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#7b68ee
secondary
#eebe68
accent
#98ee68
background
#fcfcfd
surface
#f3f3f7
text
#131122
muted
#5e568f
border
#e1dfec
Dark mode
primary
#7b68ee
secondary
#eebe68
accent
#98ee68
background
#100e1b
surface
#181528
text
#f4f3f6
muted
#9994b8
border
#2c2749

Using medium slate blue in an interface

Purple is the hue most SaaS products have settled on for a primary — it is distinct from the blues of links and the reds and greens of status. The slate blues and indigo make dependable primaries; the light lavenders make tinted surfaces that still read as brand. Whichever role medium slate blue takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Medium Slate Blue?
Medium Slate Blue is #7b68ee. In CSS the keyword mediumslateblue, the hex #7b68ee, rgb(123, 104, 238) and hsl(249, 80%, 67%) all paint the same color.
What colors go with Medium Slate Blue?
Its complement is #dbee68, the split-complementary pair is #eebe68 and #98ee68, the triadic partners are #ee7b68 and #68ee7b, and the analogous neighbors are #6898ee and #be68ee. In an interface, use Medium Slate Blue for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Medium Slate Blue on the color wheel?
The opposite (complementary) color is #dbee68, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Medium Slate Blue for text?
Medium Slate Blue as text on white has a contrast ratio of 4.15:1, which fails WCAG AA for body text (4.5:1) but passes for large text and UI components (3:1). On black it is 5.06:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.

Similar named colors

More purples

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.