#D042B6#D042B6

#D042B6 is a mid, highly saturated pink. Relative luminance 0.207; OKLCH L 62.0% C 0.216 H 336.1°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#D042B6
RGBrgb(208, 66, 182)
HSLhsl(311, 60%, 54%)
HSVhsv(311, 68%, 82%)
CMYKcmyk(0%, 68.3%, 12.5%, 18.4%)
CIE-LABlab(52.61, 67.40, -32.14)
CIE-LCHlch(52.61, 74.67, 334.51°)
OKLaboklab(61.98% 0.1974 -0.0875)
OKLCHoklch(61.98% 0.216 336.1)
XYZxyz(36.4046, 20.6869, 46.3225)
Luminance0.2068 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042B6 #42D05C
analogous
#A342D0 #D042B6 #D0426F
triadic
#D042B6 #B6D042 #42B6D0
tetradic
#D042B6 #D0A342 #42D05C #426FD0
square
#D042B6 #D0A342 #42D05C #426FD0
split-complementary
#D042B6 #6FD042 #42D0A3
monochromatic
#791E69 #AA2A93 #D042B6 #DC73C9 #E8A4DC

Accessibility & contrast

On white

4.09
#D042B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#D042B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042B6
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042B6#FFFFFF#000000##000000
##D042B61.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4470B9
Deuteranopia (green-blind)
#7385B3
Tritanopia (blue-blind)
#DA4B76
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d042b6;
/* rgb */ color: rgb(208, 66, 182);
/* oklch */ color: oklch(62.0% 0.216 336.1);
Tailwind
colors: {
  custom: {
    50: '#e282cc',
    500: '#d042b6',
    950: '#000000',
  },
}
SCSS
$custom: #d042b6;
$custom-light: #e282cc;
$custom-dark: #000000;
JSON
{
  "hex": "#d042b6",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 310.986,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61983,
    "c": 0.2159,
    "h": 336.1
  },
  "luminance": 0.20684
}

Semantic roles & 50–950 ramp

primary
#D042B6
secondary
#99D5A4
accent
#E36244
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D042B6

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

Preview Lab → · Contrast checker → · Palette generator →

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