#8151B2#8151B2
#8151B2 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.3% C 0.151 H 304.6°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).
Color values
| HEX | #8151B2 |
|---|---|
| RGB | rgb(129, 81, 178) |
| HSL | hsl(270, 39%, 51%) |
| HSV | hsv(270, 54%, 70%) |
| CMYK | cmyk(27.5%, 54.5%, 0%, 30.2%) |
| CIE-LAB | lab(43.90, 39.37, -44.27) |
| CIE-LCH | lch(43.90, 59.25, 311.65°) |
| OKLab | oklab(53.29% 0.0861 -0.1246) |
| OKLCH | oklch(53.29% 0.151 304.6) |
| XYZ | xyz(20.0298, 13.7664, 43.7128) |
| Luminance | 0.1377 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.19
Deep Lavender
#8D5EB7
ΔE00 4.58
Purply
#983FB2
ΔE00 5.91
Amethyst
#9B5FC0
ΔE00 6.96
Darkorchid
#9932CC
ΔE00 7.48
Light Indigo
#6D5ACF
ΔE00 7.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8151B2 #82B251
analogous
#5151B2 #8151B2 #B151B2
triadic
#8151B2 #B28151 #51B281
tetradic
#8151B2 #B25151 #82B251 #51B2B1
square
#8151B2 #B25151 #82B251 #51B2B1
split-complementary
#8151B2 #B2B151 #51B251
monochromatic
#442A5F #633D89 #8151B2 #A07BC5 #BEA6D8
Accessibility & contrast
On white
5.60
#8151B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.75
#8151B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8151B2
5.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8151B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8151B2 | 1.00 | 5.60 | 3.75 | 5.60 |
| #FFFFFF | 5.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#3F68B0
Tritanopia (blue-blind)
#79637A
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8151b2; /* rgb */ color: rgb(129, 81, 178); /* oklch */ color: oklch(53.3% 0.151 304.6);
Tailwind
colors: {
custom: {
50: '#a883c9',
500: '#8151b2',
950: '#000000',
},
}SCSS
$custom: #8151b2; $custom-light: #a883c9; $custom-dark: #000000;
JSON
{
"hex": "#8151b2",
"rgb": {
"r": 129,
"g": 81,
"b": 178
},
"hsl": {
"h": 269.691,
"s": 38.645,
"l": 50.784
},
"oklch": {
"l": 0.53286,
"c": 0.15148,
"h": 304.6
},
"luminance": 0.13766
}Semantic roles & 50–950 ramp
primary
#8151B2
secondary
#B0C59A
accent
#CF5995
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100B13
muted
#7F7C82