Skip to content

#f51f21

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

RGB
245, 31, 33
HSL
359°, 92%, 54%
CMYK
0, 87, 87, 4
Luminance
0.2050

Every format

HEX#f51f21
RGBrgb(245, 31, 33)
HSLhsl(359, 92%, 54%)
CMYKcmyk(0%, 87%, 87%, 4%)
LABlab(52.4 74.8 55.1)
LCHlch(52.4 93.0 36.4)
OKLCHoklch(0.619 0.240 27.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f51f21 on white: 4.12:1
AA ✗ fail · AA-large · AAA
Aa
#f51f21 on black: 5.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.1%
Green12.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta87.3%
Yellow86.5%
Key (black)3.9%

Color previews

#f51f21 text on a black background

contrast 5.10:1

Card sample

#f51f21 text on a white background

contrast 4.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f51f21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f51f21 in the Color Lab