#9D5DCD#9D5DCD
#9D5DCD is a mid, vivid violet. Relative luminance 0.194; OKLCH L 59.9% C 0.173 H 308.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #9D5DCD |
|---|---|
| RGB | rgb(157, 93, 205) |
| HSL | hsl(274, 53%, 58%) |
| HSV | hsv(274, 55%, 80%) |
| CMYK | cmyk(23.4%, 54.6%, 0%, 19.6%) |
| CIE-LAB | lab(51.16, 46.50, -48.15) |
| CIE-LCH | lch(51.16, 66.94, 314.00°) |
| OKLab | oklab(59.85% 0.1074 -0.1352) |
| OKLCH | oklch(59.85% 0.173 308.4) |
| XYZ | xyz(28.8362, 19.4050, 59.9722) |
| Luminance | 0.1941 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 2.33
Lightish Purple
#A552E6
ΔE00 4.26
Deep Lavender
#8D5EB7
ΔE00 4.45
Mediumorchid
#BA55D3
ΔE00 5.45
Lighter Purple
#A55AF4
ΔE00 5.78
Deep Lilac
#966EBD
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D5DCD #8DCD5D
analogous
#655DCD #9D5DCD #CD5DC5
triadic
#9D5DCD #CD9D5D #5DCD9D
tetradic
#9D5DCD #CD655D #8DCD5D #5DC5CD
square
#9D5DCD #CD655D #8DCD5D #5DC5CD
split-complementary
#9D5DCD #C5CD5D #5DCD65
monochromatic
#5E2986 #7F38B5 #9D5DCD #B98CDB #D6BBEA
Accessibility & contrast
On white
4.30
#9D5DCD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#9D5DCD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D5DCD
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D5DCD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D5DCD | 1.00 | 4.30 | 4.88 | 4.88 |
| #FFFFFF | 4.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3977D1
Deuteranopia (green-blind)
#4F7BCA
Tritanopia (blue-blind)
#96718C
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #9d5dcd; /* rgb */ color: rgb(157, 93, 205); /* oklch */ color: oklch(59.9% 0.173 308.4);
Tailwind
colors: {
custom: {
50: '#bd8ddd',
500: '#9d5dcd',
950: '#000000',
},
}SCSS
$custom: #9d5dcd; $custom-light: #bd8ddd; $custom-dark: #000000;
JSON
{
"hex": "#9d5dcd",
"rgb": {
"r": 157,
"g": 93,
"b": 205
},
"hsl": {
"h": 274.286,
"s": 52.83,
"l": 58.431
},
"oklch": {
"l": 0.59852,
"c": 0.17268,
"h": 308.4
},
"luminance": 0.19405
}Semantic roles & 50–950 ramp
primary
#9D5DCD
secondary
#C0D9AD
accent
#DC4C8A
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83