Skip to content
Vectorlight.net

#ec2a9d

Codes, contrast, shades, harmonies and SVG snippets for this color.

HEX
#ec2a9d
RGB
236, 42, 157
HSL
324.43°, 83.62%, 54.51%
OKLCH
0.64 0.24 350.73
Names
—
Lists

Codes

FormatValue
HEX#ec2a9d
RGBrgb(236 42 157)
HSLhsl(324.43 83.62% 54.51%)
OKLCHoklch(0.64 0.24 350.73)
CMYKcmyk(0% 82.2% 33.47% 7.45%)
Android#ffec2a9d

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
3.89:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.38:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

Open in contrast checker

Shades & tints

OKLCH lightness, mixed toward white then black.

Open in shades & tints

Harmonies

Complementary

Analogous

Triadic

Open in palette generator

Color-blindness

Normal
Protanopia
Deuteranopia
Tritanopia

Open simulator

SVG snippets

fill
fill="#ec2a9d"
Gradient stop
<stop stop-color="#ec2a9d"/>
CSS variable + fill
:root { --c: #ec2a9d; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #ec2a9d;
background-color: #ec2a9d;
bg-[#ec2a9d]