Skip to content

#f20f2f

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

RGB
242, 15, 47
HSL
352°, 90%, 50%
CMYK
0, 94, 81, 5
Luminance
0.1942

Every format

HEX#f20f2f
RGBrgb(242, 15, 47)
HSLhsl(352, 90%, 50%)
CMYKcmyk(0%, 94%, 81%, 5%)
LABlab(51.2 76.5 46.8)
LCHlch(51.2 89.7 31.5)
OKLCHoklch(0.609 0.242 24.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f20f2f on white: 4.30:1
AA ✗ fail · AA-large · AAA
Aa
#f20f2f on black: 4.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green5.9%
Blue18.4%

CMYK percentages

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

Color previews

#f20f2f text on a black background

contrast 4.88:1

Card sample

#f20f2f text on a white background

contrast 4.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f20f2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f20f2f in the Color Lab