#5A47BC#5A47BC
#5A47BC is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.5% C 0.176 H 285.2°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).
Color values
| HEX | #5A47BC |
|---|---|
| RGB | rgb(90, 71, 188) |
| HSL | hsl(250, 47%, 51%) |
| HSV | hsv(250, 62%, 74%) |
| CMYK | cmyk(52.1%, 62.2%, 0%, 26.3%) |
| CIE-LAB | lab(38.39, 38.98, -59.21) |
| CIE-LCH | lch(38.39, 70.89, 303.36°) |
| OKLab | oklab(48.53% 0.0461 -0.1698) |
| OKLCH | oklch(48.53% 0.176 285.2) |
| XYZ | xyz(15.5441, 10.3102, 48.7382) |
| Luminance | 0.1031 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 2.32
Bluey Purple
#6241C7
ΔE00 2.59
Blue With A Hint Of Purple
#533CC6
ΔE00 3.22
Blurple
#5539CC
ΔE00 4.04
Iris
#6258C4
ΔE00 5.15
Slate Blue
#6A5ACD
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A47BC #A9BC47
analogous
#476EBC #5A47BC #9547BC
triadic
#5A47BC #BC5A47 #47BC5A
tetradic
#5A47BC #BC476E #A9BC47 #47BC95
square
#5A47BC #BC476E #A9BC47 #47BC95
split-complementary
#5A47BC #BC9547 #6EBC47
monochromatic
#2F2464 #443591 #5A47BC #8274CC #AAA1DD
Accessibility & contrast
On white
6.86
#5A47BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#5A47BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A47BC
6.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A47BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A47BC | 1.00 | 6.86 | 3.06 | 6.86 |
| #FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#33637B
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #5a47bc; /* rgb */ color: rgb(90, 71, 188); /* oklch */ color: oklch(48.5% 0.176 285.2);
Tailwind
colors: {
custom: {
50: '#917bd1',
500: '#5a47bc',
950: '#000000',
},
}SCSS
$custom: #5a47bc; $custom-light: #917bd1; $custom-dark: #000000;
JSON
{
"hex": "#5a47bc",
"rgb": {
"r": 90,
"g": 71,
"b": 188
},
"hsl": {
"h": 249.744,
"s": 46.614,
"l": 50.784
},
"oklch": {
"l": 0.4853,
"c": 0.1759,
"h": 285.2
},
"luminance": 0.10311
}Semantic roles & 50–950 ramp
primary
#5A47BC
secondary
#C1C995
accent
#D652C1
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82