#E797DF#E797DF

#E797DF is a light, vivid purple. Relative luminance 0.445; OKLCH L 77.9% C 0.133 H 330.3°. Best body text is #000000 at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#E797DF
RGBrgb(231, 151, 223)
HSLhsl(306, 63%, 75%)
HSVhsv(306, 35%, 91%)
CMYKcmyk(0%, 34.6%, 3.5%, 9.4%)
CIE-LABlab(72.53, 40.89, -24.27)
CIE-LCHlch(72.53, 47.55, 329.31°)
OKLaboklab(77.95% 0.1152 -0.0656)
OKLCHoklch(77.95% 0.133 330.3)
XYZxyz(57.3400, 44.4524, 75.3575)
Luminance0.4445 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E797DF #97E79F
analogous
#C797E7 #E797DF #E797B7
triadic
#E797DF #DFE797 #97DFE7
tetradic
#E797DF #E7C797 #97E79F #97B7E7
square
#E797DF #E7C797 #97E79F #97B7E7
split-complementary
#E797DF #B7E797 #97E7C7
monochromatic
#D034C0 #DC65D0 #E797DF #F2C9EE #F9E6F7

Accessibility & contrast

On white

2.12
#E797DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.89
#E797DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E797DF
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E797DF#FFFFFF#000000##000000
##E797DF1.002.129.899.89
#FFFFFF2.121.0021.0021.00
#0000009.8921.001.001.00
##0000009.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#94ABE2
Deuteranopia (green-blind)
#A8B6DC
Tritanopia (blue-blind)
#ED9CB1
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #e797df;
/* rgb */ color: rgb(231, 151, 223);
/* oklch */ color: oklch(77.9% 0.133 330.3);
Tailwind
colors: {
  custom: {
    50: '#f0b7e9',
    500: '#e797df',
    950: '#000000',
  },
}
SCSS
$custom: #e797df;
$custom-light: #f0b7e9;
$custom-dark: #000000;
JSON
{
  "hex": "#e797df",
  "rgb": {
    "r": 231,
    "g": 151,
    "b": 223
  },
  "hsl": {
    "h": 306,
    "s": 62.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.77948,
    "c": 0.13253,
    "h": 330.3
  },
  "luminance": 0.4445
}

Semantic roles & 50–950 ramp

primary
#E797DF
secondary
#DAF1DD
accent
#CA2D1B
background
#FEFBFE
surface
#FDF6FC
border
#D5D0D5
text
#171116
muted
#858084

Preview Lab

Preview with #E797DF

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

Preview Lab → · Contrast checker → · Palette generator →

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