Skip to content

#f02d2c

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

RGB
240, 45, 44
HSL
0°, 87%, 56%
CMYK
0, 81, 82, 6
Luminance
0.2058

Every format

HEX#f02d2c
RGBrgb(240, 45, 44)
HSLhsl(0, 87%, 56%)
CMYKcmyk(0%, 81%, 82%, 6%)
LABlab(52.5 70.9 49.5)
LCHlch(52.5 86.5 34.9)
OKLCHoklch(0.618 0.228 27.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f02d2c on white: 4.10:1
AA ✗ fail · AA-large · AAA
Aa
#f02d2c on black: 5.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green17.6%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta81.3%
Yellow81.7%
Key (black)5.9%

Color previews

#f02d2c text on a black background

contrast 5.12:1

Card sample

#f02d2c text on a white background

contrast 4.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f02d2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f02d2c in the Color Lab