#D042AC#D042AC

#D042AC is a mid, highly saturated pink. Relative luminance 0.203; OKLCH L 61.5% C 0.209 H 339.6°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#D042AC
RGBrgb(208, 66, 172)
HSLhsl(315, 60%, 54%)
HSVhsv(315, 68%, 82%)
CMYKcmyk(0%, 68.3%, 17.3%, 18.4%)
CIE-LABlab(52.16, 65.97, -26.99)
CIE-LCHlch(52.16, 71.28, 337.75°)
OKLaboklab(61.52% 0.196 -0.0728)
OKLCHoklch(61.52% 0.209 339.6)
XYZxyz(35.4079, 20.2882, 41.0730)
Luminance0.2029 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042AC #42D066
analogous
#AD42D0 #D042AC #D04265
triadic
#D042AC #ACD042 #42ACD0
tetradic
#D042AC #D0AD42 #42D066 #4265D0
square
#D042AC #D0AD42 #42D066 #4265D0
split-complementary
#D042AC #65D042 #42D0AD
monochromatic
#791E62 #AA2A8A #D042AC #DC73C2 #E8A4D7

Accessibility & contrast

On white

4.15
#D042AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#D042AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042AC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042AC#FFFFFF#000000##000000
##D042AC1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6EAF
Deuteranopia (green-blind)
#7785A9
Tritanopia (blue-blind)
#DC4771
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d042ac;
/* rgb */ color: rgb(208, 66, 172);
/* oklch */ color: oklch(61.5% 0.209 339.6);
Tailwind
colors: {
  custom: {
    50: '#e281c5',
    500: '#d042ac',
    950: '#000000',
  },
}
SCSS
$custom: #d042ac;
$custom-light: #e281c5;
$custom-dark: #000000;
JSON
{
  "hex": "#d042ac",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 315.211,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61516,
    "c": 0.2091,
    "h": 339.6
  },
  "luminance": 0.20285
}

Semantic roles & 50–950 ramp

primary
#D042AC
secondary
#99D5A8
accent
#E36D44
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D042AC

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

Preview Lab → · Contrast checker → · Palette generator →

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