#8F42C8#8F42C8
#8F42C8 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.2% C 0.202 H 307.3°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).
Color values
| HEX | #8F42C8 |
|---|---|
| RGB | rgb(143, 66, 200) |
| HSL | hsl(274, 55%, 52%) |
| HSV | hsv(274, 67%, 78%) |
| CMYK | cmyk(28.5%, 67%, 0%, 21.6%) |
| CIE-LAB | lab(44.10, 55.66, -56.69) |
| CIE-LCH | lch(44.10, 79.44, 314.47°) |
| OKLab | oklab(54.25% 0.1223 -0.1606) |
| OKLCH | oklch(54.25% 0.202 307.3) |
| XYZ | xyz(23.6990, 13.9065, 56.0681) |
| Luminance | 0.1391 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.74
Purply
#983FB2
ΔE00 4.50
Blueviolet
#8A2BE2
ΔE00 5.03
Violet (survey)
#9A0EEA
ΔE00 6.16
Vibrant Purple
#AD03DE
ΔE00 6.23
Darkviolet
#9400D3
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F42C8 #7BC842
analogous
#4C42C8 #8F42C8 #C842BE
triadic
#8F42C8 #C88F42 #42C88F
tetradic
#8F42C8 #C84C42 #7BC842 #42BEC8
square
#8F42C8 #C84C42 #7BC842 #42BEC8
split-complementary
#8F42C8 #BEC842 #42C84C
monochromatic
#4E206F #6F2E9F #8F42C8 #AB71D6 #C7A1E4
Accessibility & contrast
On white
5.55
#8F42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#8F42C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8F42C8
5.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F42C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F42C8 | 1.00 | 5.55 | 3.78 | 5.55 |
| #FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#2269C5
Tritanopia (blue-blind)
#865F80
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8f42c8; /* rgb */ color: rgb(143, 66, 200); /* oklch */ color: oklch(54.2% 0.202 307.3);
Tailwind
colors: {
custom: {
50: '#b47cd9',
500: '#8f42c8',
950: '#000000',
},
}SCSS
$custom: #8f42c8; $custom-light: #b47cd9; $custom-dark: #000000;
JSON
{
"hex": "#8f42c8",
"rgb": {
"r": 143,
"g": 66,
"b": 200
},
"hsl": {
"h": 274.478,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.54249,
"c": 0.20183,
"h": 307.3
},
"luminance": 0.13906
}Semantic roles & 50–950 ramp
primary
#8F42C8
secondary
#AFD096
accent
#DE4A89
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83