Skip to content
Vectorlight.net

#f2f42e

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

HEX
#f2f42e
RGB
242, 244, 46
HSL
60.61°, 90%, 56.86%
OKLCH
0.94 0.2 110.27
Names
—
Lists

Codes

FormatValue
HEX#f2f42e
RGBrgb(242 244 46)
HSLhsl(60.61 90% 56.86%)
OKLCHoklch(0.94 0.2 110.27)
CMYKcmyk(0.82% 0% 81.15% 4.31%)
Android#fff2f42e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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