#8161F6#8161F6
#8161F6 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.4% C 0.213 H 288.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #8161F6 |
|---|---|
| RGB | rgb(129, 97, 246) |
| HSL | hsl(253, 89%, 67%) |
| HSV | hsv(253, 61%, 96%) |
| CMYK | cmyk(47.6%, 60.6%, 0%, 3.5%) |
| CIE-LAB | lab(51.69, 48.51, -70.59) |
| CIE-LCH | lch(51.69, 85.65, 304.50°) |
| OKLab | oklab(60.4% 0.0665 -0.202) |
| OKLCH | oklch(60.4% 0.213 288.2) |
| XYZ | xyz(29.9577, 19.8691, 89.4275) |
| Luminance | 0.1987 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.36
Purpley
#8756E4
ΔE00 4.25
Lighter Purple
#A55AF4
ΔE00 6.37
Mediumpurple
#9370DB
ΔE00 6.73
Light Indigo
#6D5ACF
ΔE00 6.92
Dark Periwinkle
#665FD1
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8161F6 #D6F661
analogous
#618BF6 #8161F6 #CC61F6
triadic
#8161F6 #F68161 #61F681
tetradic
#8161F6 #F6618B #D6F661 #61F6CC
square
#8161F6 #F6618B #D6F661 #61F6CC
split-complementary
#8161F6 #F6CC61 #8BF661
monochromatic
#360CD1 #5327F3 #8161F6 #AF9BF9 #DDD5FD
Accessibility & contrast
On white
4.22
#8161F6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.97
#8161F6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8161F6
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8161F6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8161F6 | 1.00 | 4.22 | 4.97 | 4.97 |
| #FFFFFF | 4.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007FFB
Deuteranopia (green-blind)
#0077F3
Tritanopia (blue-blind)
#5A84A2
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #8161f6; /* rgb */ color: rgb(129, 97, 246); /* oklch */ color: oklch(60.4% 0.213 288.2);
Tailwind
colors: {
custom: {
50: '#ae8ffa',
500: '#8161f6',
950: '#000000',
},
}SCSS
$custom: #8161f6; $custom-light: #ae8ffa; $custom-dark: #000000;
JSON
{
"hex": "#8161f6",
"rgb": {
"r": 129,
"g": 97,
"b": 246
},
"hsl": {
"h": 252.886,
"s": 89.222,
"l": 67.255
},
"oklch": {
"l": 0.60401,
"c": 0.21262,
"h": 288.2
},
"luminance": 0.1987
}Semantic roles & 50–950 ramp
primary
#8161F6
secondary
#E7F1C2
accent
#E600B4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85