#EC42C6#EC42C6

#EC42C6 is a light, highly saturated pink. Relative luminance 0.258; OKLCH L 66.9% C 0.243 H 338.5°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#EC42C6
RGBrgb(236, 66, 198)
HSLhsl(313, 82%, 59%)
HSVhsv(313, 72%, 93%)
CMYKcmyk(0%, 72%, 16.1%, 7.5%)
CIE-LABlab(57.86, 76.29, -32.84)
CIE-LCHlch(57.86, 83.06, 336.71°)
OKLaboklab(66.89% 0.2261 -0.089)
OKLCHoklch(66.89% 0.243 338.5)
XYZxyz(46.7344, 25.8110, 55.9359)
Luminance0.2581 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC42C6 #42EC68
analogous
#BD42EC #EC42C6 #EC4271
triadic
#EC42C6 #C6EC42 #42C6EC
tetradic
#EC42C6 #ECBD42 #42EC68 #4271EC
square
#EC42C6 #ECBD42 #42EC68 #4271EC
split-complementary
#EC42C6 #71EC42 #42ECBD
monochromatic
#A31082 #DB16AF #EC42C6 #F27AD7 #F7B1E8

Accessibility & contrast

On white

3.41
#EC42C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#EC42C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #EC42C6
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC42C6#FFFFFF#000000##000000
##EC42C61.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7ACA
Deuteranopia (green-blind)
#8395C2
Tritanopia (blue-blind)
#F94A7F
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ec42c6;
/* rgb */ color: rgb(236, 66, 198);
/* oklch */ color: oklch(66.9% 0.243 338.5);
Tailwind
colors: {
  custom: {
    50: '#f685d7',
    500: '#ec42c6',
    950: '#000000',
  },
}
SCSS
$custom: #ec42c6;
$custom-light: #f685d7;
$custom-dark: #000000;
JSON
{
  "hex": "#ec42c6",
  "rgb": {
    "r": 236,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 313.412,
    "s": 81.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.66886,
    "c": 0.24301,
    "h": 338.5
  },
  "luminance": 0.25807
}

Semantic roles & 50–950 ramp

primary
#EC42C6
secondary
#A4E6B3
accent
#F85C30
background
#FFF8FD
surface
#FFF0FA
border
#D7CBD3
text
#180C14
muted
#867D83

Preview Lab

Preview with #EC42C6

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

Preview Lab → · Contrast checker → · Palette generator →

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