#9D5CD9#9D5CD9
#9D5CD9 is a mid, vivid violet. Relative luminance 0.198; OKLCH L 60.4% C 0.188 H 305.5°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #9D5CD9 |
|---|---|
| RGB | rgb(157, 92, 217) |
| HSL | hsl(271, 62%, 61%) |
| HSV | hsv(271, 58%, 85%) |
| CMYK | cmyk(27.6%, 57.6%, 0%, 14.9%) |
| CIE-LAB | lab(51.65, 49.81, -54.21) |
| CIE-LCH | lch(51.65, 73.62, 312.58°) |
| OKLab | oklab(60.43% 0.109 -0.153) |
| OKLCH | oklch(60.43% 0.188 305.5) |
| XYZ | xyz(30.2535, 19.8324, 67.8664) |
| Luminance | 0.1983 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.74
Lighter Purple
#A55AF4
ΔE00 3.92
Amethyst
#9B5FC0
ΔE00 4.31
Purpley
#8756E4
ΔE00 5.13
Mediumpurple
#9370DB
ΔE00 5.81
Mediumorchid
#BA55D3
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D5CD9 #98D95C
analogous
#5E5CD9 #9D5CD9 #D95CD6
triadic
#9D5CD9 #D99D5C #5CD99D
tetradic
#9D5CD9 #D95E5C #98D95C #5CD6D9
square
#9D5CD9 #D95E5C #98D95C #5CD6D9
split-complementary
#9D5CD9 #D6D95C #5CD95E
monochromatic
#602397 #7F2FC9 #9D5CD9 #BB8EE5 #D9BFF0
Accessibility & contrast
On white
4.23
#9D5CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.97
#9D5CD9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D5CD9
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D5CD9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D5CD9 | 1.00 | 4.23 | 4.97 | 4.97 |
| #FFFFFF | 4.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2979DD
Deuteranopia (green-blind)
#447BD6
Tritanopia (blue-blind)
#937492
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #9d5cd9; /* rgb */ color: rgb(157, 92, 217); /* oklch */ color: oklch(60.4% 0.188 305.5);
Tailwind
colors: {
custom: {
50: '#bd8de5',
500: '#9d5cd9',
950: '#000000',
},
}SCSS
$custom: #9d5cd9; $custom-light: #bd8de5; $custom-dark: #000000;
JSON
{
"hex": "#9d5cd9",
"rgb": {
"r": 157,
"g": 92,
"b": 217
},
"hsl": {
"h": 271.2,
"s": 62.189,
"l": 60.588
},
"oklch": {
"l": 0.60434,
"c": 0.18784,
"h": 305.5
},
"luminance": 0.19832
}Semantic roles & 50–950 ramp
primary
#9D5CD9
secondary
#C7E0B1
accent
#CA1C6F
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120C16
muted
#817D84