Skip to content
Vectorlight.net

#f0231f

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

HEX
#f0231f
RGB
240, 35, 31
HSL
1.15°, 87.45%, 53.14%
OKLCH
0.61 0.23 28.42
Names
—
Lists

Codes

FormatValue
HEX#f0231f
RGBrgb(240 35 31)
HSLhsl(1.15 87.45% 53.14%)
OKLCHoklch(0.61 0.23 28.42)
CMYKcmyk(0% 85.42% 87.08% 5.88%)
Android#fff0231f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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