Skip to content
Vectorlight.net

#f2c40b

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

HEX
#f2c40b
RGB
242, 196, 11
HSL
48.05°, 91.3%, 49.61%
OKLCH
0.84 0.17 91.44
Names
—
Lists

Codes

FormatValue
HEX#f2c40b
RGBrgb(242 196 11)
HSLhsl(48.05 91.3% 49.61%)
OKLCHoklch(0.84 0.17 91.44)
CMYKcmyk(0% 19.01% 95.45% 5.1%)
Android#fff2c40b

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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