#EC7997#EC7997

#EC7997 is a light, vivid pink. Relative luminance 0.337; OKLCH L 71.5% C 0.144 H 4.9°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#EC7997
RGBrgb(236, 121, 151)
HSLhsl(344, 75%, 70%)
HSVhsv(344, 49%, 93%)
CMYKcmyk(0%, 48.7%, 36%, 7.5%)
CIE-LABlab(64.76, 47.33, 4.48)
CIE-LCHlch(64.76, 47.54, 5.41°)
OKLaboklab(71.47% 0.1438 0.0122)
OKLCHoklch(71.47% 0.144 4.9)
XYZxyz(47.0177, 33.7464, 33.3097)
Luminance0.3374 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC7997 #79ECCE
analogous
#EC79D0 #EC7997 #EC9579
triadic
#EC7997 #97EC79 #7997EC
tetradic
#EC7997 #D0EC79 #79ECCE #9579EC
square
#EC7997 #D0EC79 #79ECCE #9579EC
split-complementary
#EC7997 #79EC95 #79D0EC
monochromatic
#CD1D4B #E4436D #EC7997 #F4AFC1 #FBE4EA

Accessibility & contrast

On white

2.71
#EC7997 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#EC7997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC7997
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC7997#FFFFFF#000000##000000
##EC79971.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D9098
Deuteranopia (green-blind)
#AAA594
Tritanopia (blue-blind)
#FD6F84
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ec7997;
/* rgb */ color: rgb(236, 121, 151);
/* oklch */ color: oklch(71.5% 0.144 4.9);
Tailwind
colors: {
  custom: {
    50: '#f5a2b5',
    500: '#ec7997',
    950: '#000000',
  },
}
SCSS
$custom: #ec7997;
$custom-light: #f5a2b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ec7997",
  "rgb": {
    "r": 236,
    "g": 121,
    "b": 151
  },
  "hsl": {
    "h": 344.348,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.71468,
    "c": 0.14431,
    "h": 4.9
  },
  "luminance": 0.33742
}

Semantic roles & 50–950 ramp

primary
#EC7997
secondary
#D0F0E8
accent
#D7A30E
background
#FFFAFB
surface
#FFF4F6
border
#D7CED0
text
#180F11
muted
#867F80

Preview Lab

Preview with #EC7997

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

Preview Lab → · Contrast checker → · Palette generator →

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