#5A2EBF#5A2EBF
#5A2EBF is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.209 H 289.0°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2EBF |
|---|---|
| RGB | rgb(90, 46, 191) |
| HSL | hsl(258, 61%, 46%) |
| HSV | hsv(258, 76%, 75%) |
| CMYK | cmyk(52.9%, 75.9%, 0%, 25.1%) |
| CIE-LAB | lab(33.75, 53.31, -68.56) |
| CIE-LCH | lch(33.75, 86.85, 307.87°) |
| OKLab | oklab(45.28% 0.0681 -0.1971) |
| OKLCH | oklch(45.28% 0.209 289) |
| XYZ | xyz(14.5947, 7.8885, 50.0337) |
| Luminance | 0.0789 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 2.67
Blurple
#5539CC
ΔE00 3.14
Blue With A Hint Of Purple
#533CC6
ΔE00 3.46
Bluey Purple
#6241C7
ΔE00 4.57
Violet Blue
#510AC9
ΔE00 4.60
Ocean Blue
#4F42B5
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2EBF #93BF2E
analogous
#2E4BBF #5A2EBF #A32EBF
triadic
#5A2EBF #BF5A2E #2EBF5A
tetradic
#5A2EBF #BF2E4B #93BF2E #2EBFA3
square
#5A2EBF #BF2E4B #93BF2E #2EBFA3
split-complementary
#5A2EBF #BFA32E #4BBF2E
monochromatic
#2C165C #43228E #5A2EBF #7C54D6 #A286E2
Accessibility & contrast
On white
8.15
#5A2EBF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#5A2EBF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2EBF
8.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2EBF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2EBF | 1.00 | 8.15 | 2.58 | 8.15 |
| #FFFFFF | 8.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#335775
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #5a2ebf; /* rgb */ color: rgb(90, 46, 191); /* oklch */ color: oklch(45.3% 0.209 289.0);
Tailwind
colors: {
custom: {
50: '#936cd3',
500: '#5a2ebf',
950: '#000000',
},
}SCSS
$custom: #5a2ebf; $custom-light: #936cd3; $custom-dark: #000000;
JSON
{
"hex": "#5a2ebf",
"rgb": {
"r": 90,
"g": 46,
"b": 191
},
"hsl": {
"h": 258.207,
"s": 61.181,
"l": 46.471
},
"oklch": {
"l": 0.45283,
"c": 0.20854,
"h": 289
},
"luminance": 0.07889
}Semantic roles & 50–950 ramp
primary
#5A2EBF
secondary
#B4CB7E
accent
#E444B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83