#8F51CB#8F51CB
#8F51CB is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.4% C 0.184 H 304.6°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #8F51CB |
|---|---|
| RGB | rgb(143, 81, 203) |
| HSL | hsl(270, 54%, 56%) |
| HSV | hsv(270, 60%, 80%) |
| CMYK | cmyk(29.6%, 60.1%, 0%, 20.4%) |
| CIE-LAB | lab(47.02, 48.91, -53.71) |
| CIE-LCH | lch(47.02, 72.65, 312.32°) |
| OKLab | oklab(56.42% 0.1047 -0.1519) |
| OKLCH | oklch(56.42% 0.184 304.6) |
| XYZ | xyz(25.0472, 16.0364, 58.2641) |
| Luminance | 0.1604 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.56
Deep Lavender
#8D5EB7
ΔE00 4.98
Lightish Purple
#A552E6
ΔE00 5.43
Amethyst
#9B5FC0
ΔE00 5.44
Darkorchid
#9932CC
ΔE00 5.83
Purply
#983FB2
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F51CB #8DCB51
analogous
#5251CB #8F51CB #CB51CA
triadic
#8F51CB #CB8F51 #51CB8F
tetradic
#8F51CB #CB5251 #8DCB51 #51CACB
square
#8F51CB #CB5251 #8DCB51 #51CACB
split-complementary
#8F51CB #CACB51 #51CB52
monochromatic
#52257C #7033AC #8F51CB #AD80D9 #CCAFE7
Accessibility & contrast
On white
4.99
#8F51CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#8F51CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8F51CB
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F51CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F51CB | 1.00 | 4.99 | 4.21 | 4.99 |
| #FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#126ECF
Deuteranopia (green-blind)
#3570C8
Tritanopia (blue-blind)
#846A86
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8f51cb; /* rgb */ color: rgb(143, 81, 203); /* oklch */ color: oklch(56.4% 0.184 304.6);
Tailwind
colors: {
custom: {
50: '#b485db',
500: '#8f51cb',
950: '#000000',
},
}SCSS
$custom: #8f51cb; $custom-light: #b485db; $custom-dark: #000000;
JSON
{
"hex": "#8f51cb",
"rgb": {
"r": 143,
"g": 81,
"b": 203
},
"hsl": {
"h": 270.492,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.56424,
"c": 0.18447,
"h": 304.6
},
"luminance": 0.16036
}Semantic roles & 50–950 ramp
primary
#8F51CB
secondary
#BBD5A3
accent
#DD4A93
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83