#D1397F#D1397F

#D1397F is a mid, vivid pink. Relative luminance 0.180; OKLCH L 59.1% C 0.197 H 357.0°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#D1397F
RGBrgb(209, 57, 127)
HSLhsl(332, 62%, 52%)
HSVhsv(332, 73%, 82%)
CMYKcmyk(0%, 72.7%, 39.2%, 18%)
CIE-LABlab(49.52, 63.94, -4.20)
CIE-LCHlch(49.52, 64.08, 356.24°)
OKLaboklab(59.06% 0.1963 -0.0102)
OKLCHoklch(59.06% 0.197 357)
XYZxyz(31.5906, 18.0178, 21.8888)
Luminance0.1801 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1397F #39D18B
analogous
#D139CB #D1397F #D13F39
triadic
#D1397F #7FD139 #397FD1
tetradic
#D1397F #CBD139 #39D18B #3F39D1
square
#D1397F #CBD139 #39D18B #3F39D1
split-complementary
#D1397F #39D13F #39CBD1
monochromatic
#751B44 #A62761 #D1397F #DD6B9F #E89CBF

Accessibility & contrast

On white

4.56
#D1397F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#D1397F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D1397F
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1397F#FFFFFF#000000##000000
##D1397F1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#586481
Deuteranopia (green-blind)
#81807C
Tritanopia (blue-blind)
#E22657
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #d1397f;
/* rgb */ color: rgb(209, 57, 127);
/* oklch */ color: oklch(59.1% 0.197 357.0);
Tailwind
colors: {
  custom: {
    50: '#e47ca4',
    500: '#d1397f',
    950: '#000000',
  },
}
SCSS
$custom: #d1397f;
$custom-light: #e47ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#d1397f",
  "rgb": {
    "r": 209,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 332.368,
    "s": 62.295,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59064,
    "c": 0.19653,
    "h": 357
  },
  "luminance": 0.18014
}

Semantic roles & 50–950 ramp

primary
#D1397F
secondary
#92D4B6
accent
#E59A42
background
#FEF8FA
surface
#FDEFF3
border
#D5CACD
text
#170A0F
muted
#857C7F

Preview Lab

Preview with #D1397F

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

Preview Lab → · Contrast checker → · Palette generator →

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