#8157F6#8157F6
#8157F6 is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 58.9% C 0.225 H 289.9°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).
Color values
| HEX | #8157F6 |
|---|---|
| RGB | rgb(129, 87, 246) |
| HSL | hsl(256, 90%, 65%) |
| HSV | hsv(256, 65%, 96%) |
| CMYK | cmyk(47.6%, 64.6%, 0%, 3.5%) |
| CIE-LAB | lab(49.66, 53.94, -73.89) |
| CIE-LCH | lch(49.66, 91.48, 306.13°) |
| OKLab | oklab(58.93% 0.0764 -0.2117) |
| OKLCH | oklch(58.93% 0.225 289.9) |
| XYZ | xyz(29.0913, 18.1362, 89.1387) |
| Luminance | 0.1814 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.72
Mediumslateblue
#7B68EE
ΔE00 4.66
Light Indigo
#6D5ACF
ΔE00 6.30
Lighter Purple
#A55AF4
ΔE00 6.41
Slate Blue
#6A5ACD
ΔE00 6.83
Lightish Purple
#A552E6
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8157F6 #CCF657
analogous
#577CF6 #8157F6 #D057F6
triadic
#8157F6 #F68157 #57F681
tetradic
#8157F6 #F6577C #CCF657 #57F6D0
square
#8157F6 #F6577C #CCF657 #57F6D0
split-complementary
#8157F6 #F6D057 #7CF657
monochromatic
#3D0BC8 #551DF3 #8157F6 #AD91F9 #D8CBFC
Accessibility & contrast
On white
4.54
#8157F6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.63
#8157F6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8157F6
4.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8157F6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8157F6 | 1.00 | 4.54 | 4.63 | 4.63 |
| #FFFFFF | 4.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0079FB
Deuteranopia (green-blind)
#0072F3
Tritanopia (blue-blind)
#5B7E9F
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #8157f6; /* rgb */ color: rgb(129, 87, 246); /* oklch */ color: oklch(58.9% 0.225 289.9);
Tailwind
colors: {
custom: {
50: '#ae89fa',
500: '#8157f6',
950: '#000000',
},
}SCSS
$custom: #8157f6; $custom-light: #ae89fa; $custom-dark: #000000;
JSON
{
"hex": "#8157f6",
"rgb": {
"r": 129,
"g": 87,
"b": 246
},
"hsl": {
"h": 255.849,
"s": 89.831,
"l": 65.294
},
"oklch": {
"l": 0.58929,
"c": 0.22503,
"h": 289.9
},
"luminance": 0.18137
}Semantic roles & 50–950 ramp
primary
#8157F6
secondary
#E1EFBA
accent
#E600A9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85