#EC51D7#EC51D7

#EC51D7 is a light, highly saturated purple. Relative luminance 0.286; OKLCH L 69.0% C 0.237 H 333.7°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#EC51D7
RGBrgb(236, 81, 215)
HSLhsl(308, 80%, 62%)
HSVhsv(308, 66%, 93%)
CMYKcmyk(0%, 65.7%, 8.9%, 7.5%)
CIE-LABlab(60.45, 73.56, -38.45)
CIE-LCHlch(60.45, 83.00, 332.40°)
OKLaboklab(69.02% 0.2127 -0.1051)
OKLCHoklch(69.02% 0.237 333.7)
XYZxyz(49.8005, 28.6280, 67.1797)
Luminance0.2862 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC51D7 #51EC66
analogous
#B451EC #EC51D7 #EC518A
triadic
#EC51D7 #D7EC51 #51D7EC
tetradic
#EC51D7 #ECB451 #51EC66 #518AEC
square
#EC51D7 #ECB451 #51EC66 #518AEC
split-complementary
#EC51D7 #8AEC51 #51ECB4
monochromatic
#AF139A #E61ACA #EC51D7 #F288E4 #F8BFF0

Accessibility & contrast

On white

3.12
#EC51D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#EC51D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #EC51D7
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC51D7#FFFFFF#000000##000000
##EC51D71.003.126.726.72
#FFFFFF3.121.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D83DB
Deuteranopia (green-blind)
#829AD3
Tritanopia (blue-blind)
#F65E8D
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ec51d7;
/* rgb */ color: rgb(236, 81, 215);
/* oklch */ color: oklch(69.0% 0.237 333.7);
Tailwind
colors: {
  custom: {
    50: '#f68de3',
    500: '#ec51d7',
    950: '#000000',
  },
}
SCSS
$custom: #ec51d7;
$custom-light: #f68de3;
$custom-dark: #000000;
JSON
{
  "hex": "#ec51d7",
  "rgb": {
    "r": 236,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 308.129,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.69015,
    "c": 0.23728,
    "h": 333.7
  },
  "luminance": 0.28624
}

Semantic roles & 50–950 ramp

primary
#EC51D7
secondary
#B0E9B8
accent
#DD2609
background
#FFF9FD
surface
#FFF1FB
border
#D7CBD4
text
#180D15
muted
#867E83

Preview Lab

Preview with #EC51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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