Color #402147
A muted dark purple.
Conversions
#402147
rgb(64, 33, 71)
hsl(288.9, 36.5%, 20.4%)
hsv(288.9, 53.5%, 27.8%)
cmyk(9.9%, 53.5%, 0%, 72.2%)
lab(18.51, 22.16, -17.73)
lch(18.51, 28.38, 321.34)
oklch(30.7%, 0.0763, 320.05)
hwb(288.9, 12.9%, 72.2%)
Harmony colors
Accessibility
White text reads better on this background (13.76:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#353540 · ΔE 15.4
Deuteranopia
#37393e · ΔE 18.7
Tritanopia
#3f3a39 · ΔE 19.4
Achromatopsia
#2d2d2d · ΔE 20
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402147;
bg-[#402147]
Related colors
Frequently asked questions
#402147 (#402147) is rgb(64, 33, 71) in RGB.
No, #402147 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 #402147, or check how it holds up for accessibility.