Skip to content

#f22c2f

a balanced, electric red · warm · closest name: crimson

RGB
242, 44, 47
HSL
359°, 88%, 56%
CMYK
0, 82, 81, 5
Luminance
0.2088

Every format

HEX#f22c2f
RGBrgb(242, 44, 47)
HSLhsl(359, 88%, 56%)
CMYKcmyk(0%, 82%, 81%, 5%)
LABlab(52.8 71.8 48.4)
LCHlch(52.8 86.6 34.0)
OKLCHoklch(0.621 0.230 26.7)

Copy-ready code

/* CSS */
color: #f22c2f;
background-color: #f22c2f;
/* Tailwind (arbitrary) */
class="text-[#f22c2f] bg-[#f22c2f]"
/* SCSS */
$brand: #f22c2f;
/* SwiftUI */
Color(red: 0.949, green: 0.173, blue: 0.184)
/* Android */
Color.parseColor("#f22c2f")

Accessibility — WCAG contrast

Aa
#f22c2f on white: 4.06:1
AA ✗ fail · AA-large · AAA
Aa
#f22c2f on black: 5.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green17.3%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta81.8%
Yellow80.6%
Key (black)5.1%

Color previews

#f22c2f text on a black background

contrast 5.18:1

Card sample

#f22c2f text on a white background

contrast 4.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #f22c2f;
Background color
Panel with #f22c2f background
background-color: #f22c2f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #f22c2f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(242, 44, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 44, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f22c2f;
background: linear-gradient(135deg, #f22c2f, #F2AD2C);

Monochromatic scale

Palettes built from #f22c2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f22c2f in the Color Lab