Skip to content
Vectorlight.net

#f040ac

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

HEX
#f040ac
RGB
240, 64, 172
HSL
323.18°, 85.44%, 59.61%
OKLCH
0.66 0.23 347.75
Names
—
Lists

Codes

FormatValue
HEX#f040ac
RGBrgb(240 64 172)
HSLhsl(323.18 85.44% 59.61%)
OKLCHoklch(0.66 0.23 347.75)
CMYKcmyk(0% 73.33% 28.33% 5.88%)
Android#fff040ac

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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