#9D5FE7#9D5FE7
#9D5FE7 is a mid, vivid violet. Relative luminance 0.211; OKLCH L 61.8% C 0.199 H 301.9°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #9D5FE7 |
|---|---|
| RGB | rgb(157, 95, 231) |
| HSL | hsl(267, 74%, 64%) |
| HSV | hsv(267, 59%, 91%) |
| CMYK | cmyk(32%, 58.9%, 0%, 9.4%) |
| CIE-LAB | lab(53.08, 51.57, -59.81) |
| CIE-LCH | lch(53.08, 78.97, 310.77°) |
| OKLab | oklab(61.75% 0.1053 -0.1694) |
| OKLCH | oklch(61.75% 0.199 301.9) |
| XYZ | xyz(32.4173, 21.1220, 77.9549) |
| Luminance | 0.2112 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 2.17
Lightish Purple
#A552E6
ΔE00 3.06
Purpley
#8756E4
ΔE00 4.95
Mediumpurple
#9370DB
ΔE00 5.05
Light Urple
#B36FF6
ΔE00 6.07
Amethyst
#9B5FC0
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D5FE7 #A9E75F
analogous
#5F65E7 #9D5FE7 #E15FE7
triadic
#9D5FE7 #E79D5F #5FE79D
tetradic
#9D5FE7 #E75F65 #A9E75F #5FE7E1
square
#9D5FE7 #E75F65 #A9E75F #5FE7E1
split-complementary
#9D5FE7 #E7E15F #65E75F
monochromatic
#5F1BB1 #7C2ADF #9D5FE7 #BE94EF #DEC9F7
Accessibility & contrast
On white
4.02
#9D5FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.22
#9D5FE7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D5FE7
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D5FE7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D5FE7 | 1.00 | 4.02 | 5.22 | 5.22 |
| #FFFFFF | 4.02 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#167EEB
Deuteranopia (green-blind)
#387EE4
Tritanopia (blue-blind)
#8E7B9A
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #9d5fe7; /* rgb */ color: rgb(157, 95, 231); /* oklch */ color: oklch(61.8% 0.199 301.9);
Tailwind
colors: {
custom: {
50: '#be8fef',
500: '#9d5fe7',
950: '#000000',
},
}SCSS
$custom: #9d5fe7; $custom-light: #be8fef; $custom-dark: #000000;
JSON
{
"hex": "#9d5fe7",
"rgb": {
"r": 157,
"g": 95,
"b": 231
},
"hsl": {
"h": 267.353,
"s": 73.913,
"l": 63.922
},
"oklch": {
"l": 0.61754,
"c": 0.19947,
"h": 301.9
},
"luminance": 0.21122
}Semantic roles & 50–950 ramp
primary
#9D5FE7
secondary
#D3E9B9
accent
#D60F7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130D17
muted
#827D85