#D042AB#D042AB

#D042AB is a mid, highly saturated pink. Relative luminance 0.202; OKLCH L 61.5% C 0.208 H 340.0°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#D042AB
RGBrgb(208, 66, 171)
HSLhsl(316, 60%, 54%)
HSVhsv(316, 68%, 82%)
CMYKcmyk(0%, 68.3%, 17.8%, 18.4%)
CIE-LABlab(52.12, 65.83, -26.47)
CIE-LCHlch(52.12, 70.95, 338.10°)
OKLaboklab(61.47% 0.1958 -0.0714)
OKLCHoklch(61.47% 0.208 340)
XYZxyz(35.3122, 20.2499, 40.5691)
Luminance0.2025 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042AB #42D067
analogous
#AE42D0 #D042AB #D04264
triadic
#D042AB #ABD042 #42ABD0
tetradic
#D042AB #D0AE42 #42D067 #4264D0
square
#D042AB #D0AE42 #42D067 #4264D0
split-complementary
#D042AB #64D042 #42D0AE
monochromatic
#791E62 #AA2A89 #D042AB #DC73C1 #E8A4D7

Accessibility & contrast

On white

4.16
#D042AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#D042AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042AB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042AB#FFFFFF#000000##000000
##D042AB1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6EAE
Deuteranopia (green-blind)
#7784A8
Tritanopia (blue-blind)
#DC4671
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d042ab;
/* rgb */ color: rgb(208, 66, 171);
/* oklch */ color: oklch(61.5% 0.208 340.0);
Tailwind
colors: {
  custom: {
    50: '#e281c4',
    500: '#d042ab',
    950: '#000000',
  },
}
SCSS
$custom: #d042ab;
$custom-light: #e281c4;
$custom-dark: #000000;
JSON
{
  "hex": "#d042ab",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 315.634,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61471,
    "c": 0.20844,
    "h": 340
  },
  "luminance": 0.20247
}

Semantic roles & 50–950 ramp

primary
#D042AB
secondary
#99D5A8
accent
#E36E44
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #D042AB

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

Preview Lab → · Contrast checker → · Palette generator →

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