Skip to content
Vectorlight.net

#2ab012

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

HEX
#2ab012
RGB
42, 176, 18
HSL
110.89°, 81.44%, 38.04%
OKLCH
0.66 0.21 141.4
Names
—
Lists

Codes

FormatValue
HEX#2ab012
RGBrgb(42 176 18)
HSLhsl(110.89 81.44% 38.04%)
OKLCHoklch(0.66 0.21 141.4)
CMYKcmyk(76.14% 0% 89.77% 30.98%)
Android#ff2ab012

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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