#EC51A2#EC51A2

#EC51A2 is a light, highly saturated pink. Relative luminance 0.263; OKLCH L 66.8% C 0.205 H 351.8°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#EC51A2
RGBrgb(236, 81, 162)
HSLhsl(329, 80%, 62%)
HSVhsv(329, 66%, 93%)
CMYKcmyk(0%, 65.7%, 31.4%, 7.5%)
CIE-LABlab(58.35, 66.49, -11.30)
CIE-LCHlch(58.35, 67.44, 350.36°)
OKLaboklab(66.79% 0.2028 -0.0292)
OKLCHoklch(66.79% 0.205 351.8)
XYZxyz(44.0584, 26.3312, 36.9376)
Luminance0.2633 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC51A2 #51EC9B
analogous
#E851EC #EC51A2 #EC5155
triadic
#EC51A2 #A2EC51 #51A2EC
tetradic
#EC51A2 #ECE851 #51EC9B #5155EC
square
#EC51A2 #ECE851 #51EC9B #5155EC
split-complementary
#EC51A2 #55EC51 #51ECE8
monochromatic
#AF1365 #E61A85 #EC51A2 #F288BF #F8BFDD

Accessibility & contrast

On white

3.35
#EC51A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#EC51A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #EC51A2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC51A2#FFFFFF#000000##000000
##EC51A21.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#697BA4
Deuteranopia (green-blind)
#94979E
Tritanopia (blue-blind)
#FD4873
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ec51a2;
/* rgb */ color: rgb(236, 81, 162);
/* oklch */ color: oklch(66.8% 0.205 351.8);
Tailwind
colors: {
  custom: {
    50: '#f78bbd',
    500: '#ec51a2',
    950: '#000000',
  },
}
SCSS
$custom: #ec51a2;
$custom-light: #f78bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#ec51a2",
  "rgb": {
    "r": 236,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 328.645,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.66791,
    "c": 0.20487,
    "h": 351.8
  },
  "luminance": 0.26326
}

Semantic roles & 50–950 ramp

primary
#EC51A2
secondary
#B0E9CB
accent
#DD6E09
background
#FFF9FB
surface
#FFF1F6
border
#D7CBD0
text
#180D12
muted
#867E81

Preview Lab

Preview with #EC51A2

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

Preview Lab → · Contrast checker → · Palette generator →

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