Skip to content
Vectorlight.net

#40795e

Codes, contrast, shades, harmonies and SVG snippets for this color.

HEX
#40795e
RGB
64, 121, 94
HSL
151.58°, 30.81%, 36.27%
OKLCH
0.53 0.07 161.8
Names
—
Lists

Codes

FormatValue
HEX#40795e
RGBrgb(64 121 94)
HSLhsl(151.58 30.81% 36.27%)
OKLCHoklch(0.53 0.07 161.8)
CMYKcmyk(47.11% 0% 22.31% 52.55%)
Android#ff40795e

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
5.10:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.11:1
Fail AA normal text
Pass AA large text
On black #000000 · Best text #ffffff

Open in contrast checker

Shades & tints

OKLCH lightness, mixed toward white then black.

Open in shades & tints

Harmonies

Complementary

Analogous

Triadic

Open in palette generator

Color-blindness

Normal
Protanopia
Deuteranopia
Tritanopia

Open simulator

SVG snippets

fill
fill="#40795e"
Gradient stop
<stop stop-color="#40795e"/>
CSS variable + fill
:root { --c: #40795e; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #40795e;
background-color: #40795e;
bg-[#40795e]