Color #5a477d
A muted dark purple.
Conversions
#5a477d
rgb(90, 71, 125)
hsl(261.1, 27.6%, 38.4%)
hsv(261.1, 43.2%, 49%)
cmyk(28%, 43.2%, 0%, 51%)
lab(34.32, 20.5, -27.76)
lch(34.32, 34.51, 306.44)
oklch(44.2%, 0.0887, 298.94)
hwb(261.1, 27.8%, 51%)
Harmony colors
Accessibility
White text reads better on this background (7.98:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#525273 · ΔE 7.4
Deuteranopia
#535570 · ΔE 9.5
Tritanopia
#596a68 · ΔE 24.6
Achromatopsia
#515151 · ΔE 20.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5a477d;
bg-[#5a477d]
Related colors
Frequently asked questions
#5a477d (#5a477d) is rgb(90, 71, 125) in RGB.
No, #5a477d 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 #5a477d, or check how it holds up for accessibility.