#5A51E7#5A51E7
#5A51E7 is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.7% C 0.218 H 278.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).
Color values
| HEX | #5A51E7 |
|---|---|
| RGB | rgb(90, 81, 231) |
| HSL | hsl(244, 76%, 61%) |
| HSV | hsv(244, 65%, 91%) |
| CMYK | cmyk(61%, 64.9%, 0%, 9.4%) |
| CIE-LAB | lab(43.98, 46.47, -74.86) |
| CIE-LCH | lch(43.98, 88.11, 301.83°) |
| OKLab | oklab(53.65% 0.0332 -0.2157) |
| OKLCH | oklch(53.65% 0.218 278.8) |
| XYZ | xyz(21.5781, 13.8264, 77.1175) |
| Luminance | 0.1383 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.37
Purpleish Blue
#6140EF
ΔE00 4.14
Slate Blue
#6A5ACD
ΔE00 4.65
Light Indigo
#6D5ACF
ΔE00 4.72
Dark Periwinkle
#665FD1
ΔE00 4.96
Iris
#6258C4
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A51E7 #DEE751
analogous
#5193E7 #5A51E7 #A551E7
triadic
#5A51E7 #E75A51 #51E75A
tetradic
#5A51E7 #E75193 #DEE751 #51E7A5
square
#5A51E7 #E75193 #DEE751 #51E7A5
split-complementary
#5A51E7 #E7A551 #93E751
monochromatic
#2017A7 #2A1EDC #5A51E7 #8D87EE #C0BDF6
Accessibility & contrast
On white
5.58
#5A51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.77
#5A51E7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A51E7
5.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A51E7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A51E7 | 1.00 | 5.58 | 3.77 | 5.58 |
| #FFFFFF | 5.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EEC
Deuteranopia (green-blind)
#0062E4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #5a51e7; /* rgb */ color: rgb(90, 81, 231); /* oklch */ color: oklch(53.7% 0.218 278.8);
Tailwind
colors: {
custom: {
50: '#9783f0',
500: '#5a51e7',
950: '#000000',
},
}SCSS
$custom: #5a51e7; $custom-light: #9783f0; $custom-dark: #000000;
JSON
{
"hex": "#5a51e7",
"rgb": {
"r": 90,
"g": 81,
"b": 231
},
"hsl": {
"h": 243.6,
"s": 75.758,
"l": 61.176
},
"oklch": {
"l": 0.53654,
"c": 0.21822,
"h": 278.8
},
"luminance": 0.13828
}Semantic roles & 50–950 ramp
primary
#5A51E7
secondary
#E3E6AE
accent
#D80ECC
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85