#5A2EBD#5A2EBD
#5A2EBD is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.206 H 289.4°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2EBD |
|---|---|
| RGB | rgb(90, 46, 189) |
| HSL | hsl(258, 61%, 46%) |
| HSV | hsv(258, 76%, 74%) |
| CMYK | cmyk(52.4%, 75.7%, 0%, 25.9%) |
| CIE-LAB | lab(33.57, 52.76, -67.68) |
| CIE-LCH | lch(33.57, 85.82, 307.94°) |
| OKLab | oklab(45.1% 0.0686 -0.1946) |
| OKLCH | oklch(45.1% 0.206 289.4) |
| XYZ | xyz(14.3761, 7.8011, 48.8825) |
| Luminance | 0.0780 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 2.87
Blurple
#5539CC
ΔE00 3.33
Blue With A Hint Of Purple
#533CC6
ΔE00 3.59
Violet Blue
#510AC9
ΔE00 4.64
Bluey Purple
#6241C7
ΔE00 4.68
Ocean Blue
#4F42B5
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2EBD #91BD2E
analogous
#2E49BD #5A2EBD #A12EBD
triadic
#5A2EBD #BD5A2E #2EBD5A
tetradic
#5A2EBD #BD2E49 #91BD2E #2EBDA1
square
#5A2EBD #BD2E49 #91BD2E #2EBDA1
split-complementary
#5A2EBD #BDA12E #49BD2E
monochromatic
#2B165B #43228C #5A2EBD #7B53D5 #A184E1
Accessibility & contrast
On white
8.20
#5A2EBD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.56
#5A2EBD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2EBD
8.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2EBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2EBD | 1.00 | 8.20 | 2.56 | 8.20 |
| #FFFFFF | 8.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#004BBA
Tritanopia (blue-blind)
#355674
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #5a2ebd; /* rgb */ color: rgb(90, 46, 189); /* oklch */ color: oklch(45.1% 0.206 289.4);
Tailwind
colors: {
custom: {
50: '#936cd2',
500: '#5a2ebd',
950: '#000000',
},
}SCSS
$custom: #5a2ebd; $custom-light: #936cd2; $custom-dark: #000000;
JSON
{
"hex": "#5a2ebd",
"rgb": {
"r": 90,
"g": 46,
"b": 189
},
"hsl": {
"h": 258.462,
"s": 60.851,
"l": 46.078
},
"oklch": {
"l": 0.45097,
"c": 0.2063,
"h": 289.4
},
"luminance": 0.07802
}Semantic roles & 50–950 ramp
primary
#5A2EBD
secondary
#B2CA7C
accent
#E444B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83