#D797EA#D797EA

#D797EA is a light, vivid purple. Relative luminance 0.425; OKLCH L 76.7% C 0.134 H 318.3°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#D797EA
RGBrgb(215, 151, 234)
HSLhsl(286, 66%, 75%)
HSVhsv(286, 35%, 92%)
CMYKcmyk(8.1%, 35.5%, 0%, 8.2%)
CIE-LABlab(71.23, 37.97, -32.44)
CIE-LCHlch(71.23, 49.95, 319.49°)
OKLaboklab(76.72% 0.0998 -0.0889)
OKLCHoklch(76.72% 0.134 318.3)
XYZxyz(53.9402, 42.5222, 83.1921)
Luminance0.4252 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797EA #AAEA97
analogous
#AD97EA #D797EA #EA97D3
triadic
#D797EA #EAD797 #97EAD7
tetradic
#D797EA #EAAD97 #AAEA97 #97D3EA
square
#D797EA #EAAD97 #AAEA97 #97D3EA
split-complementary
#D797EA #D3EA97 #97EAAD
monochromatic
#B031D5 #C364E0 #D797EA #EBCAF4 #F5E6FA

Accessibility & contrast

On white

2.21
#D797EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.50
#D797EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797EA
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797EA#FFFFFF#000000##000000
##D797EA1.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CAAED
Deuteranopia (green-blind)
#9BB1E7
Tritanopia (blue-blind)
#D7A1B6
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d797ea;
/* rgb */ color: rgb(215, 151, 234);
/* oklch */ color: oklch(76.7% 0.134 318.3);
Tailwind
colors: {
  custom: {
    50: '#e4b6f1',
    500: '#d797ea',
    950: '#000000',
  },
}
SCSS
$custom: #d797ea;
$custom-light: #e4b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d797ea",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 286.265,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.76718,
    "c": 0.13363,
    "h": 318.3
  },
  "luminance": 0.42521
}

Semantic roles & 50–950 ramp

primary
#D797EA
secondary
#DFF1DA
accent
#CE1741
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D797EA

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

Preview Lab → · Contrast checker → · Palette generator →

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