#D42DAF#D42DAF

#D42DAF is a mid, highly saturated pink. Relative luminance 0.190; OKLCH L 60.6% C 0.235 H 339.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#D42DAF
RGBrgb(212, 45, 175)
HSLhsl(313, 66%, 50%)
HSVhsv(313, 79%, 83%)
CMYKcmyk(0%, 78.8%, 17.5%, 16.9%)
CIE-LABlab(50.66, 73.88, -31.04)
CIE-LCHlch(50.66, 80.14, 337.21°)
OKLaboklab(60.6% 0.22 -0.0841)
OKLCHoklch(60.6% 0.236 339.1)
XYZxyz(35.8286, 18.9726, 42.3243)
Luminance0.1897 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42DAF #2DD452
analogous
#A52DD4 #D42DAF #D42D5C
triadic
#D42DAF #AFD42D #2DAFD4
tetradic
#D42DAF #D4A52D #2DD452 #2D5CD4
square
#D42DAF #D4A52D #2DD452 #2D5CD4
split-complementary
#D42DAF #5CD42D #2DD4A5
monochromatic
#70175C #A32186 #D42DAF #DE60C2 #E993D6

Accessibility & contrast

On white

4.38
#D42DAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#D42DAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42DAF
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42DAF#FFFFFF#000000##000000
##D42DAF1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3868B2
Deuteranopia (green-blind)
#7182AB
Tritanopia (blue-blind)
#E0356D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #d42daf;
/* rgb */ color: rgb(212, 45, 175);
/* oklch */ color: oklch(60.6% 0.235 339.1);
Tailwind
colors: {
  custom: {
    50: '#e679c7',
    500: '#d42daf',
    950: '#000000',
  },
}
SCSS
$custom: #d42daf;
$custom-light: #e679c7;
$custom-dark: #000000;
JSON
{
  "hex": "#d42daf",
  "rgb": {
    "r": 212,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 313.293,
    "s": 66.008,
    "l": 50.392
  },
  "oklch": {
    "l": 0.60596,
    "c": 0.2355,
    "h": 339.1
  },
  "luminance": 0.18969
}

Semantic roles & 50–950 ramp

primary
#D42DAF
secondary
#89D49A
accent
#E9653F
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#170A13
muted
#857C82

Preview Lab

Preview with #D42DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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