#9B5CE3#9B5CE3
#9B5CE3 is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.9% C 0.199 H 302.4°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #9B5CE3 |
|---|---|
| RGB | rgb(155, 92, 227) |
| HSL | hsl(268, 71%, 63%) |
| HSV | hsv(268, 59%, 89%) |
| CMYK | cmyk(31.7%, 59.5%, 0%, 11%) |
| CIE-LAB | lab(52.03, 51.71, -59.27) |
| CIE-LCH | lch(52.03, 78.66, 311.11°) |
| OKLab | oklab(60.86% 0.1064 -0.1679) |
| OKLCH | oklch(60.86% 0.199 302.4) |
| XYZ | xyz(31.2066, 20.1689, 74.9071) |
| Luminance | 0.2017 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.53
Lighter Purple
#A55AF4
ΔE00 2.72
Purpley
#8756E4
ΔE00 4.25
Mediumpurple
#9370DB
ΔE00 5.58
Amethyst
#9B5FC0
ΔE00 5.92
Mediumorchid
#BA55D3
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B5CE3 #A4E35C
analogous
#5C60E3 #9B5CE3 #DF5CE3
triadic
#9B5CE3 #E39B5C #5CE39B
tetradic
#9B5CE3 #E35C60 #A4E35C #5CE3DF
square
#9B5CE3 #E35C60 #A4E35C #5CE3DF
split-complementary
#9B5CE3 #E3DF5C #60E35C
monochromatic
#5E1DA8 #7B28DA #9B5CE3 #BB90EC #DBC4F5
Accessibility & contrast
On white
4.17
#9B5CE3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.03
#9B5CE3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B5CE3
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B5CE3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B5CE3 | 1.00 | 4.17 | 5.03 | 5.03 |
| #FFFFFF | 4.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#107BE7
Deuteranopia (green-blind)
#367CE0
Tritanopia (blue-blind)
#8D7897
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #9b5ce3; /* rgb */ color: rgb(155, 92, 227); /* oklch */ color: oklch(60.9% 0.199 302.4);
Tailwind
colors: {
custom: {
50: '#bd8dec',
500: '#9b5ce3',
950: '#000000',
},
}SCSS
$custom: #9b5ce3; $custom-light: #bd8dec; $custom-dark: #000000;
JSON
{
"hex": "#9b5ce3",
"rgb": {
"r": 155,
"g": 92,
"b": 227
},
"hsl": {
"h": 268,
"s": 70.681,
"l": 62.549
},
"oklch": {
"l": 0.60856,
"c": 0.19874,
"h": 302.4
},
"luminance": 0.20169
}Semantic roles & 50–950 ramp
primary
#9B5CE3
secondary
#CFE6B5
accent
#D31379
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84