#EC51D9#EC51D9

#EC51D9 is a light, highly saturated purple. Relative luminance 0.287; OKLCH L 69.1% C 0.239 H 333.1°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#EC51D9
RGBrgb(236, 81, 217)
HSLhsl(307, 80%, 62%)
HSVhsv(307, 66%, 93%)
CMYKcmyk(0%, 65.7%, 8.1%, 7.5%)
CIE-LABlab(60.54, 73.86, -39.43)
CIE-LCHlch(60.54, 83.72, 331.90°)
OKLaboklab(69.11% 0.2129 -0.108)
OKLCHoklch(69.11% 0.239 333.1)
XYZxyz(50.0591, 28.7315, 68.5414)
Luminance0.2873 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC51D9 #51EC64
analogous
#B251EC #EC51D9 #EC518B
triadic
#EC51D9 #D9EC51 #51D9EC
tetradic
#EC51D9 #ECB251 #51EC64 #518BEC
square
#EC51D9 #ECB251 #51EC64 #518BEC
split-complementary
#EC51D9 #8BEC51 #51ECB2
monochromatic
#AF139C #E61ACD #EC51D9 #F288E5 #F8BFF1

Accessibility & contrast

On white

3.11
#EC51D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#EC51D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #EC51D9
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC51D9#FFFFFF#000000##000000
##EC51D91.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C84DD
Deuteranopia (green-blind)
#819AD5
Tritanopia (blue-blind)
#F65F8E
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ec51d9;
/* rgb */ color: rgb(236, 81, 217);
/* oklch */ color: oklch(69.1% 0.239 333.1);
Tailwind
colors: {
  custom: {
    50: '#f68de5',
    500: '#ec51d9',
    950: '#000000',
  },
}
SCSS
$custom: #ec51d9;
$custom-light: #f68de5;
$custom-dark: #000000;
JSON
{
  "hex": "#ec51d9",
  "rgb": {
    "r": 236,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 307.355,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.69111,
    "c": 0.23872,
    "h": 333.1
  },
  "luminance": 0.28727
}

Semantic roles & 50–950 ramp

primary
#EC51D9
secondary
#B0E9B7
accent
#DD2309
background
#FFF9FE
surface
#FFF1FC
border
#D7CBD5
text
#180D16
muted
#867E84

Preview Lab

Preview with #EC51D9

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

Preview Lab → · Contrast checker → · Palette generator →

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