#5A51E6#5A51E6
#5A51E6 is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.6% C 0.217 H 278.8°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).
Color values
| HEX | #5A51E6 |
|---|---|
| RGB | rgb(90, 81, 230) |
| HSL | hsl(244, 75%, 61%) |
| HSV | hsv(244, 65%, 90%) |
| CMYK | cmyk(60.9%, 64.8%, 0%, 9.8%) |
| CIE-LAB | lab(43.90, 46.16, -74.42) |
| CIE-LCH | lch(43.90, 87.58, 301.81°) |
| OKLab | oklab(53.57% 0.0333 -0.2144) |
| OKLCH | oklch(53.57% 0.217 278.8) |
| XYZ | xyz(21.4372, 13.7701, 76.3758) |
| Luminance | 0.1377 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.31
Purpleish Blue
#6140EF
ΔE00 4.16
Slate Blue
#6A5ACD
ΔE00 4.57
Light Indigo
#6D5ACF
ΔE00 4.66
Dark Periwinkle
#665FD1
ΔE00 4.91
Iris
#6258C4
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A51E6 #DDE651
analogous
#5192E6 #5A51E6 #A451E6
triadic
#5A51E6 #E65A51 #51E65A
tetradic
#5A51E6 #E65192 #DDE651 #51E6A4
square
#5A51E6 #E65192 #DDE651 #51E6A4
split-complementary
#5A51E6 #E6A451 #92E651
monochromatic
#2018A5 #2B1FDA #5A51E6 #8D87EE #BFBCF5
Accessibility & contrast
On white
5.59
#5A51E6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.75
#5A51E6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A51E6
5.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A51E6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A51E6 | 1.00 | 5.59 | 3.75 | 5.59 |
| #FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EEB
Deuteranopia (green-blind)
#0062E3
Tritanopia (blue-blind)
#007794
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #5a51e6; /* rgb */ color: rgb(90, 81, 230); /* oklch */ color: oklch(53.6% 0.217 278.8);
Tailwind
colors: {
custom: {
50: '#9783ef',
500: '#5a51e6',
950: '#000000',
},
}SCSS
$custom: #5a51e6; $custom-light: #9783ef; $custom-dark: #000000;
JSON
{
"hex": "#5a51e6",
"rgb": {
"r": 90,
"g": 81,
"b": 230
},
"hsl": {
"h": 243.624,
"s": 74.874,
"l": 60.98
},
"oklch": {
"l": 0.5357,
"c": 0.21698,
"h": 278.8
},
"luminance": 0.13772
}Semantic roles & 50–950 ramp
primary
#5A51E6
secondary
#E2E5AD
accent
#D70ECB
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A17
muted
#7F7C85