#9A5FEB#9A5FEB
#9A5FEB is a mid, highly saturated violet. Relative luminance 0.211; OKLCH L 61.7% C 0.204 H 299.9°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #9A5FEB |
|---|---|
| RGB | rgb(154, 95, 235) |
| HSL | hsl(265, 78%, 65%) |
| HSV | hsv(265, 60%, 92%) |
| CMYK | cmyk(34.5%, 59.6%, 0%, 7.8%) |
| CIE-LAB | lab(53.01, 51.87, -62.20) |
| CIE-LCH | lch(53.01, 80.99, 309.83°) |
| OKLab | oklab(61.71% 0.1014 -0.1765) |
| OKLCH | oklch(61.71% 0.204 299.9) |
| XYZ | xyz(32.4104, 21.0523, 80.9371) |
| Luminance | 0.2105 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 2.20
Lightish Purple
#A552E6
ΔE00 3.49
Purpley
#8756E4
ΔE00 4.52
Mediumpurple
#9370DB
ΔE00 5.10
Mediumslateblue
#7B68EE
ΔE00 6.20
Light Urple
#B36FF6
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A5FEB #B0EB5F
analogous
#5F6AEB #9A5FEB #E05FEB
triadic
#9A5FEB #EB9A5F #5FEB9A
tetradic
#9A5FEB #EB5F6A #B0EB5F #5FEBE0
square
#9A5FEB #EB5F6A #B0EB5F #5FEBE0
split-complementary
#9A5FEB #EBE05F #6AEB5F
monochromatic
#5B17B9 #7829E4 #9A5FEB #BC95F2 #DFCCF9
Accessibility & contrast
On white
4.03
#9A5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.21
#9A5FEB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9A5FEB
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A5FEB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9A5FEB | 1.00 | 4.03 | 5.21 | 5.21 |
| #FFFFFF | 4.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007EEF
Deuteranopia (green-blind)
#2E7EE8
Tritanopia (blue-blind)
#897D9C
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #9a5feb; /* rgb */ color: rgb(154, 95, 235); /* oklch */ color: oklch(61.7% 0.204 299.9);
Tailwind
colors: {
custom: {
50: '#bc8ff2',
500: '#9a5feb',
950: '#000000',
},
}SCSS
$custom: #9a5feb; $custom-light: #bc8ff2; $custom-dark: #000000;
JSON
{
"hex": "#9a5feb",
"rgb": {
"r": 154,
"g": 95,
"b": 235
},
"hsl": {
"h": 265.286,
"s": 77.778,
"l": 64.706
},
"oklch": {
"l": 0.61705,
"c": 0.20354,
"h": 299.9
},
"luminance": 0.21053
}Semantic roles & 50–950 ramp
primary
#9A5FEB
secondary
#D7EBBB
accent
#DA0B83
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120D17
muted
#817D85