Skip to content

#ec2e21

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

RGB
236, 46, 33
HSL
4°, 84%, 53%
CMYK
0, 81, 86, 8
Luminance
0.1990

Every format

HEX#ec2e21
RGBrgb(236, 46, 33)
HSLhsl(4, 84%, 53%)
CMYKcmyk(0%, 81%, 86%, 8%)
LABlab(51.7 69.3 53.8)
LCHlch(51.7 87.8 37.8)
OKLCHoklch(0.611 0.225 29.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec2e21 on white: 4.22:1
AA ✗ fail · AA-large · AAA
Aa
#ec2e21 on black: 4.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green18.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta80.5%
Yellow86.0%
Key (black)7.5%

Color previews

#ec2e21 text on a black background

contrast 4.98:1

Card sample

#ec2e21 text on a white background

contrast 4.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec2e21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec2e21 in the Color Lab