#D03871#D03871

#D03871 is a mid, vivid pink. Relative luminance 0.174; OKLCH L 58.4% C 0.192 H 2.7°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#D03871
RGBrgb(208, 56, 113)
HSLhsl(338, 62%, 52%)
HSVhsv(338, 73%, 82%)
CMYKcmyk(0%, 73.1%, 45.7%, 18.4%)
CIE-LABlab(48.80, 62.65, 3.23)
CIE-LCHlch(48.80, 62.74, 2.95°)
OKLaboklab(58.37% 0.1919 0.009)
OKLCHoklch(58.37% 0.192 2.7)
XYZxyz(30.4097, 17.4345, 17.3834)
Luminance0.1743 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D03871 #38D097
analogous
#D038BD #D03871 #D04B38
triadic
#D03871 #71D038 #3871D0
tetradic
#D03871 #BDD038 #38D097 #4B38D0
square
#D03871 #BDD038 #38D097 #4B38D0
split-complementary
#D03871 #38D04B #38BDD0
monochromatic
#731B3C #A42756 #D03871 #DC6A94 #E79BB8

Accessibility & contrast

On white

4.68
#D03871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#D03871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D03871
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D03871#FFFFFF#000000##FFFFFF
##D038711.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B6172
Deuteranopia (green-blind)
#837F6D
Tritanopia (blue-blind)
#E21C50
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #d03871;
/* rgb */ color: rgb(208, 56, 113);
/* oklch */ color: oklch(58.4% 0.192 2.7);
Tailwind
colors: {
  custom: {
    50: '#e47b99',
    500: '#d03871',
    950: '#000000',
  },
}
SCSS
$custom: #d03871;
$custom-light: #e47b99;
$custom-dark: #000000;
JSON
{
  "hex": "#d03871",
  "rgb": {
    "r": 208,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 337.5,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.58369,
    "c": 0.19214,
    "h": 2.7
  },
  "luminance": 0.1743
}

Semantic roles & 50–950 ramp

primary
#D03871
secondary
#91D3BA
accent
#E5A843
background
#FEF8F9
surface
#FDEFF2
border
#D5CACC
text
#170A0D
muted
#857C7E

Preview Lab

Preview with #D03871

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

Preview Lab → · Contrast checker → · Palette generator →

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