Color #40786c
A muted dark green.
Conversions
#40786c
rgb(64, 120, 108)
hsl(167.1, 30.4%, 36.1%)
hsv(167.1, 46.7%, 47.1%)
cmyk(46.7%, 0%, 10%, 52.9%)
lab(46.45, -21.63, 0.86)
lch(46.45, 21.65, 177.72)
oklch(53.1%, 0.0627, 178.26)
hwb(167.1, 25.1%, 52.9%)
Harmony colors
Accessibility
White text reads better on this background (5.1:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#5d5e6f · ΔE 24.4
Deuteranopia
#5a5670 · ΔE 28.4
Tritanopia
#447172 · ΔE 6.7
Achromatopsia
#6e6e6e · ΔE 18.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #40786c;
bg-[#40786c]
Related colors
Frequently asked questions
#40786c (#40786c) is rgb(64, 120, 108) in RGB.
No, #40786c 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 #40786c, or check how it holds up for accessibility.