Skip to content
Vectorlight.net

#f0287c

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

HEX
#f0287c
RGB
240, 40, 124
HSL
334.8°, 86.96%, 54.9%
OKLCH
0.63 0.23 2.75
Names
—
Lists

Codes

FormatValue
HEX#f0287c
RGBrgb(240 40 124)
HSLhsl(334.8 86.96% 54.9%)
OKLCHoklch(0.63 0.23 2.75)
CMYKcmyk(0% 83.33% 48.33% 5.88%)
Android#fff0287c

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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