Color #402d3c
A muted dark magenta.
Conversions
#402d3c
rgb(64, 45, 60)
hsl(312.6, 17.4%, 21.4%)
hsv(312.6, 29.7%, 25.1%)
cmyk(0%, 29.7%, 6.2%, 74.9%)
lab(21.18, 11.72, -6.08)
lch(21.18, 13.2, 332.58)
oklch(32.5%, 0.037, 334.06)
hwb(312.6, 17.6%, 74.9%)
Harmony colors
Accessibility
White text reads better on this background (12.66:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#393839 · ΔE 12.2
Deuteranopia
#3a3b38 · ΔE 16.3
Tritanopia
#3f3635 · ΔE 10
Achromatopsia
#333333 · ΔE 13.1
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402d3c;
bg-[#402d3c]
Related colors
Frequently asked questions
#402d3c (#402d3c) is rgb(64, 45, 60) in RGB.
No, #402d3c 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 #402d3c, or check how it holds up for accessibility.