Color #402647
A muted dark purple.
Conversions
#402647
rgb(64, 38, 71)
hsl(287.3, 30.3%, 21.4%)
hsv(287.3, 46.5%, 27.8%)
cmyk(9.9%, 46.5%, 0%, 72.2%)
lab(19.77, 18.95, -15.76)
lch(19.77, 24.65, 320.25)
oklch(31.6%, 0.0661, 318.93)
hwb(287.3, 14.9%, 72.2%)
Harmony colors
Accessibility
White text reads better on this background (13.24:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#363641 · ΔE 13.9
Deuteranopia
#383a3f · ΔE 17.4
Tritanopia
#3f3b3a · ΔE 18.2
Achromatopsia
#303030 · ΔE 18.5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402647;
bg-[#402647]
Related colors
Frequently asked questions
#402647 (#402647) is rgb(64, 38, 71) in RGB.
No, #402647 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 #402647, or check how it holds up for accessibility.