#8A6DED#8A6DED
#8A6DED is a light, vivid violet. Relative luminance 0.225; OKLCH L 62.5% C 0.185 H 290.5°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).
Color values
| HEX | #8A6DED |
|---|---|
| RGB | rgb(138, 109, 237) |
| HSL | hsl(254, 78%, 68%) |
| HSV | hsv(254, 54%, 93%) |
| CMYK | cmyk(41.8%, 54%, 0%, 7.1%) |
| CIE-LAB | lab(54.51, 41.13, -60.99) |
| CIE-LCH | lch(54.51, 73.56, 303.99°) |
| OKLab | oklab(62.48% 0.0647 -0.1734) |
| OKLCH | oklch(62.48% 0.185 290.5) |
| XYZ | xyz(31.2317, 22.4540, 82.7928) |
| Luminance | 0.2245 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.01
Mediumpurple
#9370DB
ΔE00 3.67
Periwinkle (survey)
#8E82FE
ΔE00 6.48
Lighter Purple
#A55AF4
ΔE00 6.50
Purpley
#8756E4
ΔE00 6.61
Cornflower
#6A79F7
ΔE00 7.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A6DED #D0ED6D
analogous
#6D90ED #8A6DED #CA6DED
triadic
#8A6DED #ED8A6D #6DED8A
tetradic
#8A6DED #ED6D90 #D0ED6D #6DEDCA
square
#8A6DED #ED6D90 #D0ED6D #6DEDCA
split-complementary
#8A6DED #EDCA6D #90ED6D
monochromatic
#4019C7 #5E37E6 #8A6DED #B6A3F4 #E1DAFA
Accessibility & contrast
On white
3.82
#8A6DED on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.49
#8A6DED on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A6DED
5.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A6DED | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A6DED | 1.00 | 3.82 | 5.49 | 5.49 |
| #FFFFFF | 3.82 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.49 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.49 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D85F1
Deuteranopia (green-blind)
#3280EA
Tritanopia (blue-blind)
#6E88A3
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #8a6ded; /* rgb */ color: rgb(138, 109, 237); /* oklch */ color: oklch(62.5% 0.185 290.5);
Tailwind
colors: {
custom: {
50: '#b297f3',
500: '#8a6ded',
950: '#000000',
},
}SCSS
$custom: #8a6ded; $custom-light: #b297f3; $custom-dark: #000000;
JSON
{
"hex": "#8a6ded",
"rgb": {
"r": 138,
"g": 109,
"b": 237
},
"hsl": {
"h": 253.594,
"s": 78.049,
"l": 67.843
},
"oklch": {
"l": 0.62479,
"c": 0.1851,
"h": 290.5
},
"luminance": 0.22455
}Semantic roles & 50–950 ramp
primary
#8A6DED
secondary
#E6EFC7
accent
#DA0BAB
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D17
muted
#807E85