#D798CC#D798CC

#D798CC is a light, moderate pink. Relative luminance 0.413; OKLCH L 75.7% C 0.101 H 332.8°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#D798CC
RGBrgb(215, 152, 204)
HSLhsl(310, 44%, 72%)
HSVhsv(310, 29%, 84%)
CMYKcmyk(0%, 29.3%, 5.1%, 15.7%)
CIE-LABlab(70.36, 31.79, -17.26)
CIE-LCHlch(70.36, 36.17, 331.50°)
OKLaboklab(75.7% 0.0902 -0.0463)
OKLCHoklch(75.7% 0.101 332.8)
XYZxyz(50.1510, 41.2651, 62.4383)
Luminance0.4126 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798CC #98D7A3
analogous
#C398D7 #D798CC #D798AD
triadic
#D798CC #CCD798 #98CCD7
tetradic
#D798CC #D7C398 #98D7A3 #98ADD7
square
#D798CC #D7C398 #98D7A3 #98ADD7
split-complementary
#D798CC #ADD798 #98D7C3
monochromatic
#B0449D #C66CB6 #D798CC #E8C4E2 #F6E9F4

Accessibility & contrast

On white

2.27
#D798CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#D798CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798CC
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798CC#FFFFFF#000000##000000
##D798CC1.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#97A7CE
Deuteranopia (green-blind)
#A6AFCA
Tritanopia (blue-blind)
#DD9BAA
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d798cc;
/* rgb */ color: rgb(215, 152, 204);
/* oklch */ color: oklch(75.7% 0.101 332.8);
Tailwind
colors: {
  custom: {
    50: '#e4b7db',
    500: '#d798cc',
    950: '#000000',
  },
}
SCSS
$custom: #d798cc;
$custom-light: #e4b7db;
$custom-dark: #000000;
JSON
{
  "hex": "#d798cc",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 204
  },
  "hsl": {
    "h": 310.476,
    "s": 44.056,
    "l": 71.961
  },
  "oklch": {
    "l": 0.75698,
    "c": 0.10139,
    "h": 332.8
  },
  "luminance": 0.41263
}

Semantic roles & 50–950 ramp

primary
#D798CC
secondary
#DEEDE0
accent
#B7462E
background
#FEFBFD
surface
#FCF6FB
border
#D5D0D4
text
#161115
muted
#848083

Preview Lab

Preview with #D798CC

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

Preview Lab → · Contrast checker → · Palette generator →

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