#D42DA5#D42DA5

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

Color values

HEX#D42DA5
RGBrgb(212, 45, 165)
HSLhsl(317, 66%, 50%)
HSVhsv(317, 79%, 83%)
CMYKcmyk(0%, 78.8%, 22.2%, 16.9%)
CIE-LABlab(50.21, 72.60, -25.84)
CIE-LCHlch(50.21, 77.06, 340.41°)
OKLaboklab(60.13% 0.2187 -0.0694)
OKLCHoklch(60.13% 0.229 342.4)
XYZxyz(34.8826, 18.5942, 37.3420)
Luminance0.1859 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42DA5 #2DD45C
analogous
#AF2DD4 #D42DA5 #D42D52
triadic
#D42DA5 #A5D42D #2DA5D4
tetradic
#D42DA5 #D4AF2D #2DD45C #2D52D4
square
#D42DA5 #D4AF2D #2DD45C #2D52D4
split-complementary
#D42DA5 #52D42D #2DD4AF
monochromatic
#701757 #A3217E #D42DA5 #DE60BB #E993D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D42DA5#FFFFFF#000000##000000
##D42DA51.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)
#4066A8
Deuteranopia (green-blind)
#7581A1
Tritanopia (blue-blind)
#E22F67
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #d42da5;
/* rgb */ color: rgb(212, 45, 165);
/* oklch */ color: oklch(60.1% 0.229 342.4);
Tailwind
colors: {
  custom: {
    50: '#e679c0',
    500: '#d42da5',
    950: '#000000',
  },
}
SCSS
$custom: #d42da5;
$custom-light: #e679c0;
$custom-dark: #000000;
JSON
{
  "hex": "#d42da5",
  "rgb": {
    "r": 212,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 316.886,
    "s": 66.008,
    "l": 50.392
  },
  "oklch": {
    "l": 0.60129,
    "c": 0.22946,
    "h": 342.4
  },
  "luminance": 0.1859
}

Semantic roles & 50–950 ramp

primary
#D42DA5
secondary
#89D49E
accent
#E96F3F
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#170A12
muted
#857C81

Preview Lab

Preview with #D42DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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