#8F51E1#8F51E1
#8F51E1 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.9% C 0.209 H 299.6°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #8F51E1 |
|---|---|
| RGB | rgb(143, 81, 225) |
| HSL | hsl(266, 71%, 60%) |
| HSV | hsv(266, 64%, 88%) |
| CMYK | cmyk(36.4%, 64%, 0%, 11.8%) |
| CIE-LAB | lab(48.46, 54.27, -63.96) |
| CIE-LCH | lch(48.46, 83.88, 310.32°) |
| OKLab | oklab(57.93% 0.1034 -0.182) |
| OKLCH | oklch(57.93% 0.209 299.6) |
| XYZ | xyz(27.8574, 17.1605, 73.0642) |
| Luminance | 0.1716 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.90
Lightish Purple
#A552E6
ΔE00 4.15
Lighter Purple
#A55AF4
ΔE00 5.56
Electric Purple
#AA23FF
ΔE00 6.70
Light Indigo
#6D5ACF
ΔE00 6.82
Darkorchid
#9932CC
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F51E1 #A3E151
analogous
#515BE1 #8F51E1 #D751E1
triadic
#8F51E1 #E18F51 #51E18F
tetradic
#8F51E1 #E1515B #A3E151 #51E1D7
square
#8F51E1 #E1515B #A3E151 #51E1D7
split-complementary
#8F51E1 #E1D751 #5BE151
monochromatic
#531B9D #6E24D1 #8F51E1 #B185EA #D2B9F3
Accessibility & contrast
On white
4.74
#8F51E1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.43
#8F51E1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8F51E1
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F51E1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F51E1 | 1.00 | 4.74 | 4.43 | 4.74 |
| #FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073E5
Deuteranopia (green-blind)
#0072DE
Tritanopia (blue-blind)
#7D7192
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #8f51e1; /* rgb */ color: rgb(143, 81, 225); /* oklch */ color: oklch(57.9% 0.209 299.6);
Tailwind
colors: {
custom: {
50: '#b585eb',
500: '#8f51e1',
950: '#000000',
},
}SCSS
$custom: #8f51e1; $custom-light: #b585eb; $custom-dark: #000000;
JSON
{
"hex": "#8f51e1",
"rgb": {
"r": 143,
"g": 81,
"b": 225
},
"hsl": {
"h": 265.833,
"s": 70.588,
"l": 60
},
"oklch": {
"l": 0.57926,
"c": 0.20933,
"h": 299.6
},
"luminance": 0.17161
}Semantic roles & 50–950 ramp
primary
#8F51E1
secondary
#CBE3AB
accent
#ED3AA0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84