Color #5a4a78
A muted dark purple.
Conversions
#5a4a78
rgb(90, 74, 120)
hsl(260.9, 23.7%, 38%)
hsv(260.9, 38.3%, 47.1%)
cmyk(25%, 38.3%, 0%, 52.9%)
lab(34.86, 17.26, -23.81)
lch(34.86, 29.41, 305.94)
oklch(44.5%, 0.0758, 299.3)
hwb(260.9, 29%, 52.9%)
Harmony colors
Accessibility
White text reads better on this background (7.82:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#54536f · ΔE 7.2
Deuteranopia
#54566d · ΔE 9.6
Tritanopia
#596765 · ΔE 23.5
Achromatopsia
#525252 · ΔE 19.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5a4a78;
bg-[#5a4a78]
Related colors
Frequently asked questions
#5a4a78 (#5a4a78) is rgb(90, 74, 120) in RGB.
No, #5a4a78 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 #5a4a78, or check how it holds up for accessibility.