Skip to content
Vectorlight.net

#f2138a

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

HEX
#f2138a
RGB
242, 19, 138
HSL
327.98°, 89.56%, 51.18%
OKLCH
0.63 0.25 357.36
Names
—
Lists

Codes

FormatValue
HEX#f2138a
RGBrgb(242 19 138)
HSLhsl(327.98 89.56% 51.18%)
OKLCHoklch(0.63 0.25 357.36)
CMYKcmyk(0% 92.15% 42.98% 5.1%)
Android#fff2138a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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