Skip to content
Vectorlight.net

#cec42a

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

HEX
#cec42a
RGB
206, 196, 42
HSL
56.34°, 66.13%, 48.63%
OKLCH
0.8 0.16 105.52
Names
—
Lists

Codes

FormatValue
HEX#cec42a
RGBrgb(206 196 42)
HSLhsl(56.34 66.13% 48.63%)
OKLCHoklch(0.8 0.16 105.52)
CMYKcmyk(0% 4.85% 79.61% 19.22%)
Android#ffcec42a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #cec42a;
background-color: #cec42a;
bg-[#cec42a]