#8156F2#8156F2
#8156F2 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.5% C 0.222 H 290.6°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).
Color values
| HEX | #8156F2 |
|---|---|
| RGB | rgb(129, 86, 242) |
| HSL | hsl(257, 86%, 64%) |
| HSV | hsv(257, 64%, 95%) |
| CMYK | cmyk(46.7%, 64.5%, 0%, 5.1%) |
| CIE-LAB | lab(49.17, 53.38, -72.45) |
| CIE-LCH | lch(49.17, 89.99, 306.38°) |
| OKLab | oklab(58.48% 0.0779 -0.2074) |
| OKLCH | oklch(58.48% 0.222 290.6) |
| XYZ | xyz(28.4035, 17.7324, 85.9133) |
| Luminance | 0.1773 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.20
Mediumslateblue
#7B68EE
ΔE00 4.95
Light Indigo
#6D5ACF
ΔE00 5.88
Slate Blue
#6A5ACD
ΔE00 6.43
Lighter Purple
#A55AF4
ΔE00 6.52
Lightish Purple
#A552E6
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8156F2 #C7F256
analogous
#5679F2 #8156F2 #CF56F2
triadic
#8156F2 #F28156 #56F281
tetradic
#8156F2 #F25679 #C7F256 #56F2CF
square
#8156F2 #F25679 #C7F256 #56F2CF
split-complementary
#8156F2 #F2CF56 #79F256
monochromatic
#3F0FBF #571DEE #8156F2 #AB8FF6 #D6C8FB
Accessibility & contrast
On white
4.62
#8156F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.55
#8156F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #8156F2
4.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8156F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8156F2 | 1.00 | 4.62 | 4.55 | 4.62 |
| #FFFFFF | 4.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078F7
Deuteranopia (green-blind)
#0071EF
Tritanopia (blue-blind)
#5D7C9D
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #8156f2; /* rgb */ color: rgb(129, 86, 242); /* oklch */ color: oklch(58.5% 0.222 290.6);
Tailwind
colors: {
custom: {
50: '#ae88f7',
500: '#8156f2',
950: '#000000',
},
}SCSS
$custom: #8156f2; $custom-light: #ae88f7; $custom-dark: #000000;
JSON
{
"hex": "#8156f2",
"rgb": {
"r": 129,
"g": 86,
"b": 242
},
"hsl": {
"h": 256.538,
"s": 85.714,
"l": 64.314
},
"oklch": {
"l": 0.58482,
"c": 0.22157,
"h": 290.6
},
"luminance": 0.17734
}Semantic roles & 50–950 ramp
primary
#8156F2
secondary
#DEEDB7
accent
#E203A5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85