Skip to content

#ec2c40

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

RGB
236, 44, 64
HSL
354°, 84%, 55%
CMYK
0, 81, 73, 8
Luminance
0.2000

Every format

HEX#ec2c40
RGBrgb(236, 44, 64)
HSLhsl(354, 84%, 55%)
CMYKcmyk(0%, 81%, 73%, 8%)
LABlab(51.9 70.7 37.6)
LCHlch(51.9 80.1 28.0)
OKLCHoklch(0.612 0.223 22.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec2c40 on white: 4.20:1
AA ✗ fail · AA-large · AAA
Aa
#ec2c40 on black: 5.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green17.3%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta81.4%
Yellow72.9%
Key (black)7.5%

Color previews

#ec2c40 text on a black background

contrast 5.00:1

Card sample

#ec2c40 text on a white background

contrast 4.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec2c40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec2c40 in the Color Lab