#9B5CE4#9B5CE4
#9B5CE4 is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.9% C 0.200 H 302.1°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #9B5CE4 |
|---|---|
| RGB | rgb(155, 92, 228) |
| HSL | hsl(268, 72%, 63%) |
| HSV | hsv(268, 60%, 89%) |
| CMYK | cmyk(32%, 59.6%, 0%, 10.6%) |
| CIE-LAB | lab(52.09, 51.96, -59.73) |
| CIE-LCH | lch(52.09, 79.17, 311.02°) |
| OKLab | oklab(60.92% 0.1064 -0.1692) |
| OKLCH | oklch(60.92% 0.2 302.1) |
| XYZ | xyz(31.3450, 20.2242, 75.6361) |
| Luminance | 0.2022 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.54
Lighter Purple
#A55AF4
ΔE00 2.61
Purpley
#8756E4
ΔE00 4.23
Mediumpurple
#9370DB
ΔE00 5.59
Amethyst
#9B5FC0
ΔE00 6.06
Light Urple
#B36FF6
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B5CE4 #A5E45C
analogous
#5C61E4 #9B5CE4 #DF5CE4
triadic
#9B5CE4 #E49B5C #5CE49B
tetradic
#9B5CE4 #E45C61 #A5E45C #5CE4DF
square
#9B5CE4 #E45C61 #A5E45C #5CE4DF
split-complementary
#9B5CE4 #E4DF5C #61E45C
monochromatic
#5E1CAA #7B27DB #9B5CE4 #BB91ED #DBC5F5
Accessibility & contrast
On white
4.16
#9B5CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.04
#9B5CE4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B5CE4
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B5CE4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B5CE4 | 1.00 | 4.16 | 5.04 | 5.04 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C7BE8
Deuteranopia (green-blind)
#357CE1
Tritanopia (blue-blind)
#8D7897
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #9b5ce4; /* rgb */ color: rgb(155, 92, 228); /* oklch */ color: oklch(60.9% 0.200 302.1);
Tailwind
colors: {
custom: {
50: '#bd8ded',
500: '#9b5ce4',
950: '#000000',
},
}SCSS
$custom: #9b5ce4; $custom-light: #bd8ded; $custom-dark: #000000;
JSON
{
"hex": "#9b5ce4",
"rgb": {
"r": 155,
"g": 92,
"b": 228
},
"hsl": {
"h": 267.794,
"s": 71.579,
"l": 62.745
},
"oklch": {
"l": 0.60921,
"c": 0.19988,
"h": 302.1
},
"luminance": 0.20224
}Semantic roles & 50–950 ramp
primary
#9B5CE4
secondary
#D0E7B5
accent
#D4127A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84