#9B5FBE#9B5FBE
#9B5FBE is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.1% C 0.152 H 311.7°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #9B5FBE |
|---|---|
| RGB | rgb(155, 95, 190) |
| HSL | hsl(278, 42%, 56%) |
| HSV | hsv(278, 50%, 75%) |
| CMYK | cmyk(18.4%, 50%, 0%, 25.5%) |
| CIE-LAB | lab(50.54, 41.49, -40.53) |
| CIE-LCH | lch(50.54, 58.01, 315.67°) |
| OKLab | oklab(59.08% 0.1009 -0.1131) |
| OKLCH | oklch(59.08% 0.152 311.7) |
| XYZ | xyz(26.9024, 18.8712, 50.9305) |
| Luminance | 0.1887 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 0.38
Deep Lavender
#8D5EB7
ΔE00 3.02
Deep Lilac
#966EBD
ΔE00 4.64
Mediumorchid
#BA55D3
ΔE00 6.19
Soft Purple
#A66FB5
ΔE00 6.43
Lightish Purple
#A552E6
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B5FBE #82BE5F
analogous
#6B5FBE #9B5FBE #BE5FB1
triadic
#9B5FBE #BE9B5F #5FBE9B
tetradic
#9B5FBE #BE6B5F #82BE5F #5FB1BE
square
#9B5FBE #BE6B5F #82BE5F #5FB1BE
split-complementary
#9B5FBE #B1BE5F #5FBE6B
monochromatic
#5A2F74 #7C419F #9B5FBE #B68BD0 #D1B6E1
Accessibility & contrast
On white
4.40
#9B5FBE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.77
#9B5FBE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B5FBE
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B5FBE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B5FBE | 1.00 | 4.40 | 4.77 | 4.77 |
| #FFFFFF | 4.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4875C1
Deuteranopia (green-blind)
#5A7ABC
Tritanopia (blue-blind)
#976E86
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #9b5fbe; /* rgb */ color: rgb(155, 95, 190); /* oklch */ color: oklch(59.1% 0.152 311.7);
Tailwind
colors: {
custom: {
50: '#ba8ed2',
500: '#9b5fbe',
950: '#000000',
},
}SCSS
$custom: #9b5fbe; $custom-light: #ba8ed2; $custom-dark: #000000;
JSON
{
"hex": "#9b5fbe",
"rgb": {
"r": 155,
"g": 95,
"b": 190
},
"hsl": {
"h": 277.895,
"s": 42.222,
"l": 55.882
},
"oklch": {
"l": 0.59081,
"c": 0.15157,
"h": 311.7
},
"luminance": 0.18871
}Semantic roles & 50–950 ramp
primary
#9B5FBE
secondary
#B7D0A9
accent
#D25684
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#120C14
muted
#817D82