#9D5CD3#9D5CD3
#9D5CD3 is a mid, vivid violet. Relative luminance 0.195; OKLCH L 60.1% C 0.181 H 307.0°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #9D5CD3 |
|---|---|
| RGB | rgb(157, 92, 211) |
| HSL | hsl(273, 57%, 59%) |
| HSV | hsv(273, 56%, 83%) |
| CMYK | cmyk(25.6%, 56.4%, 0%, 17.3%) |
| CIE-LAB | lab(51.30, 48.41, -51.36) |
| CIE-LCH | lch(51.30, 70.58, 313.31°) |
| OKLab | oklab(60.06% 0.1089 -0.1446) |
| OKLCH | oklch(60.06% 0.181 307) |
| XYZ | xyz(29.4872, 19.5259, 63.8308) |
| Luminance | 0.1953 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 3.36
Amethyst
#9B5FC0
ΔE00 3.36
Lighter Purple
#A55AF4
ΔE00 4.83
Deep Lavender
#8D5EB7
ΔE00 5.19
Mediumorchid
#BA55D3
ΔE00 5.62
Purpley
#8756E4
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D5CD3 #92D35C
analogous
#625CD3 #9D5CD3 #D35CCE
triadic
#9D5CD3 #D39D5C #5CD39D
tetradic
#9D5CD3 #D3625C #92D35C #5CCED3
square
#9D5CD3 #D3625C #92D35C #5CCED3
split-complementary
#9D5CD3 #CED35C #5CD362
monochromatic
#5F268E #7F33BE #9D5CD3 #BA8CE0 #D7BCED
Accessibility & contrast
On white
4.28
#9D5CD3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.91
#9D5CD3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D5CD3
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D5CD3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D5CD3 | 1.00 | 4.28 | 4.91 | 4.91 |
| #FFFFFF | 4.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3178D7
Deuteranopia (green-blind)
#497BD0
Tritanopia (blue-blind)
#95728F
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #9d5cd3; /* rgb */ color: rgb(157, 92, 211); /* oklch */ color: oklch(60.1% 0.181 307.0);
Tailwind
colors: {
custom: {
50: '#bd8de1',
500: '#9d5cd3',
950: '#000000',
},
}SCSS
$custom: #9d5cd3; $custom-light: #bd8de1; $custom-dark: #000000;
JSON
{
"hex": "#9d5cd3",
"rgb": {
"r": 157,
"g": 92,
"b": 211
},
"hsl": {
"h": 272.773,
"s": 57.488,
"l": 59.412
},
"oklch": {
"l": 0.60064,
"c": 0.18103,
"h": 307
},
"luminance": 0.19526
}Semantic roles & 50–950 ramp
primary
#9D5CD3
secondary
#C3DDAE
accent
#E1478D
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83