#8A6FB2#8A6FB2
#8A6FB2 is a mid, moderate violet. Relative luminance 0.200; OKLCH L 59.4% C 0.104 H 301.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #8A6FB2 |
|---|---|
| RGB | rgb(138, 111, 178) |
| HSL | hsl(264, 30%, 57%) |
| HSV | hsv(264, 38%, 70%) |
| CMYK | cmyk(22.5%, 37.6%, 0%, 30.2%) |
| CIE-LAB | lab(51.82, 24.57, -31.70) |
| CIE-LCH | lch(51.82, 40.11, 307.77°) |
| OKLab | oklab(59.44% 0.0547 -0.088) |
| OKLCH | oklch(59.44% 0.104 301.9) |
| XYZ | xyz(24.1998, 19.9865, 44.6937) |
| Luminance | 0.1999 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 3.23
Deep Lavender
#8D5EB7
ΔE00 5.94
Dark Lavender
#856798
ΔE00 6.01
Dark Lilac
#9C6DA5
ΔE00 6.46
Soft Purple
#A66FB5
ΔE00 6.70
Amethyst
#9B5FC0
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A6FB2 #97B26F
analogous
#6F76B2 #8A6FB2 #AC6FB2
triadic
#8A6FB2 #B28A6F #6FB28A
tetradic
#8A6FB2 #B26F76 #97B26F #6FB2AC
square
#8A6FB2 #B26F76 #97B26F #6FB2AC
split-complementary
#8A6FB2 #B2AC6F #76B26F
monochromatic
#4E3A6D #6B4F94 #8A6FB2 #AA97C7 #CBBFDD
Accessibility & contrast
On white
4.20
#8A6FB2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.00
#8A6FB2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A6FB2
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A6FB2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A6FB2 | 1.00 | 4.20 | 5.00 | 5.00 |
| #FFFFFF | 4.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5F7BB5
Deuteranopia (green-blind)
#647BB0
Tritanopia (blue-blind)
#837A88
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #8a6fb2; /* rgb */ color: rgb(138, 111, 178); /* oklch */ color: oklch(59.4% 0.104 301.9);
Tailwind
colors: {
custom: {
50: '#ad98c9',
500: '#8a6fb2',
950: '#000000',
},
}SCSS
$custom: #8a6fb2; $custom-light: #ad98c9; $custom-dark: #000000;
JSON
{
"hex": "#8a6fb2",
"rgb": {
"r": 138,
"g": 111,
"b": 178
},
"hsl": {
"h": 264.179,
"s": 30.317,
"l": 56.667
},
"oklch": {
"l": 0.59443,
"c": 0.10363,
"h": 301.9
},
"luminance": 0.19987
}Semantic roles & 50–950 ramp
primary
#8A6FB2
secondary
#C1CCB1
accent
#C7619E
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82