Skip to content
Vectorlight.net

#336c12

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

HEX
#336c12
RGB
51, 108, 18
HSL
98°, 71.43%, 24.71%
OKLCH
0.47 0.13 137.01
Names
—
Lists

Codes

FormatValue
HEX#336c12
RGBrgb(51 108 18)
HSLhsl(98 71.43% 24.71%)
OKLCHoklch(0.47 0.13 137.01)
CMYKcmyk(52.78% 0% 83.33% 57.65%)
Android#ff336c12

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #336c12;
background-color: #336c12;
bg-[#336c12]