Color #402f48
A muted dark purple.
Conversions
#402f48
rgb(64, 47, 72)
hsl(280.8, 21%, 23.3%)
hsv(280.8, 34.7%, 28.2%)
cmyk(11.1%, 34.7%, 0%, 71.8%)
lab(22.27, 13.21, -12.57)
lch(22.27, 18.23, 316.42)
oklch(33.5%, 0.0484, 314.66)
hwb(280.8, 18.4%, 71.8%)
Harmony colors
Accessibility
White text reads better on this background (12.22:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#393943 · ΔE 10.8
Deuteranopia
#3a3b42 · ΔE 12.6
Tritanopia
#3f3f3e · ΔE 16.5
Achromatopsia
#353535 · ΔE 15.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402f48;
bg-[#402f48]
Related colors
Frequently asked questions
#402f48 (#402f48) is rgb(64, 47, 72) in RGB.
No, #402f48 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 #402f48, or check how it holds up for accessibility.