#9D5FDD#9D5FDD
#9D5FDD is a mid, vivid violet. Relative luminance 0.206; OKLCH L 61.1% C 0.188 H 304.1°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #9D5FDD |
|---|---|
| RGB | rgb(157, 95, 221) |
| HSL | hsl(270, 65%, 62%) |
| HSV | hsv(270, 57%, 87%) |
| CMYK | cmyk(29%, 57%, 0%, 13.3%) |
| CIE-LAB | lab(52.48, 49.17, -55.14) |
| CIE-LCH | lch(52.48, 73.88, 311.72°) |
| OKLab | oklab(61.12% 0.1053 -0.1557) |
| OKLCH | oklch(61.12% 0.188 304.1) |
| XYZ | xyz(31.0451, 20.5731, 70.7281) |
| Luminance | 0.2057 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 3.06
Lighter Purple
#A55AF4
ΔE00 3.38
Amethyst
#9B5FC0
ΔE00 4.91
Mediumpurple
#9370DB
ΔE00 5.01
Purpley
#8756E4
ΔE00 5.23
Mediumorchid
#BA55D3
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D5FDD #9FDD5F
analogous
#5F60DD #9D5FDD #DC5FDD
triadic
#9D5FDD #DD9D5F #5FDD9D
tetradic
#9D5FDD #DD5F60 #9FDD5F #5FDDDC
square
#9D5FDD #DD5F60 #9FDD5F #5FDDDC
split-complementary
#9D5FDD #DDDC5F #60DD5F
monochromatic
#6022A0 #7E2DD2 #9D5FDD #BC91E8 #DBC4F2
Accessibility & contrast
On white
4.11
#9D5FDD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.11
#9D5FDD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D5FDD
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D5FDD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D5FDD | 1.00 | 4.11 | 5.11 | 5.11 |
| #FFFFFF | 4.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B7CE1
Deuteranopia (green-blind)
#447DDA
Tritanopia (blue-blind)
#917895
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #9d5fdd; /* rgb */ color: rgb(157, 95, 221); /* oklch */ color: oklch(61.1% 0.188 304.1);
Tailwind
colors: {
custom: {
50: '#bd8fe8',
500: '#9d5fdd',
950: '#000000',
},
}SCSS
$custom: #9d5fdd; $custom-light: #bd8fe8; $custom-dark: #000000;
JSON
{
"hex": "#9d5fdd",
"rgb": {
"r": 157,
"g": 95,
"b": 221
},
"hsl": {
"h": 269.524,
"s": 64.948,
"l": 61.961
},
"oklch": {
"l": 0.61119,
"c": 0.18799,
"h": 304.1
},
"luminance": 0.20573
}Semantic roles & 50–950 ramp
primary
#9D5FDD
secondary
#CCE3B5
accent
#CD1974
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84