#D797EB#D797EB

#D797EB is a light, vivid purple. Relative luminance 0.426; OKLCH L 76.8% C 0.135 H 317.9°. Best body text is #000000 at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#D797EB
RGBrgb(215, 151, 235)
HSLhsl(286, 68%, 76%)
HSVhsv(286, 36%, 92%)
CMYKcmyk(8.5%, 35.7%, 0%, 7.8%)
CIE-LABlab(71.27, 38.17, -32.93)
CIE-LCHlch(71.27, 50.41, 319.22°)
OKLaboklab(76.76% 0.1 -0.0903)
OKLCHoklch(76.76% 0.135 317.9)
XYZxyz(54.0842, 42.5798, 83.9508)
Luminance0.4258 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797EB #ABEB97
analogous
#AD97EB #D797EB #EB97D5
triadic
#D797EB #EBD797 #97EBD7
tetradic
#D797EB #EBAD97 #ABEB97 #97D5EB
square
#D797EB #EBAD97 #ABEB97 #97D5EB
split-complementary
#D797EB #D5EB97 #97EBAD
monochromatic
#B030D7 #C364E1 #D797EB #EBCAF5 #F5E5FA

Accessibility & contrast

On white

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

On black

9.52
#D797EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797EB
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797EB#FFFFFF#000000##000000
##D797EB1.002.219.529.52
#FFFFFF2.211.0021.0021.00
#0000009.5221.001.001.00
##0000009.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d797eb;
/* rgb */ color: rgb(215, 151, 235);
/* oklch */ color: oklch(76.8% 0.135 317.9);
Tailwind
colors: {
  custom: {
    50: '#e4b6f1',
    500: '#d797eb',
    950: '#000000',
  },
}
SCSS
$custom: #d797eb;
$custom-light: #e4b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d797eb",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 285.714,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.76761,
    "c": 0.13473,
    "h": 317.9
  },
  "luminance": 0.42578
}

Semantic roles & 50–950 ramp

primary
#D797EB
secondary
#DFF2D9
accent
#D01642
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D797EB

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

Preview Lab → · Contrast checker → · Palette generator →

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