#EC7EA2#EC7EA2

#EC7EA2 is a light, vivid pink. Relative luminance 0.354; OKLCH L 72.5% C 0.140 H 0.3°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#EC7EA2
RGBrgb(236, 126, 162)
HSLhsl(340, 74%, 71%)
HSVhsv(340, 47%, 93%)
CMYKcmyk(0%, 46.6%, 31.4%, 7.5%)
CIE-LABlab(66.03, 46.17, 0.08)
CIE-LCHlch(66.03, 46.17, 0.10°)
OKLaboklab(72.53% 0.14 0.0008)
OKLCHoklch(72.53% 0.14 0.3)
XYZxyz(48.5765, 35.3674, 38.4436)
Luminance0.3536 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC7EA2 #7EECC8
analogous
#EC7ED9 #EC7EA2 #EC917E
triadic
#EC7EA2 #A2EC7E #7EA2EC
tetradic
#EC7EA2 #D9EC7E #7EECC8 #917EEC
square
#EC7EA2 #D9EC7E #7EECC8 #917EEC
split-complementary
#EC7EA2 #7EEC91 #7ED9EC
monochromatic
#D11F59 #E4497C #EC7EA2 #F4B3C8 #FBE4EC

Accessibility & contrast

On white

2.60
#EC7EA2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#EC7EA2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC7EA2
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC7EA2#FFFFFF#000000##000000
##EC7EA21.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F94A3
Deuteranopia (green-blind)
#ABA89F
Tritanopia (blue-blind)
#FC768B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ec7ea2;
/* rgb */ color: rgb(236, 126, 162);
/* oklch */ color: oklch(72.5% 0.140 0.3);
Tailwind
colors: {
  custom: {
    50: '#f5a6bd',
    500: '#ec7ea2',
    950: '#000000',
  },
}
SCSS
$custom: #ec7ea2;
$custom-light: #f5a6bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ec7ea2",
  "rgb": {
    "r": 236,
    "g": 126,
    "b": 162
  },
  "hsl": {
    "h": 340.364,
    "s": 74.324,
    "l": 70.98
  },
  "oklch": {
    "l": 0.72527,
    "c": 0.14001,
    "h": 0.3
  },
  "luminance": 0.35363
}

Semantic roles & 50–950 ramp

primary
#EC7EA2
secondary
#D4F2E8
accent
#D6950F
background
#FFFAFB
surface
#FFF4F6
border
#D7CED0
text
#170F12
muted
#857F81

Preview Lab

Preview with #EC7EA2

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#EC7EA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva