Skip to content
Vectorlight.net

#40795d

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

HEX
#40795d
RGB
64, 121, 93
HSL
150.53°, 30.81%, 36.27%
OKLCH
0.53 0.08 160.9
Names
—
Lists

Codes

FormatValue
HEX#40795d
RGBrgb(64 121 93)
HSLhsl(150.53 30.81% 36.27%)
OKLCHoklch(0.53 0.08 160.9)
CMYKcmyk(47.11% 0% 23.14% 52.55%)
Android#ff40795d

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="#40795d"
Gradient stop
<stop stop-color="#40795d"/>
CSS variable + fill
:root { --c: #40795d; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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