#5742E2#5742E2
#5742E2 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.8% C 0.229 H 280.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).
Color values
| HEX | #5742E2 |
|---|---|
| RGB | rgb(87, 66, 226) |
| HSL | hsl(248, 73%, 57%) |
| HSV | hsv(248, 71%, 89%) |
| CMYK | cmyk(61.5%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(40.27, 52.88, -78.12) |
| CIE-LCH | lch(40.27, 94.34, 304.10°) |
| OKLab | oklab(50.79% 0.0413 -0.2253) |
| OKLCH | oklch(50.79% 0.229 280.4) |
| XYZ | xyz(19.6018, 11.4122, 73.1066) |
| Luminance | 0.1141 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 2.18
Purpley Blue
#5F34E7
ΔE00 2.93
Bluish Purple
#703BE7
ΔE00 3.67
Burple
#6832E3
ΔE00 3.74
Blurple
#5539CC
ΔE00 3.80
Bluey Purple
#6241C7
ΔE00 3.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5742E2 #CDE242
analogous
#427DE2 #5742E2 #A742E2
triadic
#5742E2 #E25742 #42E257
tetradic
#5742E2 #E2427D #CDE242 #42E2A7
square
#5742E2 #E2427D #CDE242 #42E2A7
split-complementary
#5742E2 #E2A742 #7DE242
monochromatic
#271793 #351FC8 #5742E2 #8677EA #B5ACF2
Accessibility & contrast
On white
6.40
#5742E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.28
#5742E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5742E2
6.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5742E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5742E2 | 1.00 | 6.40 | 3.28 | 6.40 |
| #FFFFFF | 6.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#0059DF
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #5742e2; /* rgb */ color: rgb(87, 66, 226); /* oklch */ color: oklch(50.8% 0.229 280.4);
Tailwind
colors: {
custom: {
50: '#9679ec',
500: '#5742e2',
950: '#000000',
},
}SCSS
$custom: #5742e2; $custom-light: #9679ec; $custom-dark: #000000;
JSON
{
"hex": "#5742e2",
"rgb": {
"r": 87,
"g": 66,
"b": 226
},
"hsl": {
"h": 247.875,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.50793,
"c": 0.22907,
"h": 280.4
},
"luminance": 0.11414
}Semantic roles & 50–950 ramp
primary
#5742E2
secondary
#D8E09F
accent
#F038D8
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84