#5A2ED3#5A2ED3
#5A2ED3 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.2% C 0.231 H 285.7°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2ED3 |
|---|---|
| RGB | rgb(90, 46, 211) |
| HSL | hsl(256, 65%, 50%) |
| HSV | hsv(256, 78%, 83%) |
| CMYK | cmyk(57.3%, 78.2%, 0%, 17.3%) |
| CIE-LAB | lab(35.65, 58.78, -77.09) |
| CIE-LCH | lch(35.65, 96.94, 307.32°) |
| OKLab | oklab(47.19% 0.0624 -0.2221) |
| OKLCH | oklch(47.19% 0.231 285.7) |
| XYZ | xyz(16.9478, 8.8298, 62.4267) |
| Luminance | 0.0883 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 2.11
Blurple
#5539CC
ΔE00 2.30
Purpley Blue
#5F34E7
ΔE00 3.16
Burple
#6832E3
ΔE00 3.18
Blue With A Hint Of Purple
#533CC6
ΔE00 3.27
Purply Blue
#661AEE
ΔE00 3.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2ED3 #A7D32E
analogous
#2E54D3 #5A2ED3 #AC2ED3
triadic
#5A2ED3 #D35A2E #2ED35A
tetradic
#5A2ED3 #D32E54 #A7D32E #2ED3AC
square
#5A2ED3 #D32E54 #A7D32E #2ED3AC
split-complementary
#5A2ED3 #D3AC2E #54D32E
monochromatic
#2F176F #4422A2 #5A2ED3 #8261DE #AA93E8
Accessibility & contrast
On white
7.59
#5A2ED3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.77
#5A2ED3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2ED3
7.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2ED3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2ED3 | 1.00 | 7.59 | 2.77 | 7.59 |
| #FFFFFF | 7.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058D8
Deuteranopia (green-blind)
#004FD0
Tritanopia (blue-blind)
#195F80
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #5a2ed3; /* rgb */ color: rgb(90, 46, 211); /* oklch */ color: oklch(47.2% 0.231 285.7);
Tailwind
colors: {
custom: {
50: '#966de2',
500: '#5a2ed3',
950: '#000000',
},
}SCSS
$custom: #5a2ed3; $custom-light: #966de2; $custom-dark: #000000;
JSON
{
"hex": "#5a2ed3",
"rgb": {
"r": 90,
"g": 46,
"b": 211
},
"hsl": {
"h": 256,
"s": 65.217,
"l": 50.392
},
"oklch": {
"l": 0.47187,
"c": 0.23066,
"h": 285.7
},
"luminance": 0.08831
}Semantic roles & 50–950 ramp
primary
#5A2ED3
secondary
#C0D38A
accent
#E840BB
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84