#D1387B#D1387B

#D1387B is a mid, vivid pink. Relative luminance 0.178; OKLCH L 58.8% C 0.196 H 358.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#D1387B
RGBrgb(209, 56, 123)
HSLhsl(334, 62%, 52%)
HSVhsv(334, 73%, 82%)
CMYKcmyk(0%, 73.2%, 41.1%, 18%)
CIE-LABlab(49.27, 63.87, -2.14)
CIE-LCHlch(49.27, 63.91, 358.08°)
OKLaboklab(58.84% 0.1961 -0.0048)
OKLCHoklch(58.84% 0.196 358.6)
XYZxyz(31.2861, 17.8177, 20.5267)
Luminance0.1781 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1387B #38D18E
analogous
#D138C8 #D1387B #D14138
triadic
#D1387B #7BD138 #387BD1
tetradic
#D1387B #C8D138 #38D18E #4138D1
square
#D1387B #C8D138 #38D18E #4138D1
split-complementary
#D1387B #38D141 #38C8D1
monochromatic
#741B42 #A6265E #D1387B #DC6A9C #E89BBD

Accessibility & contrast

On white

4.60
#D1387B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#D1387B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #D1387B
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1387B#FFFFFF#000000##FFFFFF
##D1387B1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#58637D
Deuteranopia (green-blind)
#828077
Tritanopia (blue-blind)
#E22255
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #d1387b;
/* rgb */ color: rgb(209, 56, 123);
/* oklch */ color: oklch(58.8% 0.196 358.6);
Tailwind
colors: {
  custom: {
    50: '#e47ba1',
    500: '#d1387b',
    950: '#000000',
  },
}
SCSS
$custom: #d1387b;
$custom-light: #e47ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#d1387b",
  "rgb": {
    "r": 209,
    "g": 56,
    "b": 123
  },
  "hsl": {
    "h": 333.725,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58844,
    "c": 0.19614,
    "h": 358.6
  },
  "luminance": 0.17814
}

Semantic roles & 50–950 ramp

primary
#D1387B
secondary
#91D4B7
accent
#E69E42
background
#FEF8F9
surface
#FDEFF2
border
#D5CACC
text
#170A0E
muted
#857C7E

Preview Lab

Preview with #D1387B

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

Preview Lab → · Contrast checker → · Palette generator →

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