#8157BB#8157BB
#8157BB is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.8% C 0.153 H 300.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).
Color values
| HEX | #8157BB |
|---|---|
| RGB | rgb(129, 87, 187) |
| HSL | hsl(265, 42%, 54%) |
| HSV | hsv(265, 53%, 73%) |
| CMYK | cmyk(31%, 53.5%, 0%, 26.7%) |
| CIE-LAB | lab(45.73, 38.23, -46.61) |
| CIE-LCH | lch(45.73, 60.28, 309.36°) |
| OKLab | oklab(54.81% 0.0786 -0.1315) |
| OKLCH | oklch(54.81% 0.153 300.9) |
| XYZ | xyz(21.4290, 15.0713, 48.7842) |
| Luminance | 0.1507 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.63
Deep Lavender
#8D5EB7
ΔE00 3.72
Light Indigo
#6D5ACF
ΔE00 5.81
Amethyst
#9B5FC0
ΔE00 6.12
Slate Blue
#6A5ACD
ΔE00 6.12
Purpley
#8756E4
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8157BB #91BB57
analogous
#575FBB #8157BB #B357BB
triadic
#8157BB #BB8157 #57BB81
tetradic
#8157BB #BB575F #91BB57 #57BBB3
square
#8157BB #BB575F #91BB57 #57BBB3
split-complementary
#8157BB #BBB357 #5FBB57
monochromatic
#472C6C #633D97 #8157BB #A283CD #C2AEDE
Accessibility & contrast
On white
5.23
#8157BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.01
#8157BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8157BB
5.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8157BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8157BB | 1.00 | 5.23 | 4.01 | 5.23 |
| #FFFFFF | 5.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#326CBE
Deuteranopia (green-blind)
#3F6CB9
Tritanopia (blue-blind)
#756A81
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #8157bb; /* rgb */ color: rgb(129, 87, 187); /* oklch */ color: oklch(54.8% 0.153 300.9);
Tailwind
colors: {
custom: {
50: '#a988d0',
500: '#8157bb',
950: '#000000',
},
}SCSS
$custom: #8157bb; $custom-light: #a988d0; $custom-dark: #000000;
JSON
{
"hex": "#8157bb",
"rgb": {
"r": 129,
"g": 87,
"b": 187
},
"hsl": {
"h": 265.2,
"s": 42.373,
"l": 53.725
},
"oklch": {
"l": 0.54812,
"c": 0.15318,
"h": 300.9
},
"luminance": 0.15071
}Semantic roles & 50–950 ramp
primary
#8157BB
secondary
#BACCA2
accent
#D2569E
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100B14
muted
#7F7C82