#9E5FDA#9E5FDA
#9E5FDA is a mid, vivid violet. Relative luminance 0.205; OKLCH L 61.0% C 0.185 H 305.2°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #9E5FDA |
|---|---|
| RGB | rgb(158, 95, 218) |
| HSL | hsl(271, 62%, 61%) |
| HSV | hsv(271, 56%, 85%) |
| CMYK | cmyk(27.5%, 56.4%, 0%, 14.5%) |
| CIE-LAB | lab(52.42, 48.71, -53.54) |
| CIE-LCH | lch(52.42, 72.38, 312.29°) |
| OKLab | oklab(61.04% 0.1066 -0.151) |
| OKLCH | oklch(61.04% 0.185 305.2) |
| XYZ | xyz(30.8449, 20.5157, 68.6510) |
| Luminance | 0.2051 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 3.18
Lighter Purple
#A55AF4
ΔE00 3.78
Amethyst
#9B5FC0
ΔE00 4.40
Mediumpurple
#9370DB
ΔE00 5.16
Purpley
#8756E4
ΔE00 5.59
Mediumorchid
#BA55D3
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E5FDA #9BDA5F
analogous
#615FDA #9E5FDA #DA5FD9
triadic
#9E5FDA #DA9E5F #5FDA9E
tetradic
#9E5FDA #DA615F #9BDA5F #5FD9DA
square
#9E5FDA #DA615F #9BDA5F #5FD9DA
split-complementary
#9E5FDA #D9DA5F #5FDA61
monochromatic
#61249B #802FCD #9E5FDA #BC91E5 #DAC2F1
Accessibility & contrast
On white
4.12
#9E5FDA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.10
#9E5FDA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9E5FDA
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E5FDA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E5FDA | 1.00 | 4.12 | 5.10 | 5.10 |
| #FFFFFF | 4.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F7BDE
Deuteranopia (green-blind)
#487DD7
Tritanopia (blue-blind)
#947793
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #9e5fda; /* rgb */ color: rgb(158, 95, 218); /* oklch */ color: oklch(61.0% 0.185 305.2);
Tailwind
colors: {
custom: {
50: '#be8fe6',
500: '#9e5fda',
950: '#000000',
},
}SCSS
$custom: #9e5fda; $custom-light: #be8fe6; $custom-dark: #000000;
JSON
{
"hex": "#9e5fda",
"rgb": {
"r": 158,
"g": 95,
"b": 218
},
"hsl": {
"h": 270.732,
"s": 62.437,
"l": 61.373
},
"oklch": {
"l": 0.61041,
"c": 0.1848,
"h": 305.2
},
"luminance": 0.20515
}Semantic roles & 50–950 ramp
primary
#9E5FDA
secondary
#CAE1B3
accent
#CA1B71
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120C16
muted
#817D84