#D797CA#D797CA

#D797CA is a light, moderate pink. Relative luminance 0.408; OKLCH L 75.5% C 0.101 H 334.0°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#D797CA
RGBrgb(215, 151, 202)
HSLhsl(312, 44%, 72%)
HSVhsv(312, 30%, 84%)
CMYKcmyk(0%, 29.8%, 6%, 15.7%)
CIE-LABlab(70.07, 31.97, -16.60)
CIE-LCHlch(70.07, 36.02, 332.57°)
OKLaboklab(75.45% 0.0911 -0.0444)
OKLCHoklch(75.45% 0.101 334)
XYZxyz(49.7510, 40.8466, 61.1292)
Luminance0.4084 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797CA #97D7A4
analogous
#C497D7 #D797CA #D797AA
triadic
#D797CA #CAD797 #97CAD7
tetradic
#D797CA #D7C497 #97D7A4 #97AAD7
square
#D797CA #D7C497 #97D7A4 #97AAD7
split-complementary
#D797CA #AAD797 #97D7C4
monochromatic
#B0449A #C66BB3 #D797CA #E8C3E1 #F6E9F4

Accessibility & contrast

On white

2.29
#D797CA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.17
#D797CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797CA
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797CA#FFFFFF#000000##000000
##D797CA1.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#97A6CC
Deuteranopia (green-blind)
#A6AFC8
Tritanopia (blue-blind)
#DD9AA9
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d797ca;
/* rgb */ color: rgb(215, 151, 202);
/* oklch */ color: oklch(75.5% 0.101 334.0);
Tailwind
colors: {
  custom: {
    50: '#e4b6da',
    500: '#d797ca',
    950: '#000000',
  },
}
SCSS
$custom: #d797ca;
$custom-light: #e4b6da;
$custom-dark: #000000;
JSON
{
  "hex": "#d797ca",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 202
  },
  "hsl": {
    "h": 312.188,
    "s": 44.444,
    "l": 71.765
  },
  "oklch": {
    "l": 0.75453,
    "c": 0.10139,
    "h": 334
  },
  "luminance": 0.40845
}

Semantic roles & 50–950 ramp

primary
#D797CA
secondary
#DDEDE0
accent
#B84A2E
background
#FEFBFD
surface
#FCF6FA
border
#D5D0D3
text
#161114
muted
#848083

Preview Lab

Preview with #D797CA

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

Preview Lab → · Contrast checker → · Palette generator →

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