#D797CD#D797CD

#D797CD is a light, moderate purple. Relative luminance 0.410; OKLCH L 75.6% C 0.104 H 332.2°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#D797CD
RGBrgb(215, 151, 205)
HSLhsl(309, 44%, 72%)
HSVhsv(309, 30%, 84%)
CMYKcmyk(0%, 29.8%, 4.7%, 15.7%)
CIE-LABlab(70.17, 32.50, -18.11)
CIE-LCHlch(70.17, 37.21, 330.88°)
OKLaboklab(75.56% 0.092 -0.0486)
OKLCHoklch(75.56% 0.104 332.2)
XYZxyz(50.1097, 40.9900, 63.0181)
Luminance0.4099 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797CD #97D7A1
analogous
#C197D7 #D797CD #D797AD
triadic
#D797CD #CDD797 #97CDD7
tetradic
#D797CD #D7C197 #97D7A1 #97ADD7
square
#D797CD #D7C197 #97D7A1 #97ADD7
split-complementary
#D797CD #ADD797 #97D7C1
monochromatic
#B0449F #C66BB8 #D797CD #E8C3E2 #F6E9F4

Accessibility & contrast

On white

2.28
#D797CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#D797CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797CD
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797CD#FFFFFF#000000##000000
##D797CD1.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d797cd;
/* rgb */ color: rgb(215, 151, 205);
/* oklch */ color: oklch(75.6% 0.104 332.2);
Tailwind
colors: {
  custom: {
    50: '#e4b6dc',
    500: '#d797cd',
    950: '#000000',
  },
}
SCSS
$custom: #d797cd;
$custom-light: #e4b6dc;
$custom-dark: #000000;
JSON
{
  "hex": "#d797cd",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 205
  },
  "hsl": {
    "h": 309.375,
    "s": 44.444,
    "l": 71.765
  },
  "oklch": {
    "l": 0.75563,
    "c": 0.10409,
    "h": 332.2
  },
  "luminance": 0.40988
}

Semantic roles & 50–950 ramp

primary
#D797CD
secondary
#DDEDDF
accent
#B8432E
background
#FEFBFD
surface
#FCF6FB
border
#D5D0D4
text
#161115
muted
#848083

Preview Lab

Preview with #D797CD

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

Preview Lab → · Contrast checker → · Palette generator →

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