Color #402d4a
A muted dark purple.
Conversions
#402d4a
rgb(64, 45, 74)
hsl(279.3, 24.4%, 23.3%)
hsv(279.3, 39.2%, 29%)
cmyk(13.5%, 39.2%, 0%, 71%)
lab(21.8, 15.06, -14.63)
lch(21.8, 21, 315.83)
oklch(33.2%, 0.0555, 313.54)
hwb(279.3, 17.6%, 71%)
Harmony colors
Accessibility
White text reads better on this background (12.41:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#393844 · ΔE 10.8
Deuteranopia
#3a3b43 · ΔE 13.5
Tritanopia
#3f3f3e · ΔE 18
Achromatopsia
#343434 · ΔE 16.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402d4a;
bg-[#402d4a]
Related colors
Frequently asked questions
#402d4a (#402d4a) is rgb(64, 45, 74) in RGB.
No, #402d4a 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 #402d4a, or check how it holds up for accessibility.