#9D5CD2#9D5CD2
#9D5CD2 is a mid, vivid violet. Relative luminance 0.195; OKLCH L 60.0% C 0.180 H 307.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #9D5CD2 |
|---|---|
| RGB | rgb(157, 92, 210) |
| HSL | hsl(273, 57%, 59%) |
| HSV | hsv(273, 56%, 82%) |
| CMYK | cmyk(25.2%, 56.2%, 0%, 17.6%) |
| CIE-LAB | lab(51.24, 48.18, -50.88) |
| CIE-LCH | lch(51.24, 70.07, 313.44°) |
| OKLab | oklab(60% 0.1089 -0.1432) |
| OKLCH | oklch(60% 0.18 307.2) |
| XYZ | xyz(29.3622, 19.4759, 63.1727) |
| Luminance | 0.1948 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 3.20
Lightish Purple
#A552E6
ΔE00 3.48
Lighter Purple
#A55AF4
ΔE00 4.99
Deep Lavender
#8D5EB7
ΔE00 5.07
Mediumorchid
#BA55D3
ΔE00 5.57
Purpley
#8756E4
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D5CD2 #91D25C
analogous
#625CD2 #9D5CD2 #D25CCC
triadic
#9D5CD2 #D29D5C #5CD29D
tetradic
#9D5CD2 #D2625C #91D25C #5CCCD2
square
#9D5CD2 #D2625C #91D25C #5CCCD2
split-complementary
#9D5CD2 #CCD25C #5CD262
monochromatic
#5F278D #7F34BD #9D5CD2 #BA8CDF #D7BCEC
Accessibility & contrast
On white
4.29
#9D5CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.90
#9D5CD2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D5CD2
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D5CD2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D5CD2 | 1.00 | 4.29 | 4.90 | 4.90 |
| #FFFFFF | 4.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.90 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.90 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3278D6
Deuteranopia (green-blind)
#4A7BCF
Tritanopia (blue-blind)
#95728E
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #9d5cd2; /* rgb */ color: rgb(157, 92, 210); /* oklch */ color: oklch(60.0% 0.180 307.2);
Tailwind
colors: {
custom: {
50: '#bd8de0',
500: '#9d5cd2',
950: '#000000',
},
}SCSS
$custom: #9d5cd2; $custom-light: #bd8de0; $custom-dark: #000000;
JSON
{
"hex": "#9d5cd2",
"rgb": {
"r": 157,
"g": 92,
"b": 210
},
"hsl": {
"h": 273.051,
"s": 56.731,
"l": 59.216
},
"oklch": {
"l": 0.60004,
"c": 0.1799,
"h": 307.2
},
"luminance": 0.19476
}Semantic roles & 50–950 ramp
primary
#9D5CD2
secondary
#C3DCAE
accent
#E0488C
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83