#8151E2#8151E2
#8151E2 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.6% C 0.209 H 293.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #8151E2 |
|---|---|
| RGB | rgb(129, 81, 226) |
| HSL | hsl(260, 71%, 60%) |
| HSV | hsv(260, 64%, 89%) |
| CMYK | cmyk(42.9%, 64.2%, 0%, 11.4%) |
| CIE-LAB | lab(47.03, 51.72, -66.91) |
| CIE-LCH | lch(47.03, 84.57, 307.70°) |
| OKLab | oklab(56.57% 0.0846 -0.1911) |
| OKLCH | oklch(56.57% 0.209 293.9) |
| XYZ | xyz(25.7194, 16.0423, 73.6781) |
| Luminance | 0.1604 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.78
Light Indigo
#6D5ACF
ΔE00 4.86
Slate Blue
#6A5ACD
ΔE00 5.43
Bluish Purple
#703BE7
ΔE00 5.72
Purpleish Blue
#6140EF
ΔE00 6.37
Dark Periwinkle
#665FD1
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8151E2 #B2E251
analogous
#5169E2 #8151E2 #CA51E2
triadic
#8151E2 #E28151 #51E281
tetradic
#8151E2 #E25169 #B2E251 #51E2CA
square
#8151E2 #E25169 #B2E251 #51E2CA
split-complementary
#8151E2 #E2CA51 #69E251
monochromatic
#461A9E #5D23D3 #8151E2 #A785EB #CDBAF3
Accessibility & contrast
On white
4.99
#8151E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#8151E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8151E2
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8151E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8151E2 | 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)
#0071E7
Deuteranopia (green-blind)
#006DDF
Tritanopia (blue-blind)
#667392
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8151e2; /* rgb */ color: rgb(129, 81, 226); /* oklch */ color: oklch(56.6% 0.209 293.9);
Tailwind
colors: {
custom: {
50: '#ac84ec',
500: '#8151e2',
950: '#000000',
},
}SCSS
$custom: #8151e2; $custom-light: #ac84ec; $custom-dark: #000000;
JSON
{
"hex": "#8151e2",
"rgb": {
"r": 129,
"g": 81,
"b": 226
},
"hsl": {
"h": 259.862,
"s": 71.429,
"l": 60.196
},
"oklch": {
"l": 0.56571,
"c": 0.20905,
"h": 293.9
},
"luminance": 0.16043
}Semantic roles & 50–950 ramp
primary
#8151E2
secondary
#D1E3AC
accent
#D31293
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84