#D042A1#D042A1

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

Color values

HEX#D042A1
RGBrgb(208, 66, 161)
HSLhsl(320, 60%, 54%)
HSVhsv(320, 68%, 82%)
CMYKcmyk(0%, 68.3%, 22.6%, 18.4%)
CIE-LABlab(51.70, 64.47, -21.23)
CIE-LCHlch(51.70, 67.88, 341.78°)
OKLaboklab(61.03% 0.194 -0.0566)
OKLCHoklch(61.03% 0.202 343.7)
XYZxyz(34.3949, 19.8830, 35.7377)
Luminance0.1988 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042A1 #42D071
analogous
#B842D0 #D042A1 #D0425A
triadic
#D042A1 #A1D042 #42A1D0
tetradic
#D042A1 #D0B842 #42D071 #425AD0
square
#D042A1 #D0B842 #42D071 #425AD0
split-complementary
#D042A1 #5AD042 #42D0B8
monochromatic
#791E5B #AA2A80 #D042A1 #DC73B9 #E8A4D2

Accessibility & contrast

On white

4.22
#D042A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##D042A1#FFFFFF#000000##000000
##D042A11.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d042a1;
/* rgb */ color: rgb(208, 66, 161);
/* oklch */ color: oklch(61.0% 0.202 343.7);
Tailwind
colors: {
  custom: {
    50: '#e281bd',
    500: '#d042a1',
    950: '#000000',
  },
}
SCSS
$custom: #d042a1;
$custom-light: #e281bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d042a1",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 161
  },
  "hsl": {
    "h": 319.859,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61033,
    "c": 0.20214,
    "h": 343.7
  },
  "luminance": 0.1988
}

Semantic roles & 50–950 ramp

primary
#D042A1
secondary
#99D5AD
accent
#E37944
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D042A1

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

Preview Lab → · Contrast checker → · Palette generator →

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