#EC51A1#EC51A1

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

Color values

HEX#EC51A1
RGBrgb(236, 81, 161)
HSLhsl(329, 80%, 62%)
HSVhsv(329, 66%, 93%)
CMYKcmyk(0%, 65.7%, 31.8%, 7.5%)
CIE-LABlab(58.32, 66.37, -10.76)
CIE-LCHlch(58.32, 67.24, 350.79°)
OKLaboklab(66.76% 0.2025 -0.0277)
OKLCHoklch(66.76% 0.204 352.2)
XYZxyz(43.9698, 26.2958, 36.4713)
Luminance0.2629 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC51A1 #51EC9C
analogous
#E951EC #EC51A1 #EC5154
triadic
#EC51A1 #A1EC51 #51A1EC
tetradic
#EC51A1 #ECE951 #51EC9C #5154EC
square
#EC51A1 #ECE951 #51EC9C #5154EC
split-complementary
#EC51A1 #54EC51 #51ECE9
monochromatic
#AF1364 #E61A83 #EC51A1 #F288BF #F8BFDD

Accessibility & contrast

On white

3.36
#EC51A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#EC51A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #EC51A1
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC51A1#FFFFFF#000000##000000
##EC51A11.003.366.266.26
#FFFFFF3.361.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#697AA3
Deuteranopia (green-blind)
#94969D
Tritanopia (blue-blind)
#FD4772
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ec51a1;
/* rgb */ color: rgb(236, 81, 161);
/* oklch */ color: oklch(66.8% 0.204 352.2);
Tailwind
colors: {
  custom: {
    50: '#f78bbc',
    500: '#ec51a1',
    950: '#000000',
  },
}
SCSS
$custom: #ec51a1;
$custom-light: #f78bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#ec51a1",
  "rgb": {
    "r": 236,
    "g": 81,
    "b": 161
  },
  "hsl": {
    "h": 329.032,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.66755,
    "c": 0.2044,
    "h": 352.2
  },
  "luminance": 0.26291
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #EC51A1

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

Preview Lab → · Contrast checker → · Palette generator →

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