#D042B8#D042B8

#D042B8 is a light, highly saturated pink. Relative luminance 0.208; OKLCH L 62.1% C 0.217 H 335.4°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#D042B8
RGBrgb(208, 66, 184)
HSLhsl(310, 60%, 54%)
HSVhsv(310, 68%, 82%)
CMYKcmyk(0%, 68.3%, 11.5%, 18.4%)
CIE-LABlab(52.70, 67.70, -33.15)
CIE-LCHlch(52.70, 75.38, 333.91°)
OKLaboklab(62.08% 0.1976 -0.0904)
OKLCHoklch(62.08% 0.217 335.4)
XYZxyz(36.6128, 20.7702, 47.4189)
Luminance0.2077 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042B8 #42D05A
analogous
#A142D0 #D042B8 #D04271
triadic
#D042B8 #B8D042 #42B8D0
tetradic
#D042B8 #D0A142 #42D05A #4271D0
square
#D042B8 #D0A142 #42D05A #4271D0
split-complementary
#D042B8 #71D042 #42D0A1
monochromatic
#791E6A #AA2A95 #D042B8 #DC73CA #E8A4DD

Accessibility & contrast

On white

4.07
#D042B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#D042B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042B8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042B8#FFFFFF#000000##000000
##D042B81.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4270BB
Deuteranopia (green-blind)
#7285B5
Tritanopia (blue-blind)
#DA4C78
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d042b8;
/* rgb */ color: rgb(208, 66, 184);
/* oklch */ color: oklch(62.1% 0.217 335.4);
Tailwind
colors: {
  custom: {
    50: '#e282cd',
    500: '#d042b8',
    950: '#000000',
  },
}
SCSS
$custom: #d042b8;
$custom-light: #e282cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d042b8",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 310.141,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62079,
    "c": 0.2173,
    "h": 335.4
  },
  "luminance": 0.20767
}

Semantic roles & 50–950 ramp

primary
#D042B8
secondary
#99D5A3
accent
#E35F44
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D042B8

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

Preview Lab → · Contrast checker → · Palette generator →

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