#8E51BB#8E51BB
#8E51BB is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.3% C 0.166 H 308.5°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #8E51BB |
|---|---|
| RGB | rgb(142, 81, 187) |
| HSL | hsl(275, 44%, 53%) |
| HSV | hsv(275, 57%, 73%) |
| CMYK | cmyk(24.1%, 56.7%, 0%, 26.7%) |
| CIE-LAB | lab(45.94, 44.89, -46.19) |
| CIE-LCH | lch(45.94, 64.41, 314.19°) |
| OKLab | oklab(55.3% 0.1033 -0.1299) |
| OKLCH | oklch(55.3% 0.166 308.5) |
| XYZ | xyz(23.0656, 15.2238, 48.7275) |
| Luminance | 0.1522 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.75
Purply
#983FB2
ΔE00 4.67
Royal Purple
#7851A9
ΔE00 4.92
Amethyst
#9B5FC0
ΔE00 4.93
Darkorchid
#9932CC
ΔE00 6.18
Medium Purple
#9E43A2
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E51BB #7EBB51
analogous
#5951BB #8E51BB #BB51B3
triadic
#8E51BB #BB8E51 #51BB8E
tetradic
#8E51BB #BB5951 #7EBB51 #51B3BB
square
#8E51BB #BB5951 #7EBB51 #51B3BB
split-complementary
#8E51BB #B3BB51 #51BB59
monochromatic
#4E2969 #6E3A95 #8E51BB #AB7DCC #C7A9DD
Accessibility & contrast
On white
5.19
#8E51BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#8E51BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E51BB
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E51BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E51BB | 1.00 | 5.19 | 4.04 | 5.19 |
| #FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D6ABE
Deuteranopia (green-blind)
#436EB8
Tritanopia (blue-blind)
#88647E
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #8e51bb; /* rgb */ color: rgb(142, 81, 187); /* oklch */ color: oklch(55.3% 0.166 308.5);
Tailwind
colors: {
custom: {
50: '#b284d0',
500: '#8e51bb',
950: '#000000',
},
}SCSS
$custom: #8e51bb; $custom-light: #b284d0; $custom-dark: #000000;
JSON
{
"hex": "#8e51bb",
"rgb": {
"r": 142,
"g": 81,
"b": 187
},
"hsl": {
"h": 274.528,
"s": 43.802,
"l": 52.549
},
"oklch": {
"l": 0.55297,
"c": 0.16594,
"h": 308.5
},
"luminance": 0.15223
}Semantic roles & 50–950 ramp
primary
#8E51BB
secondary
#B0CB9D
accent
#D4548A
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82