#EC5787#EC5787

#EC5787 is a light, vivid pink. Relative luminance 0.264; OKLCH L 66.6% C 0.187 H 3.8°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#EC5787
RGBrgb(236, 87, 135)
HSLhsl(341, 80%, 63%)
HSVhsv(341, 63%, 93%)
CMYKcmyk(0%, 63.1%, 42.8%, 7.5%)
CIE-LABlab(58.42, 61.20, 4.58)
CIE-LCHlch(58.42, 61.38, 4.28°)
OKLaboklab(66.58% 0.1868 0.0125)
OKLCHoklch(66.58% 0.187 3.8)
XYZxyz(42.3764, 26.4036, 25.7818)
Luminance0.2640 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC5787 #57ECBC
analogous
#EC57D1 #EC5787 #EC7157
triadic
#EC5787 #87EC57 #5787EC
tetradic
#EC5787 #D1EC57 #57ECBC #7157EC
square
#EC5787 #D1EC57 #57ECBC #7157EC
split-complementary
#EC5787 #57EC71 #57D1EC
monochromatic
#B41448 #E62060 #EC5787 #F28EAE #F8C5D6

Accessibility & contrast

On white

3.34
#EC5787 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#EC5787 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #EC5787
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC5787#FFFFFF#000000##000000
##EC57871.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#757A88
Deuteranopia (green-blind)
#9D9784
Tritanopia (blue-blind)
#FF456A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ec5787;
/* rgb */ color: rgb(236, 87, 135);
/* oklch */ color: oklch(66.6% 0.187 3.8);
Tailwind
colors: {
  custom: {
    50: '#f78ea9',
    500: '#ec5787',
    950: '#000000',
  },
}
SCSS
$custom: #ec5787;
$custom-light: #f78ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#ec5787",
  "rgb": {
    "r": 236,
    "g": 87,
    "b": 135
  },
  "hsl": {
    "h": 340.671,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.66576,
    "c": 0.18725,
    "h": 3.8
  },
  "luminance": 0.26399
}

Semantic roles & 50–950 ramp

primary
#EC5787
secondary
#B5EAD9
accent
#DC980A
background
#FFF9FA
surface
#FFF1F4
border
#D7CBCE
text
#180D0F
muted
#867E7F

Preview Lab

Preview with #EC5787

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

Preview Lab → · Contrast checker → · Palette generator →

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