#D42CA7#D42CA7

#D42CA7 is a mid, highly saturated pink. Relative luminance 0.186; OKLCH L 60.2% C 0.232 H 341.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#D42CA7
RGBrgb(212, 44, 167)
HSLhsl(316, 66%, 50%)
HSVhsv(316, 79%, 83%)
CMYKcmyk(0%, 79.2%, 21.2%, 16.9%)
CIE-LABlab(50.21, 73.11, -27.03)
CIE-LCHlch(50.21, 77.94, 339.71°)
OKLaboklab(60.16% 0.2198 -0.0727)
OKLCHoklch(60.16% 0.232 341.7)
XYZxyz(35.0283, 18.5921, 38.2957)
Luminance0.1859 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42CA7 #2CD459
analogous
#AD2CD4 #D42CA7 #D42C53
triadic
#D42CA7 #A7D42C #2CA7D4
tetradic
#D42CA7 #D4AD2C #2CD459 #2C53D4
square
#D42CA7 #D4AD2C #2CD459 #2C53D4
split-complementary
#D42CA7 #53D42C #2CD4AD
monochromatic
#6F1757 #A2217F #D42CA7 #DE5FBC #E992D1

Accessibility & contrast

On white

4.45
#D42CA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#D42CA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42CA7
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42CA7#FFFFFF#000000##000000
##D42CA71.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E66AA
Deuteranopia (green-blind)
#7481A3
Tritanopia (blue-blind)
#E12F68
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #d42ca7;
/* rgb */ color: rgb(212, 44, 167);
/* oklch */ color: oklch(60.2% 0.232 341.7);
Tailwind
colors: {
  custom: {
    50: '#e679c1',
    500: '#d42ca7',
    950: '#000000',
  },
}
SCSS
$custom: #d42ca7;
$custom-light: #e679c1;
$custom-dark: #000000;
JSON
{
  "hex": "#d42ca7",
  "rgb": {
    "r": 212,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 316.071,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60156,
    "c": 0.23151,
    "h": 341.7
  },
  "luminance": 0.18588
}

Semantic roles & 50–950 ramp

primary
#D42CA7
secondary
#88D39C
accent
#E96C3F
background
#FEF7FB
surface
#FDEEF7
border
#D5C9D0
text
#170A12
muted
#857C81

Preview Lab

Preview with #D42CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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