#D797DC#D797DC

#D797DC is a light, moderate purple. Relative luminance 0.417; OKLCH L 76.1% C 0.119 H 324.2°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#D797DC
RGBrgb(215, 151, 220)
HSLhsl(296, 50%, 73%)
HSVhsv(296, 31%, 86%)
CMYKcmyk(2.3%, 31.4%, 0%, 13.7%)
CIE-LABlab(70.70, 35.26, -25.58)
CIE-LCHlch(70.70, 43.56, 324.04°)
OKLaboklab(76.14% 0.0963 -0.0695)
OKLCHoklch(76.14% 0.119 324.2)
XYZxyz(52.0078, 41.7493, 73.0151)
Luminance0.4175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797DC #9CDC97
analogous
#B497DC #D797DC #DC97BE
triadic
#D797DC #DCD797 #97DCD7
tetradic
#D797DC #DCB497 #9CDC97 #97BEDC
square
#D797DC #DCB497 #9CDC97 #97BEDC
split-complementary
#D797DC #BEDC97 #97DCB4
monochromatic
#B13FBA #C569CD #D797DC #E9C5EB #F6E8F7

Accessibility & contrast

On white

2.25
#D797DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#D797DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797DC
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797DC#FFFFFF#000000##000000
##D797DC1.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91A8DF
Deuteranopia (green-blind)
#A0B0DA
Tritanopia (blue-blind)
#DA9EB0
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d797dc;
/* rgb */ color: rgb(215, 151, 220);
/* oklch */ color: oklch(76.1% 0.119 324.2);
Tailwind
colors: {
  custom: {
    50: '#e4b6e7',
    500: '#d797dc',
    950: '#000000',
  },
}
SCSS
$custom: #d797dc;
$custom-light: #e4b6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#d797dc",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 295.652,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.7614,
    "c": 0.11873,
    "h": 324.2
  },
  "luminance": 0.41748
}

Semantic roles & 50–950 ramp

primary
#D797DC
secondary
#DEEEDD
accent
#BD2933
background
#FEFBFE
surface
#FCF6FC
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D797DC

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

Preview Lab → · Contrast checker → · Palette generator →

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