Color #540a6b
A vivid, highly saturated dark purple.
Conversions
#540a6b
rgb(84, 10, 107)
hsl(285.8, 82.9%, 22.9%)
hsv(285.8, 90.7%, 42%)
cmyk(21.5%, 90.7%, 0%, 58%)
lab(20.69, 45.47, -38.12)
lch(20.69, 59.34, 320.03)
oklch(33.7%, 0.1545, 315.81)
hwb(285.8, 3.9%, 58%)
Harmony colors
Accessibility
White text reads better on this background (12.86:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#40405e · ΔE 17.5
Deuteranopia
#43475b · ΔE 20.2
Tritanopia
#52524f · ΔE 30.8
Achromatopsia
#323232 · ΔE 25.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #540a6b;
bg-[#540a6b]
Related colors
Frequently asked questions
#540a6b (#540a6b) is rgb(84, 10, 107) in RGB.
No, #540a6b 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 #540a6b, or check how it holds up for accessibility.