#8B42CE#8B42CE
#8B42CE is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.2% C 0.207 H 304.2°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).
Color values
| HEX | #8B42CE |
|---|---|
| RGB | rgb(139, 66, 206) |
| HSL | hsl(271, 59%, 53%) |
| HSV | hsv(271, 68%, 81%) |
| CMYK | cmyk(32.5%, 68%, 0%, 19.2%) |
| CIE-LAB | lab(44.01, 56.21, -60.33) |
| CIE-LCH | lch(44.01, 82.46, 312.98°) |
| OKLab | oklab(54.2% 0.1163 -0.1714) |
| OKLCH | oklch(54.2% 0.207 304.2) |
| XYZ | xyz(23.7337, 13.8417, 59.8019) |
| Luminance | 0.1384 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.30
Blueviolet
#8A2BE2
ΔE00 4.19
Violet (survey)
#9A0EEA
ΔE00 5.73
Purply
#983FB2
ΔE00 5.77
Bluish Purple
#703BE7
ΔE00 5.97
Purpley
#8756E4
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B42CE #85CE42
analogous
#4542CE #8B42CE #CE42CB
triadic
#8B42CE #CE8B42 #42CE8B
tetradic
#8B42CE #CE4542 #85CE42 #42CBCE
square
#8B42CE #CE4542 #85CE42 #42CBCE
split-complementary
#8B42CE #CBCE42 #42CE45
monochromatic
#4D1F77 #6C2BA7 #8B42CE #A973DB #C7A3E7
Accessibility & contrast
On white
5.57
#8B42CE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.77
#8B42CE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B42CE
5.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B42CE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B42CE | 1.00 | 5.57 | 3.77 | 5.57 |
| #FFFFFF | 5.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#0368CB
Tritanopia (blue-blind)
#7E6283
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8b42ce; /* rgb */ color: rgb(139, 66, 206); /* oklch */ color: oklch(54.2% 0.207 304.2);
Tailwind
colors: {
custom: {
50: '#b27cde',
500: '#8b42ce',
950: '#000000',
},
}SCSS
$custom: #8b42ce; $custom-light: #b27cde; $custom-dark: #000000;
JSON
{
"hex": "#8b42ce",
"rgb": {
"r": 139,
"g": 66,
"b": 206
},
"hsl": {
"h": 271.286,
"s": 58.824,
"l": 53.333
},
"oklch": {
"l": 0.54203,
"c": 0.20714,
"h": 304.2
},
"luminance": 0.13842
}Semantic roles & 50–950 ramp
primary
#8B42CE
secondary
#B5D498
accent
#E24691
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83