#D797D2#D797D2

#D797D2 is a light, moderate purple. Relative luminance 0.412; OKLCH L 75.8% C 0.109 H 329.3°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#D797D2
RGBrgb(215, 151, 210)
HSLhsl(305, 44%, 72%)
HSVhsv(305, 30%, 84%)
CMYKcmyk(0%, 29.8%, 2.3%, 15.7%)
CIE-LABlab(70.34, 33.41, -20.61)
CIE-LCHlch(70.34, 39.25, 328.33°)
OKLaboklab(75.75% 0.0935 -0.0556)
OKLCHoklch(75.75% 0.109 329.3)
XYZxyz(50.7229, 41.2353, 66.2476)
Luminance0.4123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797D2 #97D79C
analogous
#BC97D7 #D797D2 #D797B2
triadic
#D797D2 #D2D797 #97D2D7
tetradic
#D797D2 #D7BC97 #97D79C #97B2D7
square
#D797D2 #D7BC97 #97D79C #97B2D7
split-complementary
#D797D2 #B2D797 #97D7BC
monochromatic
#B044A7 #C66BBF #D797D2 #E8C3E5 #F6E9F5

Accessibility & contrast

On white

2.27
#D797D2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#D797D2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797D2
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797D2#FFFFFF#000000##000000
##D797D21.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#94A7D4
Deuteranopia (green-blind)
#A4AFD0
Tritanopia (blue-blind)
#DC9BAC
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d797d2;
/* rgb */ color: rgb(215, 151, 210);
/* oklch */ color: oklch(75.8% 0.109 329.3);
Tailwind
colors: {
  custom: {
    50: '#e4b6e0',
    500: '#d797d2',
    950: '#000000',
  },
}
SCSS
$custom: #d797d2;
$custom-light: #e4b6e0;
$custom-dark: #000000;
JSON
{
  "hex": "#d797d2",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 210
  },
  "hsl": {
    "h": 304.688,
    "s": 44.444,
    "l": 71.765
  },
  "oklch": {
    "l": 0.7575,
    "c": 0.10878,
    "h": 329.3
  },
  "luminance": 0.41233
}

Semantic roles & 50–950 ramp

primary
#D797D2
secondary
#DDEDDE
accent
#B8392E
background
#FEFBFD
surface
#FCF6FB
border
#D5D0D4
text
#161115
muted
#848083

Preview Lab

Preview with #D797D2

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

Preview Lab → · Contrast checker → · Palette generator →

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