#D042B7#D042B7

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

Color values

HEX#D042B7
RGBrgb(208, 66, 183)
HSLhsl(311, 60%, 54%)
HSVhsv(311, 68%, 82%)
CMYKcmyk(0%, 68.3%, 12%, 18.4%)
CIE-LABlab(52.65, 67.55, -32.65)
CIE-LCHlch(52.65, 75.02, 334.21°)
OKLaboklab(62.03% 0.1975 -0.0889)
OKLCHoklch(62.03% 0.217 335.8)
XYZxyz(36.5084, 20.7284, 46.8688)
Luminance0.2072 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042B7 #42D05B
analogous
#A242D0 #D042B7 #D04270
triadic
#D042B7 #B7D042 #42B7D0
tetradic
#D042B7 #D0A242 #42D05B #4270D0
square
#D042B7 #D0A242 #42D05B #4270D0
split-complementary
#D042B7 #70D042 #42D0A2
monochromatic
#791E69 #AA2A94 #D042B7 #DC73CA #E8A4DC

Accessibility & contrast

On white

4.08
#D042B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##D042B7#FFFFFF#000000##000000
##D042B71.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4370BA
Deuteranopia (green-blind)
#7385B4
Tritanopia (blue-blind)
#DA4B77
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d042b7;
/* rgb */ color: rgb(208, 66, 183);
/* oklch */ color: oklch(62.0% 0.217 335.8);
Tailwind
colors: {
  custom: {
    50: '#e282cd',
    500: '#d042b7',
    950: '#000000',
  },
}
SCSS
$custom: #d042b7;
$custom-light: #e282cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d042b7",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 310.563,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62031,
    "c": 0.2166,
    "h": 335.8
  },
  "luminance": 0.20725
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D042B7

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

Preview Lab → · Contrast checker → · Palette generator →

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