#D797DB#D797DB

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

Color values

HEX#D797DB
RGBrgb(215, 151, 219)
HSLhsl(296, 49%, 73%)
HSVhsv(296, 31%, 86%)
CMYKcmyk(1.8%, 31.1%, 0%, 14.1%)
CIE-LABlab(70.66, 35.07, -25.08)
CIE-LCHlch(70.66, 43.12, 324.43°)
OKLaboklab(76.1% 0.096 -0.0681)
OKLCHoklch(76.1% 0.118 324.7)
XYZxyz(51.8758, 41.6965, 72.3197)
Luminance0.4169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797DB #9BDB97
analogous
#B597DB #D797DB #DB97BD
triadic
#D797DB #DBD797 #97DBD7
tetradic
#D797DB #DBB597 #9BDB97 #97BDDB
square
#D797DB #DBB597 #9BDB97 #97BDDB
split-complementary
#D797DB #BDDB97 #97DBB5
monochromatic
#B140B8 #C66ACB #D797DB #E8C4EB #F6E8F7

Accessibility & contrast

On white

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

On black

9.34
#D797DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797DB
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797DB#FFFFFF#000000##000000
##D797DB1.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#91A8DE
Deuteranopia (green-blind)
#A1B0D9
Tritanopia (blue-blind)
#DA9DB0
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d797db;
/* rgb */ color: rgb(215, 151, 219);
/* oklch */ color: oklch(76.1% 0.118 324.7);
Tailwind
colors: {
  custom: {
    50: '#e4b6e6',
    500: '#d797db',
    950: '#000000',
  },
}
SCSS
$custom: #d797db;
$custom-light: #e4b6e6;
$custom-dark: #000000;
JSON
{
  "hex": "#d797db",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 219
  },
  "hsl": {
    "h": 296.471,
    "s": 48.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.761,
    "c": 0.11771,
    "h": 324.7
  },
  "luminance": 0.41695
}

Semantic roles & 50–950 ramp

primary
#D797DB
secondary
#DEEEDD
accent
#BC2A32
background
#FEFBFE
surface
#FCF6FC
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D797DB

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

Preview Lab → · Contrast checker → · Palette generator →

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