#D0317F#D0317F

#D0317F is a mid, highly saturated pink. Relative luminance 0.171; OKLCH L 58.2% C 0.204 H 355.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#D0317F
RGBrgb(208, 49, 127)
HSLhsl(331, 63%, 50%)
HSVhsv(331, 76%, 82%)
CMYKcmyk(0%, 76.4%, 38.9%, 18.4%)
CIE-LABlab(48.44, 66.21, -5.82)
CIE-LCHlch(48.44, 66.46, 354.98°)
OKLaboklab(58.24% 0.2035 -0.0145)
OKLCHoklch(58.24% 0.204 355.9)
XYZxyz(30.9437, 17.1427, 21.7540)
Luminance0.1714 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D0317F #31D082
analogous
#D031CF #D0317F #D03231
triadic
#D0317F #7FD031 #317FD0
tetradic
#D0317F #CFD031 #31D082 #3231D0
square
#D0317F #CFD031 #31D082 #3231D0
split-complementary
#D0317F #31D032 #31CFD0
monochromatic
#6E1943 #9F2461 #D0317F #DB639E #E795BD

Accessibility & contrast

On white

4.74
#D0317F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#D0317F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D0317F
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D0317F#FFFFFF#000000##FFFFFF
##D0317F1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526081
Deuteranopia (green-blind)
#7E7E7B
Tritanopia (blue-blind)
#E11A54
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #d0317f;
/* rgb */ color: rgb(208, 49, 127);
/* oklch */ color: oklch(58.2% 0.204 355.9);
Tailwind
colors: {
  custom: {
    50: '#e479a4',
    500: '#d0317f',
    950: '#000000',
  },
}
SCSS
$custom: #d0317f;
$custom-light: #e479a4;
$custom-dark: #000000;
JSON
{
  "hex": "#d0317f",
  "rgb": {
    "r": 208,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 330.566,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5824,
    "c": 0.204,
    "h": 355.9
  },
  "luminance": 0.17139
}

Semantic roles & 50–950 ramp

primary
#D0317F
secondary
#8BD2AF
accent
#E69542
background
#FEF7FA
surface
#FDEEF3
border
#D5C9CD
text
#170A0F
muted
#857C7F

Preview Lab

Preview with #D0317F

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

Preview Lab → · Contrast checker → · Palette generator →

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