#8B42CB#8B42CB
#8B42CB is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.0% C 0.204 H 304.9°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).
Color values
| HEX | #8B42CB |
|---|---|
| RGB | rgb(139, 66, 203) |
| HSL | hsl(272, 57%, 53%) |
| HSV | hsv(272, 67%, 80%) |
| CMYK | cmyk(31.5%, 67.5%, 0%, 20.4%) |
| CIE-LAB | lab(43.80, 55.51, -58.94) |
| CIE-LCH | lch(43.80, 80.96, 313.29°) |
| OKLab | oklab(53.99% 0.1167 -0.1673) |
| OKLCH | oklch(53.99% 0.204 304.9) |
| XYZ | xyz(23.3728, 13.6973, 57.9009) |
| Luminance | 0.1370 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.18
Blueviolet
#8A2BE2
ΔE00 4.44
Purply
#983FB2
ΔE00 5.39
Violet (survey)
#9A0EEA
ΔE00 5.93
Bluish Purple
#703BE7
ΔE00 6.27
Purpley
#8756E4
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B42CB #82CB42
analogous
#4742CB #8B42CB #CB42C6
triadic
#8B42CB #CB8B42 #42CB8B
tetradic
#8B42CB #CB4742 #82CB42 #42C6CB
square
#8B42CB #CB4742 #82CB42 #42C6CB
split-complementary
#8B42CB #C6CB42 #42CB47
monochromatic
#4C2073 #6C2DA3 #8B42CB #A872D8 #C6A2E5
Accessibility & contrast
On white
5.62
#8B42CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.74
#8B42CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B42CB
5.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B42CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B42CB | 1.00 | 5.62 | 3.74 | 5.62 |
| #FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#1168C8
Tritanopia (blue-blind)
#7F6181
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #8b42cb; /* rgb */ color: rgb(139, 66, 203); /* oklch */ color: oklch(54.0% 0.204 304.9);
Tailwind
colors: {
custom: {
50: '#b27bdc',
500: '#8b42cb',
950: '#000000',
},
}SCSS
$custom: #8b42cb; $custom-light: #b27bdc; $custom-dark: #000000;
JSON
{
"hex": "#8b42cb",
"rgb": {
"r": 139,
"g": 66,
"b": 203
},
"hsl": {
"h": 271.971,
"s": 56.846,
"l": 52.745
},
"oklch": {
"l": 0.53987,
"c": 0.20397,
"h": 304.9
},
"luminance": 0.13697
}Semantic roles & 50–950 ramp
primary
#8B42CB
secondary
#B2D297
accent
#E0488F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83