#8157C0#8157C0
#8157C0 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.1% C 0.159 H 299.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #8157C0 |
|---|---|
| RGB | rgb(129, 87, 192) |
| HSL | hsl(264, 45%, 55%) |
| HSV | hsv(264, 55%, 75%) |
| CMYK | cmyk(32.8%, 54.7%, 0%, 24.7%) |
| CIE-LAB | lab(46.03, 39.51, -49.04) |
| CIE-LCH | lch(46.03, 62.97, 308.86°) |
| OKLab | oklab(55.13% 0.0788 -0.1386) |
| OKLCH | oklch(55.13% 0.159 299.6) |
| XYZ | xyz(21.9736, 15.2891, 51.6524) |
| Luminance | 0.1529 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 4.18
Royal Purple
#7851A9
ΔE00 4.33
Light Indigo
#6D5ACF
ΔE00 5.18
Purpley
#8756E4
ΔE00 5.48
Slate Blue
#6A5ACD
ΔE00 5.55
Amethyst
#9B5FC0
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8157C0 #96C057
analogous
#5761C0 #8157C0 #B657C0
triadic
#8157C0 #C08157 #57C081
tetradic
#8157C0 #C05761 #96C057 #57C0B6
square
#8157C0 #C05761 #96C057 #57C0B6
split-complementary
#8157C0 #C0B657 #61C057
monochromatic
#472B72 #633B9E #8157C0 #A284D1 #C4B0E1
Accessibility & contrast
On white
5.18
#8157C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.06
#8157C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8157C0
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8157C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8157C0 | 1.00 | 5.18 | 4.06 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D6DC4
Deuteranopia (green-blind)
#3A6CBE
Tritanopia (blue-blind)
#746C83
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #8157c0; /* rgb */ color: rgb(129, 87, 192); /* oklch */ color: oklch(55.1% 0.159 299.6);
Tailwind
colors: {
custom: {
50: '#a988d3',
500: '#8157c0',
950: '#000000',
},
}SCSS
$custom: #8157c0; $custom-light: #a988d3; $custom-dark: #000000;
JSON
{
"hex": "#8157c0",
"rgb": {
"r": 129,
"g": 87,
"b": 192
},
"hsl": {
"h": 264,
"s": 45.455,
"l": 54.706
},
"oklch": {
"l": 0.55126,
"c": 0.15947,
"h": 299.6
},
"luminance": 0.15289
}Semantic roles & 50–950 ramp
primary
#8157C0
secondary
#BED0A3
accent
#D553A1
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100B14
muted
#7F7C83