#8A6DC2#8A6DC2
#8A6DC2 is a mid, vivid violet. Relative luminance 0.202; OKLCH L 59.9% C 0.129 H 298.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #8A6DC2 |
|---|---|
| RGB | rgb(138, 109, 194) |
| HSL | hsl(260, 41%, 59%) |
| HSV | hsv(260, 44%, 76%) |
| CMYK | cmyk(28.9%, 43.8%, 0%, 23.9%) |
| CIE-LAB | lab(52.10, 29.72, -40.48) |
| CIE-LCH | lch(52.10, 50.22, 306.28°) |
| OKLab | oklab(59.91% 0.0607 -0.1134) |
| OKLCH | oklch(59.91% 0.129 298.2) |
| XYZ | xyz(25.6852, 20.2354, 53.5811) |
| Luminance | 0.2024 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 3.37
Mediumpurple
#9370DB
ΔE00 4.38
Deep Lavender
#8D5EB7
ΔE00 5.21
Amethyst
#9B5FC0
ΔE00 5.82
Soft Purple
#A66FB5
ΔE00 8.13
Mediumslateblue
#7B68EE
ΔE00 8.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A6DC2 #A5C26D
analogous
#6D7BC2 #8A6DC2 #B56DC2
triadic
#8A6DC2 #C28A6D #6DC28A
tetradic
#8A6DC2 #C26D7B #A5C26D #6DC2B5
square
#8A6DC2 #C26D7B #A5C26D #6DC2B5
split-complementary
#8A6DC2 #C2B56D #7BC26D
monochromatic
#4F357F #6947AB #8A6DC2 #AD98D4 #CFC3E6
Accessibility & contrast
On white
4.16
#8A6DC2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.05
#8A6DC2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A6DC2
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A6DC2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A6DC2 | 1.00 | 4.16 | 5.05 | 5.05 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#547CC5
Deuteranopia (green-blind)
#5A7BC0
Tritanopia (blue-blind)
#7F7C8E
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #8a6dc2; /* rgb */ color: rgb(138, 109, 194); /* oklch */ color: oklch(59.9% 0.129 298.2);
Tailwind
colors: {
custom: {
50: '#ae97d5',
500: '#8a6dc2',
950: '#000000',
},
}SCSS
$custom: #8a6dc2; $custom-light: #ae97d5; $custom-dark: #000000;
JSON
{
"hex": "#8a6dc2",
"rgb": {
"r": 138,
"g": 109,
"b": 194
},
"hsl": {
"h": 260.471,
"s": 41.063,
"l": 59.412
},
"oklch": {
"l": 0.59906,
"c": 0.12863,
"h": 298.2
},
"luminance": 0.20236
}Semantic roles & 50–950 ramp
primary
#8A6DC2
secondary
#CBD6B5
accent
#D157A7
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100D14
muted
#7F7E83