Skip to content
Vectorlight.net

#f21f8a

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

HEX
#f21f8a
RGB
242, 31, 138
HSL
329.57°, 89.03%, 53.53%
OKLCH
0.63 0.25 357.8
Names
—
Lists

Codes

FormatValue
HEX#f21f8a
RGBrgb(242 31 138)
HSLhsl(329.57 89.03% 53.53%)
OKLCHoklch(0.63 0.25 357.8)
CMYKcmyk(0% 87.19% 42.98% 5.1%)
Android#fff21f8a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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