#9D5DC2#9D5DC2
#9D5DC2 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.2% C 0.160 H 311.7°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #9D5DC2 |
|---|---|
| RGB | rgb(157, 93, 194) |
| HSL | hsl(278, 45%, 56%) |
| HSV | hsv(278, 52%, 76%) |
| CMYK | cmyk(19.1%, 52.1%, 0%, 23.9%) |
| CIE-LAB | lab(50.56, 44.02, -42.79) |
| CIE-LCH | lch(50.56, 61.39, 315.81°) |
| OKLab | oklab(59.22% 0.1066 -0.1196) |
| OKLCH | oklch(59.22% 0.16 311.7) |
| XYZ | xyz(27.5549, 18.8924, 53.2235) |
| Luminance | 0.1889 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 0.69
Deep Lavender
#8D5EB7
ΔE00 3.49
Deep Lilac
#966EBD
ΔE00 5.28
Mediumorchid
#BA55D3
ΔE00 5.57
Lightish Purple
#A552E6
ΔE00 5.95
Soft Purple
#A66FB5
ΔE00 7.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D5DC2 #82C25D
analogous
#6B5DC2 #9D5DC2 #C25DB5
triadic
#9D5DC2 #C29D5D #5DC29D
tetradic
#9D5DC2 #C26B5D #82C25D #5DB5C2
square
#9D5DC2 #C26B5D #82C25D #5DB5C2
split-complementary
#9D5DC2 #B5C25D #5DC26B
monochromatic
#5C2D78 #7F3EA4 #9D5DC2 #B889D3 #D3B6E3
Accessibility & contrast
On white
4.39
#9D5DC2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.78
#9D5DC2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D5DC2
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D5DC2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D5DC2 | 1.00 | 4.39 | 4.78 | 4.78 |
| #FFFFFF | 4.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4375C5
Deuteranopia (green-blind)
#577ABF
Tritanopia (blue-blind)
#996E87
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #9d5dc2; /* rgb */ color: rgb(157, 93, 194); /* oklch */ color: oklch(59.2% 0.160 311.7);
Tailwind
colors: {
custom: {
50: '#bc8dd5',
500: '#9d5dc2',
950: '#000000',
},
}SCSS
$custom: #9d5dc2; $custom-light: #bc8dd5; $custom-dark: #000000;
JSON
{
"hex": "#9d5dc2",
"rgb": {
"r": 157,
"g": 93,
"b": 194
},
"hsl": {
"h": 278.02,
"s": 45.291,
"l": 56.275
},
"oklch": {
"l": 0.59219,
"c": 0.16018,
"h": 311.7
},
"luminance": 0.18892
}Semantic roles & 50–950 ramp
primary
#9D5DC2
secondary
#B8D2A9
accent
#D55383
background
#FBF8FD
surface
#F7F0FA
border
#D0CBD3
text
#120C14
muted
#817D83