Skip to content
Vectorlight.net

#2e841f

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

HEX
#2e841f
RGB
46, 132, 31
HSL
111.09°, 61.96%, 31.96%
OKLCH
0.54 0.16 141
Names
—
Lists

Codes

FormatValue
HEX#2e841f
RGBrgb(46 132 31)
HSLhsl(111.09 61.96% 31.96%)
OKLCHoklch(0.54 0.16 141)
CMYKcmyk(65.15% 0% 76.52% 48.24%)
Android#ff2e841f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #2e841f;
background-color: #2e841f;
bg-[#2e841f]