#8F51BF#8F51BF
#8F51BF is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.7% C 0.171 H 307.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).
Color values
| HEX | #8F51BF |
|---|---|
| RGB | rgb(143, 81, 191) |
| HSL | hsl(274, 46%, 53%) |
| HSV | hsv(274, 58%, 75%) |
| CMYK | cmyk(25.1%, 57.6%, 0%, 25.1%) |
| CIE-LAB | lab(46.29, 46.08, -47.94) |
| CIE-LCH | lch(46.29, 66.50, 313.86°) |
| OKLab | oklab(55.66% 0.1047 -0.135) |
| OKLCH | oklch(55.66% 0.171 307.8) |
| XYZ | xyz(23.6722, 15.4864, 51.0222) |
| Luminance | 0.1549 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.92
Amethyst
#9B5FC0
ΔE00 4.85
Purply
#983FB2
ΔE00 4.94
Royal Purple
#7851A9
ΔE00 5.36
Darkorchid
#9932CC
ΔE00 5.96
Purpley
#8756E4
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F51BF #81BF51
analogous
#5851BF #8F51BF #BF51B8
triadic
#8F51BF #BF8F51 #51BF8F
tetradic
#8F51BF #BF5851 #81BF51 #51B8BF
square
#8F51BF #BF5851 #81BF51 #51B8BF
split-complementary
#8F51BF #B8BF51 #51BF58
monochromatic
#4F286D #70399A #8F51BF #AC7ECF #C9AAE0
Accessibility & contrast
On white
5.13
#8F51BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.10
#8F51BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8F51BF
5.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F51BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F51BF | 1.00 | 5.13 | 4.10 | 5.13 |
| #FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#296BC3
Deuteranopia (green-blind)
#416EBC
Tritanopia (blue-blind)
#886680
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #8f51bf; /* rgb */ color: rgb(143, 81, 191); /* oklch */ color: oklch(55.7% 0.171 307.8);
Tailwind
colors: {
custom: {
50: '#b384d3',
500: '#8f51bf',
950: '#000000',
},
}SCSS
$custom: #8f51bf; $custom-light: #b384d3; $custom-dark: #000000;
JSON
{
"hex": "#8f51bf",
"rgb": {
"r": 143,
"g": 81,
"b": 191
},
"hsl": {
"h": 273.818,
"s": 46.218,
"l": 53.333
},
"oklch": {
"l": 0.55658,
"c": 0.17081,
"h": 307.8
},
"luminance": 0.15486
}Semantic roles & 50–950 ramp
primary
#8F51BF
secondary
#B3CE9E
accent
#D6528C
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83