Color #5a5e78
A nearly neutral, gray-leaning medium blue.
Conversions
#5a5e78
rgb(90, 94, 120)
hsl(232, 14.3%, 41.2%)
hsv(232, 25%, 47.1%)
cmyk(25%, 21.7%, 0%, 52.9%)
lab(40.47, 4.68, -15.15)
lch(40.47, 15.86, 287.17)
oklch(48.9%, 0.0419, 277.96)
hwb(232, 35.3%, 52.9%)
Harmony colors
Accessibility
White text reads better on this background (6.35:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#5c5c72 · ΔE 2.2
Deuteranopia
#5c5b71 · ΔE 2.6
Tritanopia
#5a6e6d · ΔE 17.2
Achromatopsia
#5f5f5f · ΔE 12.1
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5a5e78;
bg-[#5a5e78]
Related colors
Frequently asked questions
#5a5e78 (#5a5e78) is rgb(90, 94, 120) in RGB.
No, #5a5e78 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 #5a5e78, or check how it holds up for accessibility.