Color #5a6978
A nearly neutral, gray-leaning medium blue.
Conversions
#5a6978
rgb(90, 105, 120)
hsl(210, 14.3%, 41.2%)
hsv(210, 25%, 47.1%)
cmyk(25%, 12.5%, 0%, 52.9%)
lab(43.7, -2, -10.24)
lch(43.7, 10.43, 258.95)
oklch(51.4%, 0.03, 248.48)
hwb(210, 35.3%, 52.9%)
Harmony colors
Accessibility
White text reads better on this background (5.64:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#616175 · ΔE 8.8
Deuteranopia
#605f74 · ΔE 9.6
Tritanopia
#5b7271 · ΔE 10.3
Achromatopsia
#676767 · ΔE 8.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5a6978;
bg-[#5a6978]
Related colors
Frequently asked questions
#5a6978 (#5a6978) is rgb(90, 105, 120) in RGB.
No, #5a6978 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 #5a6978, or check how it holds up for accessibility.