#9A5FE3#9A5FE3
#9A5FE3 is a mid, vivid violet. Relative luminance 0.206; OKLCH L 61.2% C 0.194 H 301.5°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #9A5FE3 |
|---|---|
| RGB | rgb(154, 95, 227) |
| HSL | hsl(267, 70%, 63%) |
| HSV | hsv(267, 58%, 89%) |
| CMYK | cmyk(32.2%, 58.1%, 0%, 11%) |
| CIE-LAB | lab(52.51, 49.91, -58.50) |
| CIE-LCH | lch(52.51, 76.90, 310.47°) |
| OKLab | oklab(61.18% 0.1015 -0.1656) |
| OKLCH | oklch(61.18% 0.194 301.5) |
| XYZ | xyz(31.2805, 20.6004, 74.9865) |
| Luminance | 0.2060 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 2.84
Lightish Purple
#A552E6
ΔE00 3.19
Purpley
#8756E4
ΔE00 4.49
Mediumpurple
#9370DB
ΔE00 4.86
Amethyst
#9B5FC0
ΔE00 5.98
Light Urple
#B36FF6
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A5FE3 #A8E35F
analogous
#5F66E3 #9A5FE3 #DC5FE3
triadic
#9A5FE3 #E39A5F #5FE39A
tetradic
#9A5FE3 #E35F66 #A8E35F #5FE3DC
square
#9A5FE3 #E35F66 #A8E35F #5FE3DC
split-complementary
#9A5FE3 #E3DC5F #66E35F
monochromatic
#5C1EAA #792BDA #9A5FE3 #BB93EC #DCC7F5
Accessibility & contrast
On white
4.10
#9A5FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#9A5FE3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9A5FE3
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A5FE3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9A5FE3 | 1.00 | 4.10 | 5.12 | 5.12 |
| #FFFFFF | 4.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D7CE7
Deuteranopia (green-blind)
#3A7DE0
Tritanopia (blue-blind)
#8B7A98
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #9a5fe3; /* rgb */ color: rgb(154, 95, 227); /* oklch */ color: oklch(61.2% 0.194 301.5);
Tailwind
colors: {
custom: {
50: '#bc8fec',
500: '#9a5fe3',
950: '#000000',
},
}SCSS
$custom: #9a5fe3; $custom-light: #bc8fec; $custom-dark: #000000;
JSON
{
"hex": "#9a5fe3",
"rgb": {
"r": 154,
"g": 95,
"b": 227
},
"hsl": {
"h": 266.818,
"s": 70.213,
"l": 63.137
},
"oklch": {
"l": 0.61182,
"c": 0.19428,
"h": 301.5
},
"luminance": 0.206
}Semantic roles & 50–950 ramp
primary
#9A5FE3
secondary
#D1E7B7
accent
#D2137D
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84