#EC51D2#EC51D2

#EC51D2 is a light, highly saturated pink. Relative luminance 0.284; OKLCH L 68.8% C 0.234 H 335.2°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#EC51D2
RGBrgb(236, 81, 210)
HSLhsl(310, 80%, 62%)
HSVhsv(310, 66%, 93%)
CMYKcmyk(0%, 65.7%, 11%, 7.5%)
CIE-LABlab(60.23, 72.82, -35.98)
CIE-LCHlch(60.23, 81.22, 333.71°)
OKLaboklab(68.78% 0.2122 -0.098)
OKLCHoklch(68.78% 0.234 335.2)
XYZxyz(49.1679, 28.3750, 63.8476)
Luminance0.2837 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC51D2 #51EC6B
analogous
#B951EC #EC51D2 #EC5184
triadic
#EC51D2 #D2EC51 #51D2EC
tetradic
#EC51D2 #ECB951 #51EC6B #5184EC
square
#EC51D2 #ECB951 #51EC6B #5184EC
split-complementary
#EC51D2 #84EC51 #51ECB9
monochromatic
#AF1395 #E61AC4 #EC51D2 #F288E0 #F8BFEF

Accessibility & contrast

On white

3.15
#EC51D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#EC51D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #EC51D2
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC51D2#FFFFFF#000000##000000
##EC51D21.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5182D6
Deuteranopia (green-blind)
#8499CE
Tritanopia (blue-blind)
#F75C8B
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ec51d2;
/* rgb */ color: rgb(236, 81, 210);
/* oklch */ color: oklch(68.8% 0.234 335.2);
Tailwind
colors: {
  custom: {
    50: '#f68de0',
    500: '#ec51d2',
    950: '#000000',
  },
}
SCSS
$custom: #ec51d2;
$custom-light: #f68de0;
$custom-dark: #000000;
JSON
{
  "hex": "#ec51d2",
  "rgb": {
    "r": 236,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 310.065,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.68777,
    "c": 0.23373,
    "h": 335.2
  },
  "luminance": 0.28371
}

Semantic roles & 50–950 ramp

primary
#EC51D2
secondary
#B0E9B9
accent
#DD2C09
background
#FFF9FD
surface
#FFF1FB
border
#D7CBD4
text
#180D15
muted
#867E83

Preview Lab

Preview with #EC51D2

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

Preview Lab → · Contrast checker → · Palette generator →

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