#EC789F#EC789F

#EC789F is a light, vivid pink. Relative luminance 0.338; OKLCH L 71.6% C 0.148 H 0.2°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#EC789F
RGBrgb(236, 120, 159)
HSLhsl(340, 75%, 70%)
HSVhsv(340, 49%, 93%)
CMYKcmyk(0%, 49.2%, 32.6%, 7.5%)
CIE-LABlab(64.78, 48.78, -0.04)
CIE-LCHlch(64.78, 48.78, 359.95°)
OKLaboklab(71.56% 0.1481 0.0005)
OKLCHoklch(71.56% 0.148 0.2)
XYZxyz(47.5687, 33.7734, 36.8078)
Luminance0.3377 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC789F #78ECC5
analogous
#EC78D9 #EC789F #EC8B78
triadic
#EC789F #9FEC78 #789FEC
tetradic
#EC789F #D9EC78 #78ECC5 #8B78EC
square
#EC789F #D9EC78 #78ECC5 #8B78EC
split-complementary
#EC789F #78EC8B #78D9EC
monochromatic
#CD1D58 #E44279 #EC789F #F4AEC5 #FBE3EB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##EC789F#FFFFFF#000000##000000
##EC789F1.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)
#8A90A0
Deuteranopia (green-blind)
#A8A59C
Tritanopia (blue-blind)
#FC6F86
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ec789f;
/* rgb */ color: rgb(236, 120, 159);
/* oklch */ color: oklch(71.6% 0.148 0.2);
Tailwind
colors: {
  custom: {
    50: '#f5a2bb',
    500: '#ec789f',
    950: '#000000',
  },
}
SCSS
$custom: #ec789f;
$custom-light: #f5a2bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ec789f",
  "rgb": {
    "r": 236,
    "g": 120,
    "b": 159
  },
  "hsl": {
    "h": 339.828,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.71555,
    "c": 0.14811,
    "h": 0.2
  },
  "luminance": 0.33769
}

Semantic roles & 50–950 ramp

primary
#EC789F
secondary
#D0F0E5
accent
#D7940E
background
#FFFAFB
surface
#FFF4F6
border
#D7CED0
text
#170F11
muted
#857F80

Preview Lab

Preview with #EC789F

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

Preview Lab → · Contrast checker → · Palette generator →

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