#9D5CDC#9D5CDC
#9D5CDC is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.6% C 0.191 H 304.8°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #9D5CDC |
|---|---|
| RGB | rgb(157, 92, 220) |
| HSL | hsl(270, 65%, 61%) |
| HSV | hsv(270, 58%, 86%) |
| CMYK | cmyk(28.6%, 58.2%, 0%, 13.7%) |
| CIE-LAB | lab(51.83, 50.51, -55.62) |
| CIE-LCH | lch(51.83, 75.14, 312.24°) |
| OKLab | oklab(60.62% 0.109 -0.1571) |
| OKLCH | oklch(60.62% 0.191 304.8) |
| XYZ | xyz(30.6472, 19.9899, 69.9401) |
| Luminance | 0.1999 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.53
Lighter Purple
#A55AF4
ΔE00 3.49
Amethyst
#9B5FC0
ΔE00 4.77
Purpley
#8756E4
ΔE00 4.92
Mediumpurple
#9370DB
ΔE00 5.72
Mediumorchid
#BA55D3
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D5CDC #9BDC5C
analogous
#5D5CDC #9D5CDC #DC5CDB
triadic
#9D5CDC #DC9D5C #5CDC9D
tetradic
#9D5CDC #DC5D5C #9BDC5C #5CDBDC
square
#9D5CDC #DC5D5C #9BDC5C #5CDBDC
split-complementary
#9D5CDC #DBDC5C #5CDC5D
monochromatic
#60229C #7F2CCE #9D5CDC #BB8EE7 #DAC1F2
Accessibility & contrast
On white
4.20
#9D5CDC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.00
#9D5CDC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D5CDC
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D5CDC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D5CDC | 1.00 | 4.20 | 5.00 | 5.00 |
| #FFFFFF | 4.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#247AE0
Deuteranopia (green-blind)
#417CD9
Tritanopia (blue-blind)
#927593
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #9d5cdc; /* rgb */ color: rgb(157, 92, 220); /* oklch */ color: oklch(60.6% 0.191 304.8);
Tailwind
colors: {
custom: {
50: '#be8de7',
500: '#9d5cdc',
950: '#000000',
},
}SCSS
$custom: #9d5cdc; $custom-light: #be8de7; $custom-dark: #000000;
JSON
{
"hex": "#9d5cdc",
"rgb": {
"r": 157,
"g": 92,
"b": 220
},
"hsl": {
"h": 270.469,
"s": 64.646,
"l": 61.176
},
"oklch": {
"l": 0.60622,
"c": 0.19124,
"h": 304.8
},
"luminance": 0.1999
}Semantic roles & 50–950 ramp
primary
#9D5CDC
secondary
#CAE2B2
accent
#CC1971
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84