#5156D7#5156D7
#5156D7 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.5% C 0.194 H 275.8°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).
Color values
| HEX | #5156D7 |
|---|---|
| RGB | rgb(81, 86, 215) |
| HSL | hsl(238, 63%, 58%) |
| HSV | hsv(238, 62%, 84%) |
| CMYK | cmyk(62.3%, 60%, 0%, 15.7%) |
| CIE-LAB | lab(43.23, 36.98, -67.02) |
| CIE-LCH | lch(43.23, 76.54, 298.89°) |
| OKLab | oklab(52.55% 0.0195 -0.1929) |
| OKLCH | oklch(52.55% 0.194 275.8) |
| XYZ | xyz(18.9829, 13.3097, 65.8455) |
| Luminance | 0.1331 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 0.98
Iris
#6258C4
ΔE00 3.73
Dark Periwinkle
#665FD1
ΔE00 4.03
Slate Blue
#6A5ACD
ΔE00 4.27
Light Indigo
#6D5ACF
ΔE00 4.69
Electric Blue
#0652FF
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5156D7 #D7D251
analogous
#5199D7 #5156D7 #8F51D7
triadic
#5156D7 #D75156 #56D751
tetradic
#5156D7 #D75199 #D7D251 #51D78F
square
#5156D7 #D75199 #D7D251 #51D78F
split-complementary
#5156D7 #D78F51 #99D751
monochromatic
#20258D #2C31BF #5156D7 #8386E2 #B5B7EE
Accessibility & contrast
On white
5.73
#5156D7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.66
#5156D7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5156D7
5.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5156D7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5156D7 | 1.00 | 5.73 | 3.66 | 5.73 |
| #FFFFFF | 5.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#0060D4
Tritanopia (blue-blind)
#00768E
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #5156d7; /* rgb */ color: rgb(81, 86, 215); /* oklch */ color: oklch(52.5% 0.194 275.8);
Tailwind
colors: {
custom: {
50: '#8f86e4',
500: '#5156d7',
950: '#000000',
},
}SCSS
$custom: #5156d7; $custom-light: #8f86e4; $custom-dark: #000000;
JSON
{
"hex": "#5156d7",
"rgb": {
"r": 81,
"g": 86,
"b": 215
},
"hsl": {
"h": 237.761,
"s": 62.617,
"l": 58.039
},
"oklch": {
"l": 0.52548,
"c": 0.19385,
"h": 275.8
},
"luminance": 0.13311
}Semantic roles & 50–950 ramp
primary
#5156D7
secondary
#DDDBA7
accent
#E042E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84