Skip to content
Vectorlight.net

#04872b

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

HEX
#04872b
RGB
4, 135, 43
HSL
137.86°, 94.24%, 27.25%
OKLCH
0.54 0.16 146.14
Names
—
Lists

Codes

FormatValue
HEX#04872b
RGBrgb(4 135 43)
HSLhsl(137.86 94.24% 27.25%)
OKLCHoklch(0.54 0.16 146.14)
CMYKcmyk(97.04% 0% 68.15% 47.06%)
Android#ff04872b

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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