#8B42CD#8B42CD
#8B42CD is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.1% C 0.206 H 304.4°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).
Color values
| HEX | #8B42CD |
|---|---|
| RGB | rgb(139, 66, 205) |
| HSL | hsl(272, 58%, 53%) |
| HSV | hsv(272, 68%, 80%) |
| CMYK | cmyk(32.2%, 67.8%, 0%, 19.6%) |
| CIE-LAB | lab(43.94, 55.98, -59.87) |
| CIE-LCH | lch(43.94, 81.96, 313.08°) |
| OKLab | oklab(54.13% 0.1164 -0.17) |
| OKLCH | oklch(54.13% 0.206 304.4) |
| XYZ | xyz(23.6126, 13.7933, 59.1642) |
| Luminance | 0.1379 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.25
Blueviolet
#8A2BE2
ΔE00 4.27
Purply
#983FB2
ΔE00 5.65
Violet (survey)
#9A0EEA
ΔE00 5.79
Bluish Purple
#703BE7
ΔE00 6.07
Purpley
#8756E4
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B42CD #84CD42
analogous
#4542CD #8B42CD #CD42C9
triadic
#8B42CD #CD8B42 #42CD8B
tetradic
#8B42CD #CD4542 #84CD42 #42C9CD
square
#8B42CD #CD4542 #84CD42 #42C9CD
split-complementary
#8B42CD #C9CD42 #42CD45
monochromatic
#4C1F76 #6C2CA6 #8B42CD #A972DA #C6A3E7
Accessibility & contrast
On white
5.59
#8B42CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.76
#8B42CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B42CD
5.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B42CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B42CD | 1.00 | 5.59 | 3.76 | 5.59 |
| #FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#0868CA
Tritanopia (blue-blind)
#7F6182
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8b42cd; /* rgb */ color: rgb(139, 66, 205); /* oklch */ color: oklch(54.1% 0.206 304.4);
Tailwind
colors: {
custom: {
50: '#b27cdd',
500: '#8b42cd',
950: '#000000',
},
}SCSS
$custom: #8b42cd; $custom-light: #b27cdd; $custom-dark: #000000;
JSON
{
"hex": "#8b42cd",
"rgb": {
"r": 139,
"g": 66,
"b": 205
},
"hsl": {
"h": 271.511,
"s": 58.159,
"l": 53.137
},
"oklch": {
"l": 0.54131,
"c": 0.20608,
"h": 304.4
},
"luminance": 0.13793
}Semantic roles & 50–950 ramp
primary
#8B42CD
secondary
#B4D397
accent
#E14690
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83