#9A5DED#9A5DED
#9A5DED is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.6% C 0.209 H 299.8°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #9A5DED |
|---|---|
| RGB | rgb(154, 93, 237) |
| HSL | hsl(265, 80%, 65%) |
| HSV | hsv(265, 61%, 93%) |
| CMYK | cmyk(35%, 60.8%, 0%, 7.1%) |
| CIE-LAB | lab(52.74, 53.41, -63.74) |
| CIE-LCH | lch(52.74, 83.16, 309.96°) |
| OKLab | oklab(61.55% 0.1036 -0.181) |
| OKLCH | oklch(61.55% 0.209 299.8) |
| XYZ | xyz(32.5231, 20.8129, 82.4082) |
| Luminance | 0.2081 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 2.02
Lightish Purple
#A552E6
ΔE00 3.27
Purpley
#8756E4
ΔE00 4.28
Mediumpurple
#9370DB
ΔE00 5.60
Mediumslateblue
#7B68EE
ΔE00 6.29
Light Urple
#B36FF6
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A5DED #B0ED5D
analogous
#5D68ED #9A5DED #E25DED
triadic
#9A5DED #ED9A5D #5DED9A
tetradic
#9A5DED #ED5D68 #B0ED5D #5DEDE2
square
#9A5DED #ED5D68 #B0ED5D #5DEDE2
split-complementary
#9A5DED #EDE25D #68ED5D
monochromatic
#5B15BB #7826E7 #9A5DED #BC94F3 #DFCBF9
Accessibility & contrast
On white
4.07
#9A5DED on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.16
#9A5DED on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9A5DED
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A5DED | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9A5DED | 1.00 | 4.07 | 5.16 | 5.16 |
| #FFFFFF | 4.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007EF2
Deuteranopia (green-blind)
#277DEA
Tritanopia (blue-blind)
#887C9C
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #9a5ded; /* rgb */ color: rgb(154, 93, 237); /* oklch */ color: oklch(61.6% 0.209 299.8);
Tailwind
colors: {
custom: {
50: '#bd8ef4',
500: '#9a5ded',
950: '#000000',
},
}SCSS
$custom: #9a5ded; $custom-light: #bd8ef4; $custom-dark: #000000;
JSON
{
"hex": "#9a5ded",
"rgb": {
"r": 154,
"g": 93,
"b": 237
},
"hsl": {
"h": 265.417,
"s": 80,
"l": 64.706
},
"oklch": {
"l": 0.61554,
"c": 0.20857,
"h": 299.8
},
"luminance": 0.20813
}Semantic roles & 50–950 ramp
primary
#9A5DED
secondary
#D7ECBA
accent
#DC0983
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#120C17
muted
#817D85