#8B42CF#8B42CF
#8B42CF is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.3% C 0.208 H 303.9°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #8B42CF |
|---|---|
| RGB | rgb(139, 66, 207) |
| HSL | hsl(271, 59%, 54%) |
| HSV | hsv(271, 68%, 81%) |
| CMYK | cmyk(32.9%, 68.1%, 0%, 18.8%) |
| CIE-LAB | lab(44.08, 56.45, -60.79) |
| CIE-LCH | lch(44.08, 82.96, 312.88°) |
| OKLab | oklab(54.28% 0.1162 -0.1728) |
| OKLCH | oklch(54.28% 0.208 303.9) |
| XYZ | xyz(23.8556, 13.8905, 60.4437) |
| Luminance | 0.1389 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.35
Blueviolet
#8A2BE2
ΔE00 4.12
Violet (survey)
#9A0EEA
ΔE00 5.67
Bluish Purple
#703BE7
ΔE00 5.87
Purply
#983FB2
ΔE00 5.90
Purpley
#8756E4
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B42CF #86CF42
analogous
#4442CF #8B42CF #CF42CC
triadic
#8B42CF #CF8B42 #42CF8B
tetradic
#8B42CF #CF4442 #86CF42 #42CCCF
square
#8B42CF #CF4442 #86CF42 #42CCCF
split-complementary
#8B42CF #CCCF42 #42CF44
monochromatic
#4D1F78 #6C2BA9 #8B42CF #A973DB #C7A4E8
Accessibility & contrast
On white
5.56
#8B42CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#8B42CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B42CF
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B42CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B42CF | 1.00 | 5.56 | 3.78 | 5.56 |
| #FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#0068CC
Tritanopia (blue-blind)
#7E6283
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8b42cf; /* rgb */ color: rgb(139, 66, 207); /* oklch */ color: oklch(54.3% 0.208 303.9);
Tailwind
colors: {
custom: {
50: '#b27cdf',
500: '#8b42cf',
950: '#000000',
},
}SCSS
$custom: #8b42cf; $custom-light: #b27cdf; $custom-dark: #000000;
JSON
{
"hex": "#8b42cf",
"rgb": {
"r": 139,
"g": 66,
"b": 207
},
"hsl": {
"h": 271.064,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.54276,
"c": 0.20819,
"h": 303.9
},
"luminance": 0.1389
}Semantic roles & 50–950 ramp
primary
#8B42CF
secondary
#B5D598
accent
#E34591
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83