#D797EF#D797EF

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

Color values

HEX#D797EF
RGBrgb(215, 151, 239)
HSLhsl(284, 73%, 76%)
HSVhsv(284, 37%, 94%)
CMYKcmyk(10%, 36.8%, 0%, 6.3%)
CIE-LABlab(71.43, 38.97, -34.87)
CIE-LCHlch(71.43, 52.29, 318.18°)
OKLaboklab(76.93% 0.1009 -0.0958)
OKLCHoklch(76.93% 0.139 316.5)
XYZxyz(54.6686, 42.8136, 87.0286)
Luminance0.4281 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797EF #AFEF97
analogous
#AB97EF #D797EF #EF97DB
triadic
#D797EF #EFD797 #97EFD7
tetradic
#D797EF #EFAB97 #AFEF97 #97DBEF
square
#D797EF #EFAB97 #AFEF97 #97DBEF
split-complementary
#D797EF #DBEF97 #97EFAB
monochromatic
#AE2DDF #C362E7 #D797EF #EBCCF7 #F5E4FB

Accessibility & contrast

On white

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

On black

9.56
#D797EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797EF
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797EF#FFFFFF#000000##000000
##D797EF1.002.209.569.56
#FFFFFF2.201.0021.0021.00
#0000009.5621.001.001.00
##0000009.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AABF2
Deuteranopia (green-blind)
#99B1EC
Tritanopia (blue-blind)
#D6A2B8
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d797ef;
/* rgb */ color: rgb(215, 151, 239);
/* oklch */ color: oklch(76.9% 0.139 316.5);
Tailwind
colors: {
  custom: {
    50: '#e4b6f4',
    500: '#d797ef',
    950: '#000000',
  },
}
SCSS
$custom: #d797ef;
$custom-light: #e4b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d797ef",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 283.636,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.76934,
    "c": 0.13916,
    "h": 316.5
  },
  "luminance": 0.42812
}

Semantic roles & 50–950 ramp

primary
#D797EF
secondary
#E0F3D8
accent
#D51046
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D797EF

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

Preview Lab → · Contrast checker → · Palette generator →

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