CSS named color
MediumSlateBlue #7B68EE
MediumSlateBlue is a blue with the hex code #7B68EE, which converts to rgb(123, 104, 238). Open #7B68EE in the converter to tweak it.
MediumSlateBlue color values
| HEX | #7B68EE |
|---|---|
| HEX (shorthand) | — |
| RGB | rgb(123, 104, 238) |
| RGBA | rgba(123, 104, 238, 1) |
| 8-digit HEX | #7B68EEFF |
| HSL | hsl(249, 80%, 67%) |
| HSV / HSB | 249°, 56%, 93% |
| CMYK | 48%, 56%, 0%, 7% |
| RGB 0–1 | 0.482, 0.408, 0.933 |
| Decimal | 8087790 |
| CSS keyword | mediumslateblue |
How #7B68EE converts to RGB
Split the hex code into three pairs and read each pair as a base-16 number: 7B → 123, 68 → 104, EE → 238. That gives rgb(123, 104, 238). The step-by-step guide explains the math.
Shades of MediumSlateBlue
Mixed toward black in 10% steps. Click a swatch to copy its hex.
Tints of MediumSlateBlue
Mixed toward white in 10% steps.
Color harmonies
Hue rotations of MediumSlateBlue on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.
Complementary
Analogous
Split-complementary
Triadic
Tetradic (square)
Contrast and accessibility
| Text | Background | Ratio | WCAG 2.x |
|---|---|---|---|
| White | MediumSlateBlue | 4.15:1 | AA Large only |
| Black | MediumSlateBlue | 5.05:1 | AA |
Use black text on a mediumslateblue background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.
Use MediumSlateBlue in CSS
.element {
color: mediumslateblue; /* keyword */
background-color: #7B68EE; /* hex */
border-color: rgb(123 104 238 / 50%); /* 50% transparent */
}
Need it semi-transparent? Append an alpha byte: #7B68EE80 is MediumSlateBlue at 50% opacity. See RGBA & transparency.
Similar named colors
FAQ
What is the HEX code for MediumSlateBlue?
The CSS named color mediumslateblue is #7B68EE in hexadecimal. In CSS you can write color: mediumslateblue; or color: #7B68EE; — both produce the same pixel.
What is MediumSlateBlue in RGB?
MediumSlateBlue is rgb(123, 104, 238): red 123, green 104, blue 238 on the 0–255 scale. As normalized 0–1 floats that is (0.482, 0.408, 0.933).
Is white or black text more readable on MediumSlateBlue?
Black text is more readable. White on #7B68EE has a contrast ratio of 4.15:1 (AA Large only), black on #7B68EE has 5.05:1 (AA). WCAG AA needs 4.5:1 for normal text.