#D04171#D04171

#D04171 is a mid, vivid pink. Relative luminance 0.184; OKLCH L 59.2% C 0.182 H 4.2°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#D04171
RGBrgb(208, 65, 113)
HSLhsl(340, 60%, 54%)
HSVhsv(340, 69%, 82%)
CMYKcmyk(0%, 68.8%, 45.7%, 18.4%)
CIE-LABlab(49.96, 59.43, 4.90)
CIE-LCHlch(49.96, 59.63, 4.71°)
OKLaboklab(59.23% 0.1816 0.0132)
OKLCHoklch(59.23% 0.182 4.2)
XYZxyz(30.8858, 18.3867, 17.5421)
Luminance0.1838 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D04171 #41D0A0
analogous
#D041B9 #D04171 #D05841
triadic
#D04171 #71D041 #4171D0
tetradic
#D04171 #B9D041 #41D0A0 #5841D0
square
#D04171 #B9D041 #41D0A0 #5841D0
split-complementary
#D04171 #41D058 #41B9D0
monochromatic
#791E3C #AA2A55 #D04171 #DC7296 #E8A3BA

Accessibility & contrast

On white

4.49
#D04171 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#D04171 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D04171
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D04171#FFFFFF#000000##000000
##D041711.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#606572
Deuteranopia (green-blind)
#86816E
Tritanopia (blue-blind)
#E22B54
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #d04171;
/* rgb */ color: rgb(208, 65, 113);
/* oklch */ color: oklch(59.2% 0.182 4.2);
Tailwind
colors: {
  custom: {
    50: '#e47f99',
    500: '#d04171',
    950: '#000000',
  },
}
SCSS
$custom: #d04171;
$custom-light: #e47f99;
$custom-dark: #000000;
JSON
{
  "hex": "#d04171",
  "rgb": {
    "r": 208,
    "g": 65,
    "b": 113
  },
  "hsl": {
    "h": 339.86,
    "s": 60.338,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59225,
    "c": 0.18212,
    "h": 4.2
  },
  "luminance": 0.18383
}

Semantic roles & 50–950 ramp

primary
#D04171
secondary
#98D5C0
accent
#E3AE44
background
#FEF8F9
surface
#FDEFF2
border
#D5CACC
text
#170B0D
muted
#857C7E

Preview Lab

Preview with #D04171

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

Preview Lab → · Contrast checker → · Palette generator →

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