#9B5FE5#9B5FE5
#9B5FE5 is a mid, vivid violet. Relative luminance 0.208; OKLCH L 61.4% C 0.197 H 301.5°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #9B5FE5 |
|---|---|
| RGB | rgb(155, 95, 229) |
| HSL | hsl(267, 72%, 64%) |
| HSV | hsv(267, 59%, 90%) |
| CMYK | cmyk(32.3%, 58.5%, 0%, 10.2%) |
| CIE-LAB | lab(52.74, 50.63, -59.25) |
| CIE-LCH | lch(52.74, 77.93, 310.51°) |
| OKLab | oklab(61.42% 0.1028 -0.1678) |
| OKLCH | oklch(61.42% 0.197 301.5) |
| XYZ | xyz(31.7493, 20.8100, 76.4576) |
| Luminance | 0.2081 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 2.54
Lightish Purple
#A552E6
ΔE00 3.14
Purpley
#8756E4
ΔE00 4.63
Mediumpurple
#9370DB
ΔE00 4.93
Amethyst
#9B5FC0
ΔE00 6.22
Light Urple
#B36FF6
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B5FE5 #A9E55F
analogous
#5F66E5 #9B5FE5 #DE5FE5
triadic
#9B5FE5 #E59B5F #5FE59B
tetradic
#9B5FE5 #E55F66 #A9E55F #5FE5DE
square
#9B5FE5 #E55F66 #A9E55F #5FE5DE
split-complementary
#9B5FE5 #E5DE5F #66E55F
monochromatic
#5D1CAD #7A2ADC #9B5FE5 #BC94EE #DDC8F6
Accessibility & contrast
On white
4.07
#9B5FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.16
#9B5FE5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B5FE5
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B5FE5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B5FE5 | 1.00 | 4.07 | 5.16 | 5.16 |
| #FFFFFF | 4.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#197DE9
Deuteranopia (green-blind)
#397DE2
Tritanopia (blue-blind)
#8C7B99
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #9b5fe5; /* rgb */ color: rgb(155, 95, 229); /* oklch */ color: oklch(61.4% 0.197 301.5);
Tailwind
colors: {
custom: {
50: '#bd8fee',
500: '#9b5fe5',
950: '#000000',
},
}SCSS
$custom: #9b5fe5; $custom-light: #bd8fee; $custom-dark: #000000;
JSON
{
"hex": "#9b5fe5",
"rgb": {
"r": 155,
"g": 95,
"b": 229
},
"hsl": {
"h": 266.866,
"s": 72.043,
"l": 63.529
},
"oklch": {
"l": 0.61416,
"c": 0.19679,
"h": 301.5
},
"luminance": 0.2081
}Semantic roles & 50–950 ramp
primary
#9B5FE5
secondary
#D2E8B8
accent
#D4117D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120D16
muted
#817D84