#8A6CBD#8A6CBD
#8A6CBD is a mid, vivid violet. Relative luminance 0.198; OKLCH L 59.5% C 0.124 H 299.7°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #8A6CBD |
|---|---|
| RGB | rgb(138, 108, 189) |
| HSL | hsl(262, 38%, 58%) |
| HSV | hsv(262, 43%, 74%) |
| CMYK | cmyk(27%, 42.9%, 0%, 25.9%) |
| CIE-LAB | lab(51.61, 29.04, -38.38) |
| CIE-LCH | lch(51.61, 48.13, 307.11°) |
| OKLab | oklab(59.46% 0.0613 -0.1073) |
| OKLCH | oklch(59.46% 0.124 299.7) |
| XYZ | xyz(25.0270, 19.8024, 50.6380) |
| Luminance | 0.1980 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 2.93
Deep Lavender
#8D5EB7
ΔE00 4.65
Mediumpurple
#9370DB
ΔE00 5.29
Amethyst
#9B5FC0
ΔE00 5.49
Soft Purple
#A66FB5
ΔE00 7.61
Dark Lavender
#856798
ΔE00 8.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A6CBD #9FBD6C
analogous
#6C76BD #8A6CBD #B26CBD
triadic
#8A6CBD #BD8A6C #6CBD8A
tetradic
#8A6CBD #BD6C76 #9FBD6C #6CBDB2
square
#8A6CBD #BD6C76 #9FBD6C #6CBDB2
split-complementary
#8A6CBD #BDB26C #76BD6C
monochromatic
#4F3678 #6A49A3 #8A6CBD #AC96D0 #CDC0E3
Accessibility & contrast
On white
4.23
#8A6CBD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.96
#8A6CBD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A6CBD
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A6CBD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A6CBD | 1.00 | 4.23 | 4.96 | 4.96 |
| #FFFFFF | 4.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#567BC0
Deuteranopia (green-blind)
#5C7ABB
Tritanopia (blue-blind)
#807A8B
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #8a6cbd; /* rgb */ color: rgb(138, 108, 189); /* oklch */ color: oklch(59.5% 0.124 299.7);
Tailwind
colors: {
custom: {
50: '#ae96d1',
500: '#8a6cbd',
950: '#000000',
},
}SCSS
$custom: #8a6cbd; $custom-light: #ae96d1; $custom-dark: #000000;
JSON
{
"hex": "#8a6cbd",
"rgb": {
"r": 138,
"g": 108,
"b": 189
},
"hsl": {
"h": 262.222,
"s": 38.028,
"l": 58.235
},
"oklch": {
"l": 0.59456,
"c": 0.12356,
"h": 299.7
},
"luminance": 0.19803
}Semantic roles & 50–950 ramp
primary
#8A6CBD
secondary
#C7D3B2
accent
#CE5AA3
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D14
muted
#7F7E82