#D042A2#D042A2

#D042A2 is a mid, highly saturated pink. Relative luminance 0.199; OKLCH L 61.1% C 0.203 H 343.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#D042A2
RGBrgb(208, 66, 162)
HSLhsl(319, 60%, 54%)
HSVhsv(319, 68%, 82%)
CMYKcmyk(0%, 68.3%, 22.1%, 18.4%)
CIE-LABlab(51.74, 64.61, -21.76)
CIE-LCHlch(51.74, 68.17, 341.39°)
OKLaboklab(61.08% 0.1942 -0.0581)
OKLCHoklch(61.08% 0.203 343.3)
XYZxyz(34.4834, 19.9184, 36.2040)
Luminance0.1991 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042A2 #42D070
analogous
#B742D0 #D042A2 #D0425B
triadic
#D042A2 #A2D042 #42A2D0
tetradic
#D042A2 #D0B742 #42D070 #425BD0
square
#D042A2 #D0B742 #42D070 #425BD0
split-complementary
#D042A2 #5BD042 #42D0B7
monochromatic
#791E5C #AA2A81 #D042A2 #DC73BA #E8A4D2

Accessibility & contrast

On white

4.21
#D042A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#D042A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042A2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042A2#FFFFFF#000000##000000
##D042A21.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#506CA5
Deuteranopia (green-blind)
#7A849F
Tritanopia (blue-blind)
#DD426C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d042a2;
/* rgb */ color: rgb(208, 66, 162);
/* oklch */ color: oklch(61.1% 0.203 343.3);
Tailwind
colors: {
  custom: {
    50: '#e281bd',
    500: '#d042a2',
    950: '#000000',
  },
}
SCSS
$custom: #d042a2;
$custom-light: #e281bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d042a2",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 319.437,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61076,
    "c": 0.20275,
    "h": 343.3
  },
  "luminance": 0.19915
}

Semantic roles & 50–950 ramp

primary
#D042A2
secondary
#99D5AC
accent
#E37844
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D042A2

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

Preview Lab → · Contrast checker → · Palette generator →

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