#D797CF#D797CF

#D797CF is a light, moderate purple. Relative luminance 0.411; OKLCH L 75.6% C 0.106 H 331.0°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#D797CF
RGBrgb(215, 151, 207)
HSLhsl(308, 44%, 72%)
HSVhsv(308, 30%, 84%)
CMYKcmyk(0%, 29.8%, 3.7%, 15.7%)
CIE-LABlab(70.24, 32.86, -19.11)
CIE-LCHlch(70.24, 38.01, 329.82°)
OKLaboklab(75.64% 0.0926 -0.0514)
OKLCHoklch(75.64% 0.106 331)
XYZxyz(50.3526, 41.0872, 64.2977)
Luminance0.4108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797CF #97D79F
analogous
#BF97D7 #D797CF #D797AF
triadic
#D797CF #CFD797 #97CFD7
tetradic
#D797CF #D7BF97 #97D79F #97AFD7
square
#D797CF #D7BF97 #97D79F #97AFD7
split-complementary
#D797CF #AFD797 #97D7BF
monochromatic
#B044A2 #C66BBB #D797CF #E8C3E3 #F6E9F5

Accessibility & contrast

On white

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

On black

9.22
#D797CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797CF
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797CF#FFFFFF#000000##000000
##D797CF1.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#95A6D1
Deuteranopia (green-blind)
#A4AFCD
Tritanopia (blue-blind)
#DC9BAB
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d797cf;
/* rgb */ color: rgb(215, 151, 207);
/* oklch */ color: oklch(75.6% 0.106 331.0);
Tailwind
colors: {
  custom: {
    50: '#e4b6dd',
    500: '#d797cf',
    950: '#000000',
  },
}
SCSS
$custom: #d797cf;
$custom-light: #e4b6dd;
$custom-dark: #000000;
JSON
{
  "hex": "#d797cf",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 207
  },
  "hsl": {
    "h": 307.5,
    "s": 44.444,
    "l": 71.765
  },
  "oklch": {
    "l": 0.75637,
    "c": 0.10594,
    "h": 331
  },
  "luminance": 0.41085
}

Semantic roles & 50–950 ramp

primary
#D797CF
secondary
#DDEDDF
accent
#B83F2E
background
#FEFBFD
surface
#FCF6FB
border
#D5D0D4
text
#161115
muted
#848083

Preview Lab

Preview with #D797CF

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

Preview Lab → · Contrast checker → · Palette generator →

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