#EC51CC#EC51CC

#EC51CC is a light, highly saturated pink. Relative luminance 0.281; OKLCH L 68.5% C 0.230 H 337.1°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#EC51CC
RGBrgb(236, 81, 204)
HSLhsl(312, 80%, 62%)
HSVhsv(312, 66%, 93%)
CMYKcmyk(0%, 65.7%, 13.6%, 7.5%)
CIE-LABlab(59.96, 71.95, -32.98)
CIE-LCHlch(59.96, 79.15, 335.37°)
OKLaboklab(68.5% 0.2114 -0.0895)
OKLCHoklch(68.5% 0.23 337.1)
XYZxyz(48.4343, 28.0816, 59.9844)
Luminance0.2808 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC51CC #51EC71
analogous
#BF51EC #EC51CC #EC517F
triadic
#EC51CC #CCEC51 #51CCEC
tetradic
#EC51CC #ECBF51 #51EC71 #517FEC
square
#EC51CC #ECBF51 #51EC71 #517FEC
split-complementary
#EC51CC #7FEC51 #51ECBF
monochromatic
#AF138F #E61ABC #EC51CC #F288DC #F8BFEC

Accessibility & contrast

On white

3.17
#EC51CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#EC51CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #EC51CC
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC51CC#FFFFFF#000000##000000
##EC51CC1.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5581D0
Deuteranopia (green-blind)
#8799C8
Tritanopia (blue-blind)
#F85988
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ec51cc;
/* rgb */ color: rgb(236, 81, 204);
/* oklch */ color: oklch(68.5% 0.230 337.1);
Tailwind
colors: {
  custom: {
    50: '#f68ddc',
    500: '#ec51cc',
    950: '#000000',
  },
}
SCSS
$custom: #ec51cc;
$custom-light: #f68ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#ec51cc",
  "rgb": {
    "r": 236,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 312.387,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.68499,
    "c": 0.22958,
    "h": 337.1
  },
  "luminance": 0.28077
}

Semantic roles & 50–950 ramp

primary
#EC51CC
secondary
#B0E9BC
accent
#DD3509
background
#FFF9FD
surface
#FFF1FB
border
#D7CBD4
text
#180D15
muted
#867E83

Preview Lab

Preview with #EC51CC

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

Preview Lab → · Contrast checker → · Palette generator →

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