#D04271#D04271

#D04271 is a mid, vivid pink. Relative luminance 0.185; OKLCH L 59.3% C 0.181 H 4.3°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#D04271
RGBrgb(208, 66, 113)
HSLhsl(340, 60%, 54%)
HSVhsv(340, 68%, 82%)
CMYKcmyk(0%, 68.3%, 45.7%, 18.4%)
CIE-LABlab(50.10, 59.05, 5.10)
CIE-LCHlch(50.10, 59.27, 4.93°)
OKLaboklab(59.33% 0.1804 0.0137)
OKLCHoklch(59.33% 0.181 4.3)
XYZxyz(30.9437, 18.5025, 17.5614)
Luminance0.1850 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D04271 #42D0A1
analogous
#D042B8 #D04271 #D05A42
triadic
#D04271 #71D042 #4271D0
tetradic
#D04271 #B8D042 #42D0A1 #5A42D0
square
#D04271 #B8D042 #42D0A1 #5A42D0
split-complementary
#D04271 #42D05A #42B8D0
monochromatic
#791E3C #AA2A55 #D04271 #DC7396 #E8A4BB

Accessibility & contrast

On white

4.47
#D04271 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#D04271 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D04271
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D04271#FFFFFF#000000##000000
##D042711.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#616572
Deuteranopia (green-blind)
#87816E
Tritanopia (blue-blind)
#E22C55
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #d04271;
/* rgb */ color: rgb(208, 66, 113);
/* oklch */ color: oklch(59.3% 0.181 4.3);
Tailwind
colors: {
  custom: {
    50: '#e48099',
    500: '#d04271',
    950: '#000000',
  },
}
SCSS
$custom: #d04271;
$custom-light: #e48099;
$custom-dark: #000000;
JSON
{
  "hex": "#d04271",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 340.141,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.59327,
    "c": 0.18094,
    "h": 4.3
  },
  "luminance": 0.18499
}

Semantic roles & 50–950 ramp

primary
#D04271
secondary
#99D5C1
accent
#E3AF44
background
#FEF8F9
surface
#FDEFF2
border
#D5CACC
text
#170B0D
muted
#857C7E

Preview Lab

Preview with #D04271

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

Preview Lab → · Contrast checker → · Palette generator →

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