#8F51CA#8F51CA
#8F51CA is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.4% C 0.183 H 304.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #8F51CA |
|---|---|
| RGB | rgb(143, 81, 202) |
| HSL | hsl(271, 53%, 55%) |
| HSV | hsv(271, 60%, 79%) |
| CMYK | cmyk(29.2%, 59.9%, 0%, 20.8%) |
| CIE-LAB | lab(46.96, 48.67, -53.24) |
| CIE-LCH | lch(46.96, 72.13, 312.44°) |
| OKLab | oklab(56.36% 0.1047 -0.1505) |
| OKLCH | oklch(56.36% 0.183 304.8) |
| XYZ | xyz(24.9285, 15.9889, 57.6386) |
| Luminance | 0.1599 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.71
Deep Lavender
#8D5EB7
ΔE00 4.88
Amethyst
#9B5FC0
ΔE00 5.37
Lightish Purple
#A552E6
ΔE00 5.53
Darkorchid
#9932CC
ΔE00 5.81
Purply
#983FB2
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F51CA #8CCA51
analogous
#5251CA #8F51CA #CA51C8
triadic
#8F51CA #CA8F51 #51CA8F
tetradic
#8F51CA #CA5251 #8CCA51 #51C8CA
square
#8F51CA #CA5251 #8CCA51 #51C8CA
split-complementary
#8F51CA #C8CA51 #51CA52
monochromatic
#51257B #7034AA #8F51CA #AD80D8 #CBAFE7
Accessibility & contrast
On white
5.00
#8F51CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.20
#8F51CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8F51CA
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F51CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F51CA | 1.00 | 5.00 | 4.20 | 5.00 |
| #FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#156ECE
Deuteranopia (green-blind)
#366FC7
Tritanopia (blue-blind)
#856986
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8f51ca; /* rgb */ color: rgb(143, 81, 202); /* oklch */ color: oklch(56.4% 0.183 304.8);
Tailwind
colors: {
custom: {
50: '#b385db',
500: '#8f51ca',
950: '#000000',
},
}SCSS
$custom: #8f51ca; $custom-light: #b385db; $custom-dark: #000000;
JSON
{
"hex": "#8f51ca",
"rgb": {
"r": 143,
"g": 81,
"b": 202
},
"hsl": {
"h": 270.744,
"s": 53.304,
"l": 55.49
},
"oklch": {
"l": 0.56359,
"c": 0.18334,
"h": 304.8
},
"luminance": 0.15989
}Semantic roles & 50–950 ramp
primary
#8F51CA
secondary
#BBD5A2
accent
#DD4B92
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83