#9B5BEC#9B5BEC
#9B5BEC is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.3% C 0.210 H 300.6°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #9B5BEC |
|---|---|
| RGB | rgb(155, 91, 236) |
| HSL | hsl(266, 79%, 64%) |
| HSV | hsv(266, 61%, 93%) |
| CMYK | cmyk(34.3%, 61.4%, 0%, 7.5%) |
| CIE-LAB | lab(52.41, 54.41, -63.72) |
| CIE-LCH | lch(52.41, 83.79, 310.49°) |
| OKLab | oklab(61.31% 0.1072 -0.1809) |
| OKLCH | oklch(61.31% 0.21 300.6) |
| XYZ | xyz(32.3953, 20.5067, 81.5921) |
| Luminance | 0.2051 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 1.94
Lightish Purple
#A552E6
ΔE00 2.77
Purpley
#8756E4
ΔE00 4.15
Mediumpurple
#9370DB
ΔE00 5.98
Mediumslateblue
#7B68EE
ΔE00 6.68
Light Urple
#B36FF6
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B5BEC #ACEC5B
analogous
#5B64EC #9B5BEC #E45BEC
triadic
#9B5BEC #EC9B5B #5BEC9B
tetradic
#9B5BEC #EC5B64 #ACEC5B #5BECE4
square
#9B5BEC #EC5B64 #ACEC5B #5BECE4
split-complementary
#9B5BEC #ECE45B #64EC5B
monochromatic
#5D15B7 #7A24E6 #9B5BEC #BC92F2 #DEC9F9
Accessibility & contrast
On white
4.12
#9B5BEC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.10
#9B5BEC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B5BEC
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B5BEC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B5BEC | 1.00 | 4.12 | 5.10 | 5.10 |
| #FFFFFF | 4.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#267CE9
Tritanopia (blue-blind)
#8A7A9B
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #9b5bec; /* rgb */ color: rgb(155, 91, 236); /* oklch */ color: oklch(61.3% 0.210 300.6);
Tailwind
colors: {
custom: {
50: '#bd8cf3',
500: '#9b5bec',
950: '#000000',
},
}SCSS
$custom: #9b5bec; $custom-light: #bd8cf3; $custom-dark: #000000;
JSON
{
"hex": "#9b5bec",
"rgb": {
"r": 155,
"g": 91,
"b": 236
},
"hsl": {
"h": 266.483,
"s": 79.235,
"l": 64.118
},
"oklch": {
"l": 0.61312,
"c": 0.21032,
"h": 300.6
},
"luminance": 0.20507
}Semantic roles & 50–950 ramp
primary
#9B5BEC
secondary
#D4EBB8
accent
#DC0A7F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85