#D1397B#D1397B

#D1397B is a mid, vivid pink. Relative luminance 0.179; OKLCH L 58.9% C 0.195 H 358.7°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#D1397B
RGBrgb(209, 57, 123)
HSLhsl(334, 62%, 52%)
HSVhsv(334, 73%, 82%)
CMYKcmyk(0%, 72.7%, 41.1%, 18%)
CIE-LABlab(49.39, 63.54, -1.96)
CIE-LCHlch(49.39, 63.57, 358.23°)
OKLaboklab(58.93% 0.195 -0.0044)
OKLCHoklch(58.93% 0.195 358.7)
XYZxyz(31.3350, 17.9156, 20.5430)
Luminance0.1791 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1397B #39D18F
analogous
#D139C7 #D1397B #D14339
triadic
#D1397B #7BD139 #397BD1
tetradic
#D1397B #C7D139 #39D18F #4339D1
square
#D1397B #C7D139 #39D18F #4339D1
split-complementary
#D1397B #39D143 #39C7D1
monochromatic
#751B42 #A6275E #D1397B #DD6B9C #E89CBD

Accessibility & contrast

On white

4.58
#D1397B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#D1397B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D1397B
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1397B#FFFFFF#000000##000000
##D1397B1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d1397b;
/* rgb */ color: rgb(209, 57, 123);
/* oklch */ color: oklch(58.9% 0.195 358.7);
Tailwind
colors: {
  custom: {
    50: '#e47ca1',
    500: '#d1397b',
    950: '#000000',
  },
}
SCSS
$custom: #d1397b;
$custom-light: #e47ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#d1397b",
  "rgb": {
    "r": 209,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 333.947,
    "s": 62.295,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58932,
    "c": 0.19506,
    "h": 358.7
  },
  "luminance": 0.17912
}

Semantic roles & 50–950 ramp

primary
#D1397B
secondary
#92D4B7
accent
#E59F42
background
#FEF8F9
surface
#FDEFF2
border
#D5CACC
text
#170A0E
muted
#857C7E

Preview Lab

Preview with #D1397B

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

Preview Lab → · Contrast checker → · Palette generator →

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