#D797EE#D797EE

#D797EE is a light, vivid purple. Relative luminance 0.428; OKLCH L 76.9% C 0.138 H 316.8°. Best body text is #000000 at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#D797EE
RGBrgb(215, 151, 238)
HSLhsl(284, 72%, 76%)
HSVhsv(284, 37%, 93%)
CMYKcmyk(9.7%, 36.6%, 0%, 6.7%)
CIE-LABlab(71.39, 38.77, -34.39)
CIE-LCHlch(71.39, 51.82, 318.43°)
OKLaboklab(76.89% 0.1007 -0.0944)
OKLCHoklch(76.89% 0.138 316.8)
XYZxyz(54.5213, 42.7547, 86.2527)
Luminance0.4275 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797EE #AEEE97
analogous
#AC97EE #D797EE #EE97DA
triadic
#D797EE #EED797 #97EED7
tetradic
#D797EE #EEAC97 #AEEE97 #97DAEE
square
#D797EE #EEAC97 #AEEE97 #97DAEE
split-complementary
#D797EE #DAEE97 #97EEAC
monochromatic
#AF2EDD #C362E5 #D797EE #EBCCF7 #F5E5FB

Accessibility & contrast

On white

2.20
#D797EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.55
#D797EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797EE
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797EE#FFFFFF#000000##000000
##D797EE1.002.209.559.55
#FFFFFF2.201.0021.0021.00
#0000009.5521.001.001.00
##0000009.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AABF1
Deuteranopia (green-blind)
#9AB1EB
Tritanopia (blue-blind)
#D7A2B8
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d797ee;
/* rgb */ color: rgb(215, 151, 238);
/* oklch */ color: oklch(76.9% 0.138 316.8);
Tailwind
colors: {
  custom: {
    50: '#e4b6f4',
    500: '#d797ee',
    950: '#000000',
  },
}
SCSS
$custom: #d797ee;
$custom-light: #e4b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d797ee",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 238
  },
  "hsl": {
    "h": 284.138,
    "s": 71.901,
    "l": 76.275
  },
  "oklch": {
    "l": 0.7689,
    "c": 0.13803,
    "h": 316.8
  },
  "luminance": 0.42753
}

Semantic roles & 50–950 ramp

primary
#D797EE
secondary
#DFF2D9
accent
#D41245
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D797EE

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

Preview Lab → · Contrast checker → · Palette generator →

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