Skip to content

#ec3b21

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

RGB
236, 59, 33
HSL
8°, 84%, 53%
CMYK
0, 75, 86, 8
Luminance
0.2107

Every format

HEX#ec3b21
RGBrgb(236, 59, 33)
HSLhsl(8, 84%, 53%)
CMYKcmyk(0%, 75%, 86%, 8%)
LABlab(53.0 65.7 54.9)
LCHlch(53.0 85.6 39.9)
OKLCHoklch(0.620 0.217 31.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec3b21 on white: 4.03:1
AA ✗ fail · AA-large · AAA
Aa
#ec3b21 on black: 5.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green23.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta75.0%
Yellow86.0%
Key (black)7.5%

Color previews

#ec3b21 text on a black background

contrast 5.21:1

Card sample

#ec3b21 text on a white background

contrast 4.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec3b21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec3b21 in the Color Lab