#9D5DF2#9D5DF2
#9D5DF2 is a light, highly saturated violet. Relative luminance 0.214; OKLCH L 62.2% C 0.215 H 299.9°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).
Color values
| HEX | #9D5DF2 |
|---|---|
| RGB | rgb(157, 93, 242) |
| HSL | hsl(266, 85%, 66%) |
| HSV | hsv(266, 62%, 95%) |
| CMYK | cmyk(35.1%, 61.6%, 0%, 5.1%) |
| CIE-LAB | lab(53.39, 55.28, -65.47) |
| CIE-LCH | lch(53.39, 85.69, 310.18°) |
| OKLab | oklab(62.2% 0.1072 -0.186) |
| OKLCH | oklch(62.2% 0.215 299.9) |
| XYZ | xyz(33.8421, 21.4073, 86.3363) |
| Luminance | 0.2141 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 1.43
Lightish Purple
#A552E6
ΔE00 3.43
Purpley
#8756E4
ΔE00 4.95
Mediumpurple
#9370DB
ΔE00 5.88
Light Urple
#B36FF6
ΔE00 6.15
Mediumslateblue
#7B68EE
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D5DF2 #B2F25D
analogous
#5D67F2 #9D5DF2 #E85DF2
triadic
#9D5DF2 #F29D5D #5DF29D
tetradic
#9D5DF2 #F25D67 #B2F25D #5DF2E8
square
#9D5DF2 #F25D67 #B2F25D #5DF2E8
split-complementary
#9D5DF2 #F2E85D #67F25D
monochromatic
#5E10C5 #7B24ED #9D5DF2 #BF96F7 #E2CEFB
Accessibility & contrast
On white
3.98
#9D5DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.28
#9D5DF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D5DF2
5.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D5DF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D5DF2 | 1.00 | 3.98 | 5.28 | 5.28 |
| #FFFFFF | 3.98 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007FF7
Deuteranopia (green-blind)
#227EEF
Tritanopia (blue-blind)
#8B7D9F
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #9d5df2; /* rgb */ color: rgb(157, 93, 242); /* oklch */ color: oklch(62.2% 0.215 299.9);
Tailwind
colors: {
custom: {
50: '#bf8ef7',
500: '#9d5df2',
950: '#000000',
},
}SCSS
$custom: #9d5df2; $custom-light: #bf8ef7; $custom-dark: #000000;
JSON
{
"hex": "#9d5df2",
"rgb": {
"r": 157,
"g": 93,
"b": 242
},
"hsl": {
"h": 265.772,
"s": 85.143,
"l": 65.686
},
"oklch": {
"l": 0.62202,
"c": 0.21471,
"h": 299.9
},
"luminance": 0.21408
}Semantic roles & 50–950 ramp
primary
#9D5DF2
secondary
#D9EEBD
accent
#E20482
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85