#D42AA7#D42AA7

#D42AA7 is a mid, highly saturated pink. Relative luminance 0.184; OKLCH L 60.0% C 0.233 H 341.6°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#D42AA7
RGBrgb(212, 42, 167)
HSLhsl(316, 67%, 50%)
HSVhsv(316, 80%, 83%)
CMYKcmyk(0%, 80.2%, 21.2%, 16.9%)
CIE-LABlab(50.03, 73.60, -27.30)
CIE-LCHlch(50.03, 78.50, 339.65°)
OKLaboklab(60.03% 0.2213 -0.0735)
OKLCHoklch(60.03% 0.233 341.6)
XYZxyz(34.9556, 18.4467, 38.2714)
Luminance0.1844 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42AA7 #2AD457
analogous
#AC2AD4 #D42AA7 #D42A52
triadic
#D42AA7 #A7D42A #2AA7D4
tetradic
#D42AA7 #D4AC2A #2AD457 #2A52D4
square
#D42AA7 #D4AC2A #2AD457 #2A52D4
split-complementary
#D42AA7 #52D42A #2AD4AC
monochromatic
#6E1657 #A1207F #D42AA7 #DF5CBC #E98FD1

Accessibility & contrast

On white

4.48
#D42AA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#D42AA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42AA7
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42AA7#FFFFFF#000000##000000
##D42AA71.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d42aa7;
/* rgb */ color: rgb(212, 42, 167);
/* oklch */ color: oklch(60.0% 0.233 341.6);
Tailwind
colors: {
  custom: {
    50: '#e678c1',
    500: '#d42aa7',
    950: '#000000',
  },
}
SCSS
$custom: #d42aa7;
$custom-light: #e678c1;
$custom-dark: #000000;
JSON
{
  "hex": "#d42aa7",
  "rgb": {
    "r": 212,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 315.882,
    "s": 66.929,
    "l": 49.804
  },
  "oklch": {
    "l": 0.60031,
    "c": 0.23319,
    "h": 341.6
  },
  "luminance": 0.18443
}

Semantic roles & 50–950 ramp

primary
#D42AA7
secondary
#86D39B
accent
#EA6B3E
background
#FEF7FB
surface
#FDEEF7
border
#D5C9D0
text
#170A12
muted
#857C81

Preview Lab

Preview with #D42AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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