Skip to content
Vectorlight.net

#228d2f

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

HEX
#228d2f
RGB
34, 141, 47
HSL
127.29°, 61.14%, 34.31%
OKLCH
0.56 0.16 144.67
Names
—
Lists

Codes

FormatValue
HEX#228d2f
RGBrgb(34 141 47)
HSLhsl(127.29 61.14% 34.31%)
OKLCHoklch(0.56 0.16 144.67)
CMYKcmyk(75.89% 0% 66.67% 44.71%)
Android#ff228d2f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

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

Recolor an SVG with this color

CSS

color / background
color: #228d2f;
background-color: #228d2f;
bg-[#228d2f]