Skip to content
Vectorlight.net

#f212a2

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

HEX
#f212a2
RGB
242, 18, 162
HSL
321.43°, 89.6%, 50.98%
OKLCH
0.64 0.26 349.67
Names
—
Lists

Codes

FormatValue
HEX#f212a2
RGBrgb(242 18 162)
HSLhsl(321.43 89.6% 50.98%)
OKLCHoklch(0.64 0.26 349.67)
CMYKcmyk(0% 92.56% 33.06% 5.1%)
Android#fff212a2

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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