#8151AA#8151AA
#8151AA is a mid, vivid violet. Relative luminance 0.135; OKLCH L 52.8% C 0.142 H 307.1°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #8151AA |
|---|---|
| RGB | rgb(129, 81, 170) |
| HSL | hsl(272, 35%, 49%) |
| HSV | hsv(272, 52%, 67%) |
| CMYK | cmyk(24.1%, 52.4%, 0%, 33.3%) |
| CIE-LAB | lab(43.44, 37.42, -40.28) |
| CIE-LCH | lch(43.44, 54.98, 312.89°) |
| OKLab | oklab(52.8% 0.0855 -0.113) |
| OKLCH | oklch(52.8% 0.142 307.1) |
| XYZ | xyz(19.2499, 13.4545, 39.6053) |
| Luminance | 0.1345 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 1.99
Deep Lavender
#8D5EB7
ΔE00 4.75
Purply
#983FB2
ΔE00 5.83
Amethyst
#9B5FC0
ΔE00 7.23
Medium Purple
#9E43A2
ΔE00 7.33
Darkorchid
#9932CC
ΔE00 8.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8151AA #7AAA51
analogous
#5551AA #8151AA #AA51A7
triadic
#8151AA #AA8151 #51AA81
tetradic
#8151AA #AA5551 #7AAA51 #51A7AA
square
#8151AA #AA5551 #7AAA51 #51A7AA
split-complementary
#8151AA #A7AA51 #51AA55
monochromatic
#422A57 #623D81 #8151AA #9F79BF #BDA2D3
Accessibility & contrast
On white
5.69
#8151AA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.69
#8151AA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8151AA
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8151AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8151AA | 1.00 | 5.69 | 3.69 | 5.69 |
| #FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3765AD
Deuteranopia (green-blind)
#4567A8
Tritanopia (blue-blind)
#7B6176
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #8151aa; /* rgb */ color: rgb(129, 81, 170); /* oklch */ color: oklch(52.8% 0.142 307.1);
Tailwind
colors: {
custom: {
50: '#a883c4',
500: '#8151aa',
950: '#000000',
},
}SCSS
$custom: #8151aa; $custom-light: #a883c4; $custom-dark: #000000;
JSON
{
"hex": "#8151aa",
"rgb": {
"r": 129,
"g": 81,
"b": 170
},
"hsl": {
"h": 272.36,
"s": 35.458,
"l": 49.216
},
"oklch": {
"l": 0.52801,
"c": 0.14171,
"h": 307.1
},
"luminance": 0.13454
}Semantic roles & 50–950 ramp
primary
#8151AA
secondary
#AAC097
accent
#CB5C90
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100B12
muted
#7F7C81