Color #402f4c
A muted dark purple.
Conversions
#402f4c
rgb(64, 47, 76)
hsl(275.2, 23.6%, 24.1%)
hsv(275.2, 38.2%, 29.8%)
cmyk(15.8%, 38.2%, 0%, 70.2%)
lab(22.46, 14.23, -14.96)
lch(22.46, 20.65, 313.57)
oklch(33.7%, 0.0542, 310.51)
hwb(275.2, 18.4%, 70.2%)
Harmony colors
Accessibility
White text reads better on this background (12.15:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#393946 · ΔE 10.4
Deuteranopia
#3a3b45 · ΔE 12.1
Tritanopia
#3f4140 · ΔE 17.9
Achromatopsia
#363636 · ΔE 16.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402f4c;
bg-[#402f4c]
Related colors
Frequently asked questions
#402f4c (#402f4c) is rgb(64, 47, 76) in RGB.
No, #402f4c is not web-safe. The nearest web-safe colors are among its tones and shades below.
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 #402f4c, or check how it holds up for accessibility.