Skip to content

#ec3b28

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

RGB
236, 59, 40
HSL
6°, 84%, 54%
CMYK
0, 75, 83, 8
Luminance
0.2111

Every format

HEX#ec3b28
RGBrgb(236, 59, 40)
HSLhsl(6, 84%, 54%)
CMYKcmyk(0%, 75%, 83%, 8%)
LABlab(53.1 65.8 51.8)
LCHlch(53.1 83.7 38.2)
OKLCHoklch(0.621 0.216 30.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec3b28 on white: 4.02:1
AA ✗ fail · AA-large · AAA
Aa
#ec3b28 on black: 5.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green23.1%
Blue15.7%

CMYK percentages

Cyan0.0%
Magenta75.0%
Yellow83.1%
Key (black)7.5%

Color previews

#ec3b28 text on a black background

contrast 5.22:1

Card sample

#ec3b28 text on a white background

contrast 4.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec3b28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec3b28 in the Color Lab