#D797CE#D797CE

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

Color values

HEX#D797CE
RGBrgb(215, 151, 206)
HSLhsl(308, 44%, 72%)
HSVhsv(308, 30%, 84%)
CMYKcmyk(0%, 29.8%, 4.2%, 15.7%)
CIE-LABlab(70.20, 32.68, -18.61)
CIE-LCHlch(70.20, 37.61, 330.35°)
OKLaboklab(75.6% 0.0923 -0.05)
OKLCHoklch(75.6% 0.105 331.6)
XYZxyz(50.2308, 41.0385, 63.6558)
Luminance0.4104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797CE #97D7A0
analogous
#C097D7 #D797CE #D797AE
triadic
#D797CE #CED797 #97CED7
tetradic
#D797CE #D7C097 #97D7A0 #97AED7
square
#D797CE #D7C097 #97D7A0 #97AED7
split-complementary
#D797CE #AED797 #97D7C0
monochromatic
#B044A1 #C66BB9 #D797CE #E8C3E3 #F6E9F5

Accessibility & contrast

On white

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

On black

9.21
#D797CE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797CE
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797CE#FFFFFF#000000##000000
##D797CE1.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#96A6D0
Deuteranopia (green-blind)
#A5AFCC
Tritanopia (blue-blind)
#DC9BAB
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d797ce;
/* rgb */ color: rgb(215, 151, 206);
/* oklch */ color: oklch(75.6% 0.105 331.6);
Tailwind
colors: {
  custom: {
    50: '#e4b6dd',
    500: '#d797ce',
    950: '#000000',
  },
}
SCSS
$custom: #d797ce;
$custom-light: #e4b6dd;
$custom-dark: #000000;
JSON
{
  "hex": "#d797ce",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 206
  },
  "hsl": {
    "h": 308.438,
    "s": 44.444,
    "l": 71.765
  },
  "oklch": {
    "l": 0.756,
    "c": 0.10501,
    "h": 331.6
  },
  "luminance": 0.41037
}

Semantic roles & 50–950 ramp

primary
#D797CE
secondary
#DDEDDF
accent
#B8412E
background
#FEFBFD
surface
#FCF6FB
border
#D5D0D4
text
#161115
muted
#848083

Preview Lab

Preview with #D797CE

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

Preview Lab → · Contrast checker → · Palette generator →

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