#D797EC#D797EC

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

Color values

HEX#D797EC
RGBrgb(215, 151, 236)
HSLhsl(285, 69%, 76%)
HSVhsv(285, 36%, 93%)
CMYKcmyk(8.9%, 36%, 0%, 7.5%)
CIE-LABlab(71.31, 38.37, -33.42)
CIE-LCHlch(71.31, 50.88, 318.95°)
OKLaboklab(76.8% 0.1002 -0.0917)
OKLCHoklch(76.8% 0.136 317.5)
XYZxyz(54.2291, 42.6378, 84.7139)
Luminance0.4264 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797EC #ACEC97
analogous
#AC97EC #D797EC #EC97D7
triadic
#D797EC #ECD797 #97ECD7
tetradic
#D797EC #ECAC97 #ACEC97 #97D7EC
square
#D797EC #ECAC97 #ACEC97 #97D7EC
split-complementary
#D797EC #D7EC97 #97ECAC
monochromatic
#AF30D9 #C363E3 #D797EC #EBCBF5 #F5E5FA

Accessibility & contrast

On white

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

On black

9.53
#D797EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797EC
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797EC#FFFFFF#000000##000000
##D797EC1.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BAAEF
Deuteranopia (green-blind)
#9AB1E9
Tritanopia (blue-blind)
#D7A1B7
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d797ec;
/* rgb */ color: rgb(215, 151, 236);
/* oklch */ color: oklch(76.8% 0.136 317.5);
Tailwind
colors: {
  custom: {
    50: '#e4b6f2',
    500: '#d797ec',
    950: '#000000',
  },
}
SCSS
$custom: #d797ec;
$custom-light: #e4b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d797ec",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 285.176,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.76804,
    "c": 0.13583,
    "h": 317.5
  },
  "luminance": 0.42636
}

Semantic roles & 50–950 ramp

primary
#D797EC
secondary
#DFF2D9
accent
#D11443
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D797EC

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

Preview Lab → · Contrast checker → · Palette generator →

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