#8162F6#8162F6
#8162F6 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.6% C 0.211 H 288.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #8162F6 |
|---|---|
| RGB | rgb(129, 98, 246) |
| HSL | hsl(253, 89%, 67%) |
| HSV | hsv(253, 60%, 96%) |
| CMYK | cmyk(47.6%, 60.2%, 0%, 3.5%) |
| CIE-LAB | lab(51.90, 47.95, -70.25) |
| CIE-LCH | lch(51.90, 85.06, 304.32°) |
| OKLab | oklab(60.56% 0.0654 -0.201) |
| OKLCH | oklch(60.56% 0.211 288) |
| XYZ | xyz(30.0507, 20.0550, 89.4585) |
| Luminance | 0.2006 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.16
Purpley
#8756E4
ΔE00 4.46
Lighter Purple
#A55AF4
ΔE00 6.43
Mediumpurple
#9370DB
ΔE00 6.59
Light Indigo
#6D5ACF
ΔE00 7.04
Dark Periwinkle
#665FD1
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8162F6 #D7F662
analogous
#628DF6 #8162F6 #CB62F6
triadic
#8162F6 #F68162 #62F681
tetradic
#8162F6 #F6628D #D7F662 #62F6CB
square
#8162F6 #F6628D #D7F662 #62F6CB
split-complementary
#8162F6 #F6CB62 #8DF662
monochromatic
#350CD2 #5328F3 #8162F6 #AF9CF9 #DED6FD
Accessibility & contrast
On white
4.19
#8162F6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.01
#8162F6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8162F6
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8162F6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8162F6 | 1.00 | 4.19 | 5.01 | 5.01 |
| #FFFFFF | 4.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007FFB
Deuteranopia (green-blind)
#0078F3
Tritanopia (blue-blind)
#5A84A3
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #8162f6; /* rgb */ color: rgb(129, 98, 246); /* oklch */ color: oklch(60.6% 0.211 288.0);
Tailwind
colors: {
custom: {
50: '#ae90fa',
500: '#8162f6',
950: '#000000',
},
}SCSS
$custom: #8162f6; $custom-light: #ae90fa; $custom-dark: #000000;
JSON
{
"hex": "#8162f6",
"rgb": {
"r": 129,
"g": 98,
"b": 246
},
"hsl": {
"h": 252.568,
"s": 89.157,
"l": 67.451
},
"oklch": {
"l": 0.60555,
"c": 0.21135,
"h": 288
},
"luminance": 0.20056
}Semantic roles & 50–950 ramp
primary
#8162F6
secondary
#E7F1C3
accent
#E600B5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110D17
muted
#807D85