#E042C2#E042C2

#E042C2 is a light, highly saturated pink. Relative luminance 0.236; OKLCH L 64.9% C 0.233 H 336.7°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#E042C2
RGBrgb(224, 66, 194)
HSLhsl(311, 72%, 57%)
HSVhsv(311, 71%, 88%)
CMYKcmyk(0%, 70.5%, 13.4%, 12.2%)
CIE-LABlab(55.73, 72.95, -34.01)
CIE-LCHlch(55.73, 80.49, 335.00°)
OKLaboklab(64.92% 0.2144 -0.0925)
OKLCHoklch(64.92% 0.233 336.7)
XYZxyz(42.4270, 23.6426, 53.3575)
Luminance0.2364 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E042C2 #42E060
analogous
#AF42E0 #E042C2 #E04273
triadic
#E042C2 #C2E042 #42C2E0
tetradic
#E042C2 #E0AF42 #42E060 #4273E0
square
#E042C2 #E0AF42 #42E060 #4273E0
split-complementary
#E042C2 #73E042 #42E0AF
monochromatic
#901879 #C520A5 #E042C2 #E977D3 #F1ABE4

Accessibility & contrast

On white

3.67
#E042C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#E042C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #E042C2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E042C2#FFFFFF#000000##000000
##E042C21.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4576C6
Deuteranopia (green-blind)
#7B8EBE
Tritanopia (blue-blind)
#EC4C7D
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #e042c2;
/* rgb */ color: rgb(224, 66, 194);
/* oklch */ color: oklch(64.9% 0.233 336.7);
Tailwind
colors: {
  custom: {
    50: '#ee84d5',
    500: '#e042c2',
    950: '#000000',
  },
}
SCSS
$custom: #e042c2;
$custom-light: #ee84d5;
$custom-dark: #000000;
JSON
{
  "hex": "#e042c2",
  "rgb": {
    "r": 224,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 311.392,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.64917,
    "c": 0.23349,
    "h": 336.7
  },
  "luminance": 0.23639
}

Semantic roles & 50–950 ramp

primary
#E042C2
secondary
#9FDFAB
accent
#EF5C39
background
#FFF8FD
surface
#FEF0FA
border
#D6CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #E042C2

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

Preview Lab → · Contrast checker → · Palette generator →

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