Skip to content

#ec2f49

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

RGB
236, 47, 73
HSL
352°, 83%, 56%
CMYK
0, 80, 69, 8
Luminance
0.2035

Every format

HEX#ec2f49
RGBrgb(236, 47, 73)
HSLhsl(352, 83%, 56%)
CMYKcmyk(0%, 80%, 69%, 8%)
LABlab(52.2 70.4 32.9)
LCHlch(52.2 77.7 25.0)
OKLCHoklch(0.616 0.221 20.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec2f49 on white: 4.14:1
AA ✗ fail · AA-large · AAA
Aa
#ec2f49 on black: 5.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green18.4%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta80.1%
Yellow69.1%
Key (black)7.5%

Color previews

#ec2f49 text on a black background

contrast 5.07:1

Card sample

#ec2f49 text on a white background

contrast 4.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec2f49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec2f49 in the Color Lab