#D42CA8#D42CA8

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

Color values

HEX#D42CA8
RGBrgb(212, 44, 168)
HSLhsl(316, 66%, 50%)
HSVhsv(316, 79%, 83%)
CMYKcmyk(0%, 79.2%, 20.8%, 16.9%)
CIE-LABlab(50.25, 73.23, -27.55)
CIE-LCHlch(50.25, 78.24, 339.38°)
OKLaboklab(60.2% 0.2199 -0.0742)
OKLCHoklch(60.2% 0.232 341.4)
XYZxyz(35.1211, 18.6293, 38.7844)
Luminance0.1863 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42CA8 #2CD458
analogous
#AC2CD4 #D42CA8 #D42C54
triadic
#D42CA8 #A8D42C #2CA8D4
tetradic
#D42CA8 #D4AC2C #2CD458 #2C54D4
square
#D42CA8 #D4AC2C #2CD458 #2C54D4
split-complementary
#D42CA8 #54D42C #2CD4AC
monochromatic
#6F1758 #A22180 #D42CA8 #DE5FBD #E992D2

Accessibility & contrast

On white

4.44
#D42CA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#D42CA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42CA8
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42CA8#FFFFFF#000000##000000
##D42CA81.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D66AB
Deuteranopia (green-blind)
#7481A4
Tritanopia (blue-blind)
#E13068
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #d42ca8;
/* rgb */ color: rgb(212, 44, 168);
/* oklch */ color: oklch(60.2% 0.232 341.4);
Tailwind
colors: {
  custom: {
    50: '#e679c2',
    500: '#d42ca8',
    950: '#000000',
  },
}
SCSS
$custom: #d42ca8;
$custom-light: #e679c2;
$custom-dark: #000000;
JSON
{
  "hex": "#d42ca8",
  "rgb": {
    "r": 212,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 315.714,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60202,
    "c": 0.2321,
    "h": 341.4
  },
  "luminance": 0.18626
}

Semantic roles & 50–950 ramp

primary
#D42CA8
secondary
#88D39C
accent
#E96B3F
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#170A12
muted
#857C81

Preview Lab

Preview with #D42CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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