#D042B1#D042B1

#D042B1 is a mid, highly saturated pink. Relative luminance 0.205; OKLCH L 61.7% C 0.212 H 337.8°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#D042B1
RGBrgb(208, 66, 177)
HSLhsl(313, 60%, 54%)
HSVhsv(313, 68%, 82%)
CMYKcmyk(0%, 68.3%, 14.9%, 18.4%)
CIE-LABlab(52.38, 66.68, -29.57)
CIE-LCHlch(52.38, 72.94, 336.08°)
OKLaboklab(61.75% 0.1967 -0.0802)
OKLCHoklch(61.75% 0.212 337.8)
XYZxyz(35.8971, 20.4839, 43.6497)
Luminance0.2048 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042B1 #42D061
analogous
#A842D0 #D042B1 #D0426A
triadic
#D042B1 #B1D042 #42B1D0
tetradic
#D042B1 #D0A842 #42D061 #426AD0
square
#D042B1 #D0A842 #42D061 #426AD0
split-complementary
#D042B1 #6AD042 #42D0A8
monochromatic
#791E65 #AA2A8E #D042B1 #DC73C5 #E8A4D9

Accessibility & contrast

On white

4.12
#D042B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#D042B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042B1
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042B1#FFFFFF#000000##000000
##D042B11.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#476FB4
Deuteranopia (green-blind)
#7585AE
Tritanopia (blue-blind)
#DB4974
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d042b1;
/* rgb */ color: rgb(208, 66, 177);
/* oklch */ color: oklch(61.7% 0.212 337.8);
Tailwind
colors: {
  custom: {
    50: '#e281c8',
    500: '#d042b1',
    950: '#000000',
  },
}
SCSS
$custom: #d042b1;
$custom-light: #e281c8;
$custom-dark: #000000;
JSON
{
  "hex": "#d042b1",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 313.099,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61746,
    "c": 0.21245,
    "h": 337.8
  },
  "luminance": 0.20481
}

Semantic roles & 50–950 ramp

primary
#D042B1
secondary
#99D5A6
accent
#E36744
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D042B1

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

Preview Lab → · Contrast checker → · Palette generator →

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