Skip to content
Vectorlight.net

#ffc40c

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

HEX
#ffc40c
RGB
255, 196, 12
HSL
45.43°, 100%, 52.35%
OKLCH
0.85 0.17 86.33
Names
—
Lists

Codes

FormatValue
HEX#ffc40c
RGBrgb(255 196 12)
HSLhsl(45.43 100% 52.35%)
OKLCHoklch(0.85 0.17 86.33)
CMYKcmyk(0% 23.14% 95.29% 0%)
Android#ffffc40c

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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