Medium Slate Blue Color Code: Hex #7B68EE
The hex code for Medium Slate Blue is #7B68EE (the CSS keyword mediumslateblue). Medium Slate Blue RGB code: rgb(123, 104, 238).
#7B68EEThe same code in all 2 listsMedium Slate Blue color codes: the Medium Slate Blue hex code in every format
Sources
Properties
- Hex codes
- the same in all 2 color lists
- Family
- purple
- Contrast
- 4.15:1 with white, 5.06:1 with black
- CSS keyword
- mediumslateblue
- Character
- mid-tone, vivid
- Readable text on it
- black (AA)
In the X11 slate blue family the ‘medium’ version is brighter than plain slate blue, 93% against 80%, so the prefix does not mean darker.
A mid-tone, vivid violet with a cool cast. In code, mediumslateblue gives exactly this hex value. Every list that includes the name agrees on it, so there is only one code to remember.
Black text reads best on it; white text works only for large headings. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Slate Blue, its closest named neighbour, it looks lighter, more vivid and cooler; beside Medium Purple it looks darker, more vivid and cooler.
Colors that go with Medium Slate Blue
Complementary: the opposite of Medium Slate Blue
#7B68EEBlack text 5.06:1#8D8500Black text 5.49:1#B1AEFABlack text 10.30:1#555000White text 8.29:1
Analogous
#147FF1Black text 5.34:1#7B68EEBlack text 5.06:1#AC54CEBlack text 4.91:1#C6C5FCBlack text 12.79:1
Triadic
#7B68EEBlack text 5.06:1#D05700Black text 5.05:1#00996FBlack text 5.79:1#DBDAFEBlack text 15.47:1
Monochrome
#1E1842White text 16.61:1#4A3E93White text 8.74:1#7B68EEBlack text 5.06:1#9E98F7Black text 8.29:1#C6C5FCBlack text 12.79:1
With neutrals
#7B68EEBlack text 5.06:1#DBDAFEBlack text 15.47:1#0A071FWhite text 19.75:1#7D7CA2Black text 5.28:1
Preview
Heading on Medium Slate Blue
Body text on this color, 5.06:1.
ButtonHeading in Medium Slate Blue
Text in this color on white, 4.15:1.
ButtonTints and shades
#DBDAFE#C6C5FC#B1AEFA#9E98F7#8C81F3#7B68EE#6252C0#4A3E93#332A69#1E1842#0A071F
WhiteMedium Slate BlueBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “X11 color names” (checked 1 Nov 2026)
- Listed in CSS Color 4, meodai color-name-list. About these lists.
Try it: