Skip to content

#ec1f49

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

RGB
236, 31, 73
HSL
348°, 84%, 52%
CMYK
0, 87, 69, 8
Luminance
0.1929

Every format

HEX#ec1f49
RGBrgb(236, 31, 73)
HSLhsl(348, 84%, 52%)
CMYKcmyk(0%, 87%, 69%, 8%)
LABlab(51.0 73.8 31.4)
LCHlch(51.0 80.2 23.1)
OKLCHoklch(0.607 0.230 18.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec1f49 on white: 4.32:1
AA ✗ fail · AA-large · AAA
Aa
#ec1f49 on black: 4.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green12.2%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta86.9%
Yellow69.1%
Key (black)7.5%

Color previews

#ec1f49 text on a black background

contrast 4.86:1

Card sample

#ec1f49 text on a white background

contrast 4.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec1f49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec1f49 in the Color Lab