#9D5CD4#9D5CD4
#9D5CD4 is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.1% C 0.182 H 306.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #9D5CD4 |
|---|---|
| RGB | rgb(157, 92, 212) |
| HSL | hsl(273, 58%, 60%) |
| HSV | hsv(273, 57%, 83%) |
| CMYK | cmyk(25.9%, 56.6%, 0%, 16.9%) |
| CIE-LAB | lab(51.35, 48.64, -51.83) |
| CIE-LCH | lch(51.35, 71.08, 313.18°) |
| OKLab | oklab(60.12% 0.1089 -0.146) |
| OKLCH | oklch(60.12% 0.182 306.7) |
| XYZ | xyz(29.6130, 19.5762, 64.4931) |
| Luminance | 0.1958 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 3.24
Amethyst
#9B5FC0
ΔE00 3.52
Lighter Purple
#A55AF4
ΔE00 4.68
Deep Lavender
#8D5EB7
ΔE00 5.32
Purpley
#8756E4
ΔE00 5.58
Mediumorchid
#BA55D3
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D5CD4 #93D45C
analogous
#615CD4 #9D5CD4 #D45CCF
triadic
#9D5CD4 #D49D5C #5CD49D
tetradic
#9D5CD4 #D4615C #93D45C #5CCFD4
square
#9D5CD4 #D4615C #93D45C #5CCFD4
split-complementary
#9D5CD4 #CFD45C #5CD461
monochromatic
#5F2690 #7F33C0 #9D5CD4 #BA8CE1 #D7BDEE
Accessibility & contrast
On white
4.27
#9D5CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.92
#9D5CD4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D5CD4
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D5CD4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D5CD4 | 1.00 | 4.27 | 4.92 | 4.92 |
| #FFFFFF | 4.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3078D8
Deuteranopia (green-blind)
#497BD1
Tritanopia (blue-blind)
#94738F
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #9d5cd4; /* rgb */ color: rgb(157, 92, 212); /* oklch */ color: oklch(60.1% 0.182 306.7);
Tailwind
colors: {
custom: {
50: '#bd8de2',
500: '#9d5cd4',
950: '#000000',
},
}SCSS
$custom: #9d5cd4; $custom-light: #bd8de2; $custom-dark: #000000;
JSON
{
"hex": "#9d5cd4",
"rgb": {
"r": 157,
"g": 92,
"b": 212
},
"hsl": {
"h": 272.5,
"s": 58.252,
"l": 59.608
},
"oklch": {
"l": 0.60125,
"c": 0.18217,
"h": 306.7
},
"luminance": 0.19576
}Semantic roles & 50–950 ramp
primary
#9D5CD4
secondary
#C4DDAF
accent
#E1468D
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83