#D797CB#D797CB

#D797CB is a light, moderate pink. Relative luminance 0.409; OKLCH L 75.5% C 0.102 H 333.4°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#D797CB
RGBrgb(215, 151, 203)
HSLhsl(311, 44%, 72%)
HSVhsv(311, 30%, 84%)
CMYKcmyk(0%, 29.8%, 5.6%, 15.7%)
CIE-LABlab(70.10, 32.15, -17.10)
CIE-LCHlch(70.10, 36.41, 331.99°)
OKLaboklab(75.49% 0.0914 -0.0458)
OKLCHoklch(75.49% 0.102 333.4)
XYZxyz(49.8698, 40.8941, 61.7548)
Luminance0.4089 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797CB #97D7A3
analogous
#C397D7 #D797CB #D797AB
triadic
#D797CB #CBD797 #97CBD7
tetradic
#D797CB #D7C397 #97D7A3 #97ABD7
square
#D797CB #D7C397 #97D7A3 #97ABD7
split-complementary
#D797CB #ABD797 #97D7C3
monochromatic
#B0449C #C66BB5 #D797CB #E8C3E1 #F6E9F4

Accessibility & contrast

On white

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

On black

9.18
#D797CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797CB
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797CB#FFFFFF#000000##000000
##D797CB1.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#96A6CD
Deuteranopia (green-blind)
#A6AFC9
Tritanopia (blue-blind)
#DD9AA9
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d797cb;
/* rgb */ color: rgb(215, 151, 203);
/* oklch */ color: oklch(75.5% 0.102 333.4);
Tailwind
colors: {
  custom: {
    50: '#e4b6db',
    500: '#d797cb',
    950: '#000000',
  },
}
SCSS
$custom: #d797cb;
$custom-light: #e4b6db;
$custom-dark: #000000;
JSON
{
  "hex": "#d797cb",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 203
  },
  "hsl": {
    "h": 311.25,
    "s": 44.444,
    "l": 71.765
  },
  "oklch": {
    "l": 0.75489,
    "c": 0.10228,
    "h": 333.4
  },
  "luminance": 0.40892
}

Semantic roles & 50–950 ramp

primary
#D797CB
secondary
#DDEDE0
accent
#B8482E
background
#FEFBFD
surface
#FCF6FA
border
#D5D0D3
text
#161115
muted
#848083

Preview Lab

Preview with #D797CB

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

Preview Lab → · Contrast checker → · Palette generator →

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