#5156E7#5156E7
#5156E7 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 53.9% C 0.214 H 275.0°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).
Color values
| HEX | #5156E7 |
|---|---|
| RGB | rgb(81, 86, 231) |
| HSL | hsl(238, 76%, 61%) |
| HSV | hsv(238, 65%, 91%) |
| CMYK | cmyk(64.9%, 62.8%, 0%, 9.4%) |
| CIE-LAB | lab(44.48, 42.26, -74.07) |
| CIE-LCH | lch(44.48, 85.28, 299.70°) |
| OKLab | oklab(53.86% 0.0187 -0.2136) |
| OKLCH | oklch(53.86% 0.214 275) |
| XYZ | xyz(21.1402, 14.1726, 77.2073) |
| Luminance | 0.1417 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 1.93
Electric Blue
#0652FF
ΔE00 4.31
Dark Periwinkle
#665FD1
ΔE00 4.54
Slate Blue
#6A5ACD
ΔE00 4.97
Light Indigo
#6D5ACF
ΔE00 5.18
Iris
#6258C4
ΔE00 5.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5156E7 #E7E251
analogous
#51A1E7 #5156E7 #9751E7
triadic
#5156E7 #E75156 #56E751
tetradic
#5156E7 #E751A1 #E7E251 #51E797
square
#5156E7 #E751A1 #E7E251 #51E797
split-complementary
#5156E7 #E79751 #A1E751
monochromatic
#171CA7 #1E25DC #5156E7 #878AEE #BDBEF6
Accessibility & contrast
On white
5.48
#5156E7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.83
#5156E7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5156E7
5.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5156E7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5156E7 | 1.00 | 5.48 | 3.83 | 5.48 |
| #FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070EC
Deuteranopia (green-blind)
#0063E4
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #5156e7; /* rgb */ color: rgb(81, 86, 231); /* oklch */ color: oklch(53.9% 0.214 275.0);
Tailwind
colors: {
custom: {
50: '#9286f0',
500: '#5156e7',
950: '#000000',
},
}SCSS
$custom: #5156e7; $custom-light: #9286f0; $custom-dark: #000000;
JSON
{
"hex": "#5156e7",
"rgb": {
"r": 81,
"g": 86,
"b": 231
},
"hsl": {
"h": 238,
"s": 75.758,
"l": 61.176
},
"oklch": {
"l": 0.53859,
"c": 0.21441,
"h": 275
},
"luminance": 0.14174
}Semantic roles & 50–950 ramp
primary
#5156E7
secondary
#E6E4AE
accent
#D10ED8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85