Color #40214a
A muted dark purple.
Conversions
#40214a
rgb(64, 33, 74)
hsl(285.4, 38.3%, 21%)
hsv(285.4, 55.4%, 29%)
cmyk(13.5%, 55.4%, 0%, 71%)
lab(18.68, 22.88, -19.51)
lch(18.68, 30.07, 319.55)
oklch(30.9%, 0.08, 317.38)
hwb(285.4, 12.9%, 71%)
Harmony colors
Accessibility
White text reads better on this background (13.69:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#353543 · ΔE 14.6
Deuteranopia
#373941 · ΔE 17.8
Tritanopia
#3f3c3b · ΔE 20.7
Achromatopsia
#2d2d2d · ΔE 20.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #40214a;
bg-[#40214a]
Related colors
Frequently asked questions
#40214a (#40214a) is rgb(64, 33, 74) in RGB.
No, #40214a 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 #40214a, or check how it holds up for accessibility.