Skip to content

#ec0c39

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

RGB
236, 12, 57
HSL
348°, 90%, 49%
CMYK
0, 95, 76, 8
Luminance
0.1839

Every format

HEX#ec0c39
RGBrgb(236, 12, 57)
HSLhsl(348, 90%, 49%)
CMYKcmyk(0%, 95%, 76%, 8%)
LABlab(50.0 75.6 39.6)
LCHlch(50.0 85.3 27.6)
OKLCHoklch(0.598 0.237 21.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec0c39 on white: 4.49:1
AA ✗ fail · AA-large · AAA
Aa
#ec0c39 on black: 4.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green4.7%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta94.9%
Yellow75.8%
Key (black)7.5%

Color previews

#ec0c39 text on a black background

contrast 4.68:1

Card sample

#ec0c39 text on a white background

contrast 4.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec0c39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec0c39 in the Color Lab