#D42DA7#D42DA7

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

Color values

HEX#D42DA7
RGBrgb(212, 45, 167)
HSLhsl(316, 66%, 50%)
HSVhsv(316, 79%, 83%)
CMYKcmyk(0%, 78.8%, 21.2%, 16.9%)
CIE-LABlab(50.30, 72.85, -26.89)
CIE-LCHlch(50.30, 77.65, 339.74°)
OKLaboklab(60.22% 0.219 -0.0723)
OKLCHoklch(60.22% 0.231 341.7)
XYZxyz(35.0661, 18.6675, 38.3082)
Luminance0.1866 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42DA7 #2DD45A
analogous
#AE2DD4 #D42DA7 #D42D53
triadic
#D42DA7 #A7D42D #2DA7D4
tetradic
#D42DA7 #D4AE2D #2DD45A #2D53D4
square
#D42DA7 #D4AE2D #2DD45A #2D53D4
split-complementary
#D42DA7 #53D42D #2DD4AE
monochromatic
#701758 #A32180 #D42DA7 #DE60BC #E993D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D42DA7#FFFFFF#000000##000000
##D42DA71.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)
#3E67AA
Deuteranopia (green-blind)
#7581A3
Tritanopia (blue-blind)
#E13068
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #d42da7;
/* rgb */ color: rgb(212, 45, 167);
/* oklch */ color: oklch(60.2% 0.231 341.7);
Tailwind
colors: {
  custom: {
    50: '#e679c1',
    500: '#d42da7',
    950: '#000000',
  },
}
SCSS
$custom: #d42da7;
$custom-light: #e679c1;
$custom-dark: #000000;
JSON
{
  "hex": "#d42da7",
  "rgb": {
    "r": 212,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 316.168,
    "s": 66.008,
    "l": 50.392
  },
  "oklch": {
    "l": 0.6022,
    "c": 0.23064,
    "h": 341.7
  },
  "luminance": 0.18664
}

Semantic roles & 50–950 ramp

primary
#D42DA7
secondary
#89D49D
accent
#E96D3F
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#170A12
muted
#857C81

Preview Lab

Preview with #D42DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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