Skip to content
Vectorlight.net

#04872d

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

HEX
#04872d
RGB
4, 135, 45
HSL
138.78°, 94.24%, 27.25%
OKLCH
0.54 0.16 146.48
Names
—
Lists

Codes

FormatValue
HEX#04872d
RGBrgb(4 135 45)
HSLhsl(138.78 94.24% 27.25%)
OKLCHoklch(0.54 0.16 146.48)
CMYKcmyk(97.04% 0% 66.67% 47.06%)
Android#ff04872d

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
4.65:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.50:1
Pass 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="#04872d"
Gradient stop
<stop stop-color="#04872d"/>
CSS variable + fill
:root { --c: #04872d; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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