#8157CF#8157CF
#8157CF is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.1% C 0.178 H 296.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #8157CF |
|---|---|
| RGB | rgb(129, 87, 207) |
| HSL | hsl(261, 56%, 58%) |
| HSV | hsv(261, 58%, 81%) |
| CMYK | cmyk(37.7%, 58%, 0%, 18.8%) |
| CIE-LAB | lab(46.96, 43.43, -56.19) |
| CIE-LCH | lch(46.96, 71.02, 307.70°) |
| OKLab | oklab(56.11% 0.079 -0.1596) |
| OKLCH | oklch(56.11% 0.178 296.3) |
| XYZ | xyz(23.7211, 15.9881, 60.8556) |
| Luminance | 0.1599 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.14
Light Indigo
#6D5ACF
ΔE00 4.01
Slate Blue
#6A5ACD
ΔE00 4.56
Deep Lavender
#8D5EB7
ΔE00 5.90
Dark Periwinkle
#665FD1
ΔE00 5.95
Iris
#6258C4
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8157CF #A5CF57
analogous
#5769CF #8157CF #BD57CF
triadic
#8157CF #CF8157 #57CF81
tetradic
#8157CF #CF5769 #A5CF57 #57CFBD
square
#8157CF #CF5769 #A5CF57 #57CFBD
split-complementary
#8157CF #CFBD57 #69CF57
monochromatic
#472685 #6134B5 #8157CF #A587DD #C8B6EA
Accessibility & contrast
On white
5.00
#8157CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.20
#8157CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8157CF
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8157CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8157CF | 1.00 | 5.00 | 4.20 | 5.00 |
| #FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1270D3
Deuteranopia (green-blind)
#276ECC
Tritanopia (blue-blind)
#6E718B
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8157cf; /* rgb */ color: rgb(129, 87, 207); /* oklch */ color: oklch(56.1% 0.178 296.3);
Tailwind
colors: {
custom: {
50: '#aa88de',
500: '#8157cf',
950: '#000000',
},
}SCSS
$custom: #8157cf; $custom-light: #aa88de; $custom-dark: #000000;
JSON
{
"hex": "#8157cf",
"rgb": {
"r": 129,
"g": 87,
"b": 207
},
"hsl": {
"h": 261,
"s": 55.556,
"l": 57.647
},
"oklch": {
"l": 0.5611,
"c": 0.17813,
"h": 296.3
},
"luminance": 0.15989
}Semantic roles & 50–950 ramp
primary
#8157CF
secondary
#C8D9A9
accent
#DF49AA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83