#9B5CDB#9B5CDB
#9B5CDB is a mid, vivid violet. Relative luminance 0.197; OKLCH L 60.3% C 0.190 H 304.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #9B5CDB |
|---|---|
| RGB | rgb(155, 92, 219) |
| HSL | hsl(270, 64%, 61%) |
| HSV | hsv(270, 58%, 86%) |
| CMYK | cmyk(29.2%, 58%, 0%, 14.1%) |
| CIE-LAB | lab(51.54, 49.80, -55.53) |
| CIE-LCH | lch(51.54, 74.59, 311.89°) |
| OKLab | oklab(60.34% 0.1065 -0.1569) |
| OKLCH | oklch(60.34% 0.19 304.2) |
| XYZ | xyz(30.1281, 19.7374, 69.2266) |
| Luminance | 0.1974 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.73
Lighter Purple
#A55AF4
ΔE00 3.72
Purpley
#8756E4
ΔE00 4.62
Amethyst
#9B5FC0
ΔE00 4.72
Mediumpurple
#9370DB
ΔE00 5.66
Deep Lavender
#8D5EB7
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B5CDB #9CDB5C
analogous
#5C5CDB #9B5CDB #DB5CDB
triadic
#9B5CDB #DB9B5C #5CDB9B
tetradic
#9B5CDB #DB5C5C #9CDB5C #5CDBDB
square
#9B5CDB #DB5C5C #9CDB5C #5CDBDB
split-complementary
#9B5CDB #DBDB5C #5CDB5C
monochromatic
#5E229A #7C2DCD #9B5CDB #BA8EE6 #D9C0F1
Accessibility & contrast
On white
4.24
#9B5CDB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.95
#9B5CDB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B5CDB
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B5CDB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B5CDB | 1.00 | 4.24 | 4.95 | 4.95 |
| #FFFFFF | 4.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.95 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.95 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2479DF
Deuteranopia (green-blind)
#407BD8
Tritanopia (blue-blind)
#8F7593
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #9b5cdb; /* rgb */ color: rgb(155, 92, 219); /* oklch */ color: oklch(60.3% 0.190 304.2);
Tailwind
colors: {
custom: {
50: '#bc8de7',
500: '#9b5cdb',
950: '#000000',
},
}SCSS
$custom: #9b5cdb; $custom-light: #bc8de7; $custom-dark: #000000;
JSON
{
"hex": "#9b5cdb",
"rgb": {
"r": 155,
"g": 92,
"b": 219
},
"hsl": {
"h": 269.764,
"s": 63.819,
"l": 60.98
},
"oklch": {
"l": 0.60342,
"c": 0.18963,
"h": 304.2
},
"luminance": 0.19737
}Semantic roles & 50–950 ramp
primary
#9B5CDB
secondary
#CAE1B1
accent
#CC1A73
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84