#8162BB#8162BB
#8162BB is a mid, vivid violet. Relative luminance 0.170; OKLCH L 56.7% C 0.136 H 298.0°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #8162BB |
|---|---|
| RGB | rgb(129, 98, 187) |
| HSL | hsl(261, 40%, 56%) |
| HSV | hsv(261, 48%, 73%) |
| CMYK | cmyk(31%, 47.6%, 0%, 26.7%) |
| CIE-LAB | lab(48.25, 31.86, -42.60) |
| CIE-LCH | lch(48.25, 53.20, 306.79°) |
| OKLab | oklab(56.68% 0.0637 -0.1198) |
| OKLCH | oklch(56.68% 0.136 298) |
| XYZ | xyz(22.3884, 16.9901, 49.1040) |
| Luminance | 0.1699 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.35
Amethyst
#9B5FC0
ΔE00 5.73
Royal Purple
#7851A9
ΔE00 5.91
Deep Lilac
#966EBD
ΔE00 6.07
Light Indigo
#6D5ACF
ΔE00 6.26
Slate Blue
#6A5ACD
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8162BB #9CBB62
analogous
#626FBB #8162BB #AD62BB
triadic
#8162BB #BB8162 #62BB81
tetradic
#8162BB #BB626F #9CBB62 #62BBAD
square
#8162BB #BB626F #9CBB62 #62BBAD
split-complementary
#8162BB #BBAD62 #6FBB62
monochromatic
#483171 #62449C #8162BB #A38DCD #C6B7E0
Accessibility & contrast
On white
4.77
#8162BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.40
#8162BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8162BB
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8162BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8162BB | 1.00 | 4.77 | 4.40 | 4.77 |
| #FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4573BE
Deuteranopia (green-blind)
#4C72B9
Tritanopia (blue-blind)
#757286
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #8162bb; /* rgb */ color: rgb(129, 98, 187); /* oklch */ color: oklch(56.7% 0.136 298.0);
Tailwind
colors: {
custom: {
50: '#a88fd0',
500: '#8162bb',
950: '#000000',
},
}SCSS
$custom: #8162bb; $custom-light: #a88fd0; $custom-dark: #000000;
JSON
{
"hex": "#8162bb",
"rgb": {
"r": 129,
"g": 98,
"b": 187
},
"hsl": {
"h": 260.899,
"s": 39.556,
"l": 55.882
},
"oklch": {
"l": 0.56685,
"c": 0.1357,
"h": 298
},
"luminance": 0.1699
}Semantic roles & 50–950 ramp
primary
#8162BB
secondary
#C2CFAA
accent
#CF58A6
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82