#9D5CDA#9D5CDA
#9D5CDA is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.5% C 0.189 H 305.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #9D5CDA |
|---|---|
| RGB | rgb(157, 92, 218) |
| HSL | hsl(271, 63%, 61%) |
| HSV | hsv(271, 58%, 85%) |
| CMYK | cmyk(28%, 57.8%, 0%, 14.5%) |
| CIE-LAB | lab(51.71, 50.04, -54.68) |
| CIE-LCH | lch(51.71, 74.12, 312.46°) |
| OKLab | oklab(60.5% 0.109 -0.1543) |
| OKLCH | oklch(60.5% 0.189 305.2) |
| XYZ | xyz(30.3839, 19.8845, 68.5535) |
| Luminance | 0.1988 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.66
Lighter Purple
#A55AF4
ΔE00 3.78
Amethyst
#9B5FC0
ΔE00 4.46
Purpley
#8756E4
ΔE00 5.06
Mediumpurple
#9370DB
ΔE00 5.77
Mediumorchid
#BA55D3
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D5CDA #99DA5C
analogous
#5E5CDA #9D5CDA #DA5CD8
triadic
#9D5CDA #DA9D5C #5CDA9D
tetradic
#9D5CDA #DA5E5C #99DA5C #5CD8DA
square
#9D5CDA #DA5E5C #99DA5C #5CD8DA
split-complementary
#9D5CDA #D8DA5C #5CDA5E
monochromatic
#602399 #7F2ECB #9D5CDA #BB8EE5 #D9C0F1
Accessibility & contrast
On white
4.22
#9D5CDA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.98
#9D5CDA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D5CDA
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D5CDA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D5CDA | 1.00 | 4.22 | 4.98 | 4.98 |
| #FFFFFF | 4.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2779DE
Deuteranopia (green-blind)
#437BD7
Tritanopia (blue-blind)
#937592
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #9d5cda; /* rgb */ color: rgb(157, 92, 218); /* oklch */ color: oklch(60.5% 0.189 305.2);
Tailwind
colors: {
custom: {
50: '#bd8de6',
500: '#9d5cda',
950: '#000000',
},
}SCSS
$custom: #9d5cda; $custom-light: #bd8de6; $custom-dark: #000000;
JSON
{
"hex": "#9d5cda",
"rgb": {
"r": 157,
"g": 92,
"b": 218
},
"hsl": {
"h": 270.952,
"s": 63,
"l": 60.784
},
"oklch": {
"l": 0.60496,
"c": 0.18897,
"h": 305.2
},
"luminance": 0.19884
}Semantic roles & 50–950 ramp
primary
#9D5CDA
secondary
#C8E1B1
accent
#CB1B70
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120C16
muted
#817D84