Skip to content

#f01021

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

RGB
240, 16, 33
HSL
355°, 88%, 50%
CMYK
0, 93, 86, 6
Luminance
0.1901

Every format

HEX#f01021
RGBrgb(240, 16, 33)
HSLhsl(355, 88%, 50%)
CMYKcmyk(0%, 93%, 86%, 6%)
LABlab(50.7 75.6 53.3)
LCHlch(50.7 92.5 35.2)
OKLCHoklch(0.604 0.241 26.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f01021 on white: 4.37:1
AA ✗ fail · AA-large · AAA
Aa
#f01021 on black: 4.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green6.3%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta93.3%
Yellow86.3%
Key (black)5.9%

Color previews

#f01021 text on a black background

contrast 4.80:1

Card sample

#f01021 text on a white background

contrast 4.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f01021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f01021 in the Color Lab