#8F42CB#8F42CB
#8F42CB is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.5% C 0.205 H 306.5°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).
Color values
| HEX | #8F42CB |
|---|---|
| RGB | rgb(143, 66, 203) |
| HSL | hsl(274, 57%, 53%) |
| HSV | hsv(274, 67%, 80%) |
| CMYK | cmyk(29.6%, 67.5%, 0%, 20.4%) |
| CIE-LAB | lab(44.30, 56.34, -58.09) |
| CIE-LCH | lch(44.30, 80.93, 314.12°) |
| OKLab | oklab(54.46% 0.122 -0.1647) |
| OKLCH | oklch(54.46% 0.205 306.5) |
| XYZ | xyz(24.0531, 14.0481, 57.9328) |
| Luminance | 0.1405 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.79
Blueviolet
#8A2BE2
ΔE00 4.75
Purply
#983FB2
ΔE00 4.92
Violet (survey)
#9A0EEA
ΔE00 5.92
Vibrant Purple
#AD03DE
ΔE00 6.13
Purpley
#8756E4
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F42CB #7ECB42
analogous
#4B42CB #8F42CB #CB42C2
triadic
#8F42CB #CB8F42 #42CB8F
tetradic
#8F42CB #CB4B42 #7ECB42 #42C2CB
square
#8F42CB #CB4B42 #7ECB42 #42C2CB
split-complementary
#8F42CB #C2CB42 #42CB4B
monochromatic
#4E2073 #6F2DA3 #8F42CB #AB72D8 #C8A2E5
Accessibility & contrast
On white
5.51
#8F42CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.81
#8F42CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8F42CB
5.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F42CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F42CB | 1.00 | 5.51 | 3.81 | 5.51 |
| #FFFFFF | 5.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#1C69C8
Tritanopia (blue-blind)
#856081
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #8f42cb; /* rgb */ color: rgb(143, 66, 203); /* oklch */ color: oklch(54.5% 0.205 306.5);
Tailwind
colors: {
custom: {
50: '#b47cdc',
500: '#8f42cb',
950: '#000000',
},
}SCSS
$custom: #8f42cb; $custom-light: #b47cdc; $custom-dark: #000000;
JSON
{
"hex": "#8f42cb",
"rgb": {
"r": 143,
"g": 66,
"b": 203
},
"hsl": {
"h": 273.723,
"s": 56.846,
"l": 52.745
},
"oklch": {
"l": 0.54459,
"c": 0.20495,
"h": 306.5
},
"luminance": 0.14048
}Semantic roles & 50–950 ramp
primary
#8F42CB
secondary
#B1D297
accent
#E0488A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83