Skip to content

#ec1fac

a balanced, electric magenta / pink · warm · closest name: orchid

RGB
236, 31, 172
HSL
319°, 84%, 52%
CMYK
0, 87, 27, 8
Luminance
0.2179

Every format

HEX#ec1fac
RGBrgb(236, 31, 172)
HSLhsl(319, 84%, 52%)
CMYKcmyk(0%, 87%, 27%, 8%)
LABlab(53.8 81.5 -24.1)
LCHlch(53.8 85.0 343.6)
OKLCHoklch(0.636 0.257 345.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec1fac on white: 3.92:1
AA ✗ fail · AA-large · AAA
Aa
#ec1fac on black: 5.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green12.2%
Blue67.5%

CMYK percentages

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

Color previews

#ec1fac text on a black background

contrast 5.36:1

Card sample

#ec1fac text on a white background

contrast 3.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec1fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec1fac in the Color Lab