Color #40135d
A moderately saturated dark purple.
Conversions
#40135d
rgb(64, 19, 93)
hsl(276.5, 66.1%, 22%)
hsv(276.5, 79.6%, 36.5%)
cmyk(31.2%, 79.6%, 0%, 63.5%)
lab(17.21, 35.34, -34.69)
lch(17.21, 49.52, 315.53)
oklch(30.2%, 0.1254, 308.23)
hwb(276.5, 7.5%, 63.5%)
Harmony colors
Accessibility
White text reads better on this background (14.29:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#323252 · ΔE 13
Deuteranopia
#34374f · ΔE 15.5
Tritanopia
#3f4846 · ΔE 24.9
Achromatopsia
#2a2a2a · ΔE 24.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #40135d;
bg-[#40135d]
Related colors
Frequently asked questions
#40135d (#40135d) is rgb(64, 19, 93) in RGB.
No, #40135d 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 #40135d, or check how it holds up for accessibility.