#D8417C#D8417C

#D8417C is a mid, vivid pink. Relative luminance 0.198; OKLCH L 60.8% C 0.192 H 0.9°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#D8417C
RGBrgb(216, 65, 124)
HSLhsl(337, 66%, 55%)
HSVhsv(337, 70%, 85%)
CMYKcmyk(0%, 69.9%, 42.6%, 15.3%)
CIE-LABlab(51.65, 62.80, 0.89)
CIE-LCHlch(51.65, 62.80, 0.81°)
OKLaboklab(60.83% 0.1924 0.003)
OKLCHoklch(60.83% 0.192 0.9)
XYZxyz(33.8498, 19.8390, 21.1117)
Luminance0.1983 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8417C #41D89D
analogous
#D841C8 #D8417C #D85141
triadic
#D8417C #7CD841 #417CD8
tetradic
#D8417C #C8D841 #41D89D #5141D8
square
#D8417C #C8D841 #41D89D #5141D8
split-complementary
#D8417C #41D851 #41C8D8
monochromatic
#841B44 #B6255E #D8417C #E2749F #EDA7C2

Accessibility & contrast

On white

4.23
#D8417C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#D8417C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D8417C
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8417C#FFFFFF#000000##000000
##D8417C1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#61697D
Deuteranopia (green-blind)
#898678
Tritanopia (blue-blind)
#EA2C59
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d8417c;
/* rgb */ color: rgb(216, 65, 124);
/* oklch */ color: oklch(60.8% 0.192 0.9);
Tailwind
colors: {
  custom: {
    50: '#e980a1',
    500: '#d8417c',
    950: '#000000',
  },
}
SCSS
$custom: #d8417c;
$custom-light: #e980a1;
$custom-dark: #000000;
JSON
{
  "hex": "#d8417c",
  "rgb": {
    "r": 216,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 336.556,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60835,
    "c": 0.19243,
    "h": 0.9
  },
  "luminance": 0.19835
}

Semantic roles & 50–950 ramp

primary
#D8417C
secondary
#9BDAC1
accent
#E9A63F
background
#FFF8F9
surface
#FEEFF2
border
#D6CACC
text
#170B0F
muted
#857C7E

Preview Lab

Preview with #D8417C

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

Preview Lab → · Contrast checker → · Palette generator →

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