#8157BE#8157BE
#8157BE is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.0% C 0.157 H 300.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #8157BE |
|---|---|
| RGB | rgb(129, 87, 190) |
| HSL | hsl(264, 44%, 54%) |
| HSV | hsv(264, 54%, 75%) |
| CMYK | cmyk(32.1%, 54.2%, 0%, 25.5%) |
| CIE-LAB | lab(45.91, 39.00, -48.07) |
| CIE-LCH | lch(45.91, 61.90, 309.05°) |
| OKLab | oklab(55% 0.0787 -0.1358) |
| OKLCH | oklch(55% 0.157 300.1) |
| XYZ | xyz(21.7535, 15.2011, 50.4933) |
| Luminance | 0.1520 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.98
Royal Purple
#7851A9
ΔE00 4.04
Light Indigo
#6D5ACF
ΔE00 5.42
Slate Blue
#6A5ACD
ΔE00 5.76
Purpley
#8756E4
ΔE00 5.81
Amethyst
#9B5FC0
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8157BE #94BE57
analogous
#5761BE #8157BE #B557BE
triadic
#8157BE #BE8157 #57BE81
tetradic
#8157BE #BE5761 #94BE57 #57BEB5
square
#8157BE #BE5761 #94BE57 #57BEB5
split-complementary
#8157BE #BEB557 #61BE57
monochromatic
#472B6F #633C9C #8157BE #A283CF #C3AFE0
Accessibility & contrast
On white
5.20
#8157BE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#8157BE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8157BE
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8157BE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8157BE | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F6CC1
Deuteranopia (green-blind)
#3C6CBC
Tritanopia (blue-blind)
#746B82
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #8157be; /* rgb */ color: rgb(129, 87, 190); /* oklch */ color: oklch(55.0% 0.157 300.1);
Tailwind
colors: {
custom: {
50: '#a988d2',
500: '#8157be',
950: '#000000',
},
}SCSS
$custom: #8157be; $custom-light: #a988d2; $custom-dark: #000000;
JSON
{
"hex": "#8157be",
"rgb": {
"r": 129,
"g": 87,
"b": 190
},
"hsl": {
"h": 264.466,
"s": 44.206,
"l": 54.314
},
"oklch": {
"l": 0.54999,
"c": 0.15695,
"h": 300.1
},
"luminance": 0.15201
}Semantic roles & 50–950 ramp
primary
#8157BE
secondary
#BCCEA3
accent
#D454A0
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100B14
muted
#7F7C83