Skip to content
Vectorlight.net

#f21fac

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

HEX
#f21fac
RGB
242, 31, 172
HSL
319.91°, 89.03%, 53.53%
OKLCH
0.65 0.26 346.88
Names
—
Lists

Codes

FormatValue
HEX#f21fac
RGBrgb(242 31 172)
HSLhsl(319.91 89.03% 53.53%)
OKLCHoklch(0.65 0.26 346.88)
CMYKcmyk(0% 87.19% 28.93% 5.1%)
Android#fff21fac

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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