#8151BA#8151BA
#8151BA is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.8% C 0.161 H 302.4°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).
Color values
| HEX | #8151BA |
|---|---|
| RGB | rgb(129, 81, 186) |
| HSL | hsl(267, 43%, 52%) |
| HSV | hsv(267, 56%, 73%) |
| CMYK | cmyk(30.6%, 56.5%, 0%, 27.1%) |
| CIE-LAB | lab(44.37, 41.36, -48.20) |
| CIE-LCH | lch(44.37, 63.51, 310.63°) |
| OKLab | oklab(53.79% 0.0864 -0.1361) |
| OKLCH | oklch(53.79% 0.161 302.4) |
| XYZ | xyz(20.8566, 14.0971, 48.0671) |
| Luminance | 0.1410 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.16
Deep Lavender
#8D5EB7
ΔE00 4.83
Purply
#983FB2
ΔE00 6.32
Light Indigo
#6D5ACF
ΔE00 6.40
Slate Blue
#6A5ACD
ΔE00 6.69
Purpley
#8756E4
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8151BA #8ABA51
analogous
#5155BA #8151BA #B651BA
triadic
#8151BA #BA8151 #51BA81
tetradic
#8151BA #BA5155 #8ABA51 #51BAB6
square
#8151BA #BA5155 #8ABA51 #51BAB6
split-complementary
#8151BA #BAB651 #55BA51
monochromatic
#462968 #633A93 #8151BA #A17DCB #C0A9DD
Accessibility & contrast
On white
5.50
#8151BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.82
#8151BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8151BA
5.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8151BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8151BA | 1.00 | 5.50 | 3.82 | 5.50 |
| #FFFFFF | 5.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2668BD
Deuteranopia (green-blind)
#3869B8
Tritanopia (blue-blind)
#76667E
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #8151ba; /* rgb */ color: rgb(129, 81, 186); /* oklch */ color: oklch(53.8% 0.161 302.4);
Tailwind
colors: {
custom: {
50: '#a984cf',
500: '#8151ba',
950: '#000000',
},
}SCSS
$custom: #8151ba; $custom-light: #a984cf; $custom-dark: #000000;
JSON
{
"hex": "#8151ba",
"rgb": {
"r": 129,
"g": 81,
"b": 186
},
"hsl": {
"h": 267.429,
"s": 43.21,
"l": 52.353
},
"oklch": {
"l": 0.5379,
"c": 0.16125,
"h": 302.4
},
"luminance": 0.14097
}Semantic roles & 50–950 ramp
primary
#8151BA
secondary
#B5CA9D
accent
#D35599
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82