#D797CC#D797CC

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

Color values

HEX#D797CC
RGBrgb(215, 151, 204)
HSLhsl(310, 44%, 72%)
HSVhsv(310, 30%, 84%)
CMYKcmyk(0%, 29.8%, 5.1%, 15.7%)
CIE-LABlab(70.14, 32.33, -17.60)
CIE-LCHlch(70.14, 36.81, 331.43°)
OKLaboklab(75.53% 0.0917 -0.0472)
OKLCHoklch(75.53% 0.103 332.8)
XYZxyz(49.9893, 40.9419, 62.3844)
Luminance0.4094 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797CC #97D7A2
analogous
#C297D7 #D797CC #D797AC
triadic
#D797CC #CCD797 #97CCD7
tetradic
#D797CC #D7C297 #97D7A2 #97ACD7
square
#D797CC #D7C297 #97D7A2 #97ACD7
split-complementary
#D797CC #ACD797 #97D7C2
monochromatic
#B0449D #C66BB6 #D797CC #E8C3E2 #F6E9F4

Accessibility & contrast

On white

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

On black

9.19
#D797CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797CC
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797CC#FFFFFF#000000##000000
##D797CC1.002.299.199.19
#FFFFFF2.291.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#96A6CE
Deuteranopia (green-blind)
#A5AFCA
Tritanopia (blue-blind)
#DD9AAA
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d797cc;
/* rgb */ color: rgb(215, 151, 204);
/* oklch */ color: oklch(75.5% 0.103 332.8);
Tailwind
colors: {
  custom: {
    50: '#e4b6db',
    500: '#d797cc',
    950: '#000000',
  },
}
SCSS
$custom: #d797cc;
$custom-light: #e4b6db;
$custom-dark: #000000;
JSON
{
  "hex": "#d797cc",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 204
  },
  "hsl": {
    "h": 310.313,
    "s": 44.444,
    "l": 71.765
  },
  "oklch": {
    "l": 0.75526,
    "c": 0.10318,
    "h": 332.8
  },
  "luminance": 0.4094
}

Semantic roles & 50–950 ramp

primary
#D797CC
secondary
#DDEDE0
accent
#B8462E
background
#FEFBFD
surface
#FCF6FB
border
#D5D0D4
text
#161115
muted
#848083

Preview Lab

Preview with #D797CC

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

Preview Lab → · Contrast checker → · Palette generator →

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