#8F51E4#8F51E4
#8F51E4 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.1% C 0.213 H 299.0°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).
Color values
| HEX | #8F51E4 |
|---|---|
| RGB | rgb(143, 81, 228) |
| HSL | hsl(265, 73%, 61%) |
| HSV | hsv(265, 64%, 89%) |
| CMYK | cmyk(37.3%, 64.5%, 0%, 10.6%) |
| CIE-LAB | lab(48.67, 55.02, -65.32) |
| CIE-LCH | lch(48.67, 85.40, 310.11°) |
| OKLab | oklab(58.14% 0.1031 -0.186) |
| OKLCH | oklch(58.14% 0.213 299) |
| XYZ | xyz(28.2702, 17.3256, 75.2385) |
| Luminance | 0.1733 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.74
Lightish Purple
#A552E6
ΔE00 4.13
Lighter Purple
#A55AF4
ΔE00 5.36
Electric Purple
#AA23FF
ΔE00 6.57
Light Indigo
#6D5ACF
ΔE00 6.90
Blueviolet
#8A2BE2
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F51E4 #A6E451
analogous
#515CE4 #8F51E4 #D851E4
triadic
#8F51E4 #E48F51 #51E48F
tetradic
#8F51E4 #E4515C #A6E451 #51E4D8
square
#8F51E4 #E4515C #A6E451 #51E4D8
split-complementary
#8F51E4 #E4D851 #5CE451
monochromatic
#5319A2 #6E21D7 #8F51E4 #B186EC #D3BBF4
Accessibility & contrast
On white
4.70
#8F51E4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.47
#8F51E4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8F51E4
4.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F51E4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F51E4 | 1.00 | 4.70 | 4.47 | 4.70 |
| #FFFFFF | 4.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074E9
Deuteranopia (green-blind)
#0072E1
Tritanopia (blue-blind)
#7C7294
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #8f51e4; /* rgb */ color: rgb(143, 81, 228); /* oklch */ color: oklch(58.1% 0.213 299.0);
Tailwind
colors: {
custom: {
50: '#b585ed',
500: '#8f51e4',
950: '#000000',
},
}SCSS
$custom: #8f51e4; $custom-light: #b585ed; $custom-dark: #000000;
JSON
{
"hex": "#8f51e4",
"rgb": {
"r": 143,
"g": 81,
"b": 228
},
"hsl": {
"h": 265.306,
"s": 73.134,
"l": 60.588
},
"oklch": {
"l": 0.5814,
"c": 0.21269,
"h": 299
},
"luminance": 0.17326
}Semantic roles & 50–950 ramp
primary
#8F51E4
secondary
#CDE4AC
accent
#D51082
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84