Skip to content
Vectorlight.net

#f01f2a

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

HEX
#f01f2a
RGB
240, 31, 42
HSL
356.84°, 87.45%, 53.14%
OKLCH
0.61 0.24 26.24
Names
—
Lists

Codes

FormatValue
HEX#f01f2a
RGBrgb(240 31 42)
HSLhsl(356.84 87.45% 53.14%)
OKLCHoklch(0.61 0.24 26.24)
CMYKcmyk(0% 87.08% 82.5% 5.88%)
Android#fff01f2a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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