Skip to content

#ec798c

a light, electric red · warm · closest name: salmon

RGB
236, 121, 140
HSL
350°, 75%, 70%
CMYK
0, 49, 41, 8
Luminance
0.3340

Every format

HEX#ec798c
RGBrgb(236, 121, 140)
HSLhsl(350, 75%, 70%)
CMYKcmyk(0%, 49%, 41%, 8%)
LABlab(64.5 46.1 10.4)
LCHlch(64.5 47.3 12.7)
OKLCHoklch(0.712 0.142 11.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec798c on white: 2.73:1
AA ✗ fail · AA-large · AAA
Aa
#ec798c on black: 7.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green47.5%
Blue54.9%

CMYK percentages

Cyan0.0%
Magenta48.7%
Yellow40.7%
Key (black)7.5%

Color previews

#ec798c text on a black background

contrast 7.68:1

Card sample

#ec798c text on a white background

contrast 2.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec798c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec798c in the Color Lab