#5147C8#5147C8
#5147C8 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.8% C 0.193 H 280.0°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).
Color values
| HEX | #5147C8 |
|---|---|
| RGB | rgb(81, 71, 200) |
| HSL | hsl(245, 54%, 53%) |
| HSV | hsv(245, 65%, 78%) |
| CMYK | cmyk(59.5%, 64.5%, 0%, 21.6%) |
| CIE-LAB | lab(38.59, 41.15, -65.92) |
| CIE-LCH | lch(38.59, 77.71, 301.98°) |
| OKLab | oklab(48.79% 0.0334 -0.1897) |
| OKLCH | oklch(48.79% 0.193 280) |
| XYZ | xyz(16.0686, 10.4248, 55.7978) |
| Luminance | 0.1043 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 2.94
Ocean Blue
#4F42B5
ΔE00 3.02
Bluey Purple
#6241C7
ΔE00 3.21
Blurple
#5539CC
ΔE00 3.61
Blue Blue
#2242C7
ΔE00 5.02
Iris
#6258C4
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5147C8 #BEC847
analogous
#477DC8 #5147C8 #9147C8
triadic
#5147C8 #C85147 #47C851
tetradic
#5147C8 #C8477D #BEC847 #47C891
square
#5147C8 #C8477D #BEC847 #47C891
split-complementary
#5147C8 #C89147 #7DC847
monochromatic
#282272 #3930A2 #5147C8 #7E76D6 #AAA5E4
Accessibility & contrast
On white
6.81
#5147C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#5147C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5147C8
6.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5147C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5147C8 | 1.00 | 6.81 | 3.09 | 6.81 |
| #FFFFFF | 6.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#006881
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #5147c8; /* rgb */ color: rgb(81, 71, 200); /* oklch */ color: oklch(48.8% 0.193 280.0);
Tailwind
colors: {
custom: {
50: '#8e7bda',
500: '#5147c8',
950: '#000000',
},
}SCSS
$custom: #5147c8; $custom-light: #8e7bda; $custom-dark: #000000;
JSON
{
"hex": "#5147c8",
"rgb": {
"r": 81,
"g": 71,
"b": 200
},
"hsl": {
"h": 244.651,
"s": 53.975,
"l": 53.137
},
"oklch": {
"l": 0.48786,
"c": 0.19265,
"h": 280
},
"luminance": 0.10426
}Semantic roles & 50–950 ramp
primary
#5147C8
secondary
#CDD19A
accent
#DD4AD2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0915
muted
#7E7B83