Color #5a47b2
A moderately saturated medium blue.
Conversions
#5a47b2
rgb(90, 71, 178)
hsl(250.7, 43%, 48.8%)
hsv(250.7, 60.1%, 69.8%)
cmyk(49.4%, 60.1%, 0%, 30.2%)
lab(37.65, 35.93, -54.52)
lch(37.65, 65.29, 303.39)
oklch(47.8%, 0.1628, 286.67)
hwb(250.7, 27.8%, 30.2%)
Harmony colors
Accessibility
White text reads better on this background (7.05:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#5252a0 · ΔE 5.4
Deuteranopia
#53559c · ΔE 6.6
Tritanopia
#59908c · ΔE 35.4
Achromatopsia
#595959 · ΔE 26.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5a47b2;
bg-[#5a47b2]
Related colors
Frequently asked questions
#5a47b2 (#5a47b2) is rgb(90, 71, 178) in RGB.
No, #5a47b2 is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.
Related tools
HEX to RGB Converter
Convert any HEX color code to its RGB and HSL equivalents, live, with copy-to-clipboard values.
Try it → AccessibilityContrast Checker
Check the WCAG contrast ratio between any two colors, live, with AA/AAA pass-fail results.
Try it → GeneratorsPalette Generator
Generate complementary, analogous, triadic, split-complementary, tetradic, square, and monochromatic palettes from any base color.
Try it →Build something with this color
Generate a full palette from #5a47b2, or check how it holds up for accessibility.