Skip to content

#f02521

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

RGB
240, 37, 33
HSL
1°, 87%, 54%
CMYK
0, 85, 86, 6
Luminance
0.1996

Every format

HEX#f02521
RGBrgb(240, 37, 33)
HSLhsl(1, 87%, 54%)
CMYKcmyk(0%, 85%, 86%, 6%)
LABlab(51.8 72.5 54.2)
LCHlch(51.8 90.5 36.8)
OKLCHoklch(0.613 0.234 28.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f02521 on white: 4.21:1
AA ✗ fail · AA-large · AAA
Aa
#f02521 on black: 4.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green14.5%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta84.6%
Yellow86.3%
Key (black)5.9%

Color previews

#f02521 text on a black background

contrast 4.99:1

Card sample

#f02521 text on a white background

contrast 4.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 37, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 37, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f02521;
background: linear-gradient(135deg, #f02521, #F0AF21);

Monochromatic scale

Palettes built from #f02521

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f02521 in the Color Lab