#D42AAB#D42AAB

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

Color values

HEX#D42AAB
RGBrgb(212, 42, 171)
HSLhsl(314, 67%, 50%)
HSVhsv(314, 80%, 83%)
CMYKcmyk(0%, 80.2%, 19.3%, 16.9%)
CIE-LABlab(50.21, 74.11, -29.38)
CIE-LCHlch(50.21, 79.72, 338.38°)
OKLaboklab(60.22% 0.2218 -0.0794)
OKLCHoklch(60.22% 0.236 340.3)
XYZxyz(35.3311, 18.5969, 40.2491)
Luminance0.1859 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42AAB #2AD453
analogous
#A82AD4 #D42AAB #D42A56
triadic
#D42AAB #ABD42A #2AABD4
tetradic
#D42AAB #D4A82A #2AD453 #2A56D4
square
#D42AAB #D4A82A #2AD453 #2A56D4
split-complementary
#D42AAB #56D42A #2AD4A8
monochromatic
#6E1659 #A12082 #D42AAB #DF5CBF #E98FD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D42AAB#FFFFFF#000000##000000
##D42AAB1.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)
#3966AE
Deuteranopia (green-blind)
#7281A7
Tritanopia (blue-blind)
#E1306A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #d42aab;
/* rgb */ color: rgb(212, 42, 171);
/* oklch */ color: oklch(60.2% 0.236 340.3);
Tailwind
colors: {
  custom: {
    50: '#e678c4',
    500: '#d42aab',
    950: '#000000',
  },
}
SCSS
$custom: #d42aab;
$custom-light: #e678c4;
$custom-dark: #000000;
JSON
{
  "hex": "#d42aab",
  "rgb": {
    "r": 212,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 314.471,
    "s": 66.929,
    "l": 49.804
  },
  "oklch": {
    "l": 0.60218,
    "c": 0.23558,
    "h": 340.3
  },
  "luminance": 0.18593
}

Semantic roles & 50–950 ramp

primary
#D42AAB
secondary
#86D399
accent
#EA673E
background
#FEF7FC
surface
#FDEEF8
border
#D5C9D1
text
#170A12
muted
#857C81

Preview Lab

Preview with #D42AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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