Skip to content
Vectorlight.net

#f21f87

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

HEX
#f21f87
RGB
242, 31, 135
HSL
330.43°, 89.03%, 53.53%
OKLCH
0.63 0.24 358.81
Names
—
Lists

Codes

FormatValue
HEX#f21f87
RGBrgb(242 31 135)
HSLhsl(330.43 89.03% 53.53%)
OKLCHoklch(0.63 0.24 358.81)
CMYKcmyk(0% 87.19% 44.21% 5.1%)
Android#fff21f87

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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