#9A5BEC#9A5BEC
#9A5BEC is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.2% C 0.210 H 300.3°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #9A5BEC |
|---|---|
| RGB | rgb(154, 91, 236) |
| HSL | hsl(266, 79%, 64%) |
| HSV | hsv(266, 61%, 93%) |
| CMYK | cmyk(34.7%, 61.4%, 0%, 7.5%) |
| CIE-LAB | lab(52.30, 54.20, -63.90) |
| CIE-LCH | lch(52.30, 83.79, 310.30°) |
| OKLab | oklab(61.21% 0.1059 -0.1815) |
| OKLCH | oklch(61.21% 0.21 300.3) |
| XYZ | xyz(32.2042, 20.4081, 81.5831) |
| Luminance | 0.2041 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 2.09
Lightish Purple
#A552E6
ΔE00 2.88
Purpley
#8756E4
ΔE00 3.98
Mediumpurple
#9370DB
ΔE00 5.97
Mediumslateblue
#7B68EE
ΔE00 6.53
Light Urple
#B36FF6
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A5BEC #ADEC5B
analogous
#5B65EC #9A5BEC #E35BEC
triadic
#9A5BEC #EC9A5B #5BEC9A
tetradic
#9A5BEC #EC5B65 #ADEC5B #5BECE3
square
#9A5BEC #EC5B65 #ADEC5B #5BECE3
split-complementary
#9A5BEC #ECE35B #65EC5B
monochromatic
#5C15B7 #7824E6 #9A5BEC #BC92F2 #DEC9F9
Accessibility & contrast
On white
4.13
#9A5BEC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.08
#9A5BEC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9A5BEC
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A5BEC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9A5BEC | 1.00 | 4.13 | 5.08 | 5.08 |
| #FFFFFF | 4.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#247CE9
Tritanopia (blue-blind)
#887A9B
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #9a5bec; /* rgb */ color: rgb(154, 91, 236); /* oklch */ color: oklch(61.2% 0.210 300.3);
Tailwind
colors: {
custom: {
50: '#bd8cf3',
500: '#9a5bec',
950: '#000000',
},
}SCSS
$custom: #9a5bec; $custom-light: #bd8cf3; $custom-dark: #000000;
JSON
{
"hex": "#9a5bec",
"rgb": {
"r": 154,
"g": 91,
"b": 236
},
"hsl": {
"h": 266.069,
"s": 79.235,
"l": 64.118
},
"oklch": {
"l": 0.61208,
"c": 0.21015,
"h": 300.3
},
"luminance": 0.20408
}Semantic roles & 50–950 ramp
primary
#9A5BEC
secondary
#D5EBB8
accent
#DC0A80
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85