#E797DC#E797DC

#E797DC is a light, vivid purple. Relative luminance 0.443; OKLCH L 77.8% C 0.130 H 331.7°. Best body text is #000000 at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#E797DC
RGBrgb(231, 151, 220)
HSLhsl(308, 63%, 75%)
HSVhsv(308, 35%, 91%)
CMYKcmyk(0%, 34.6%, 4.8%, 9.4%)
CIE-LABlab(72.42, 40.36, -22.79)
CIE-LCHlch(72.42, 46.35, 330.55°)
OKLaboklab(77.83% 0.1144 -0.0614)
OKLCHoklch(77.83% 0.13 331.7)
XYZxyz(56.9392, 44.2920, 73.2462)
Luminance0.4429 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E797DC #97E7A2
analogous
#CA97E7 #E797DC #E797B4
triadic
#E797DC #DCE797 #97DCE7
tetradic
#E797DC #E7CA97 #97E7A2 #97B4E7
square
#E797DC #E7CA97 #97E7A2 #97B4E7
split-complementary
#E797DC #B4E797 #97E7CA
monochromatic
#D034BB #DC65CB #E797DC #F2C9ED #F9E6F7

Accessibility & contrast

On white

2.13
#E797DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.86
#E797DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E797DC
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E797DC#FFFFFF#000000##000000
##E797DC1.002.139.869.86
#FFFFFF2.131.0021.0021.00
#0000009.8621.001.001.00
##0000009.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#95ABDF
Deuteranopia (green-blind)
#A9B6D9
Tritanopia (blue-blind)
#EE9CB0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #e797dc;
/* rgb */ color: rgb(231, 151, 220);
/* oklch */ color: oklch(77.8% 0.130 331.7);
Tailwind
colors: {
  custom: {
    50: '#f0b7e7',
    500: '#e797dc',
    950: '#000000',
  },
}
SCSS
$custom: #e797dc;
$custom-light: #f0b7e7;
$custom-dark: #000000;
JSON
{
  "hex": "#e797dc",
  "rgb": {
    "r": 231,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 308.25,
    "s": 62.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.77833,
    "c": 0.12982,
    "h": 331.7
  },
  "luminance": 0.44289
}

Semantic roles & 50–950 ramp

primary
#E797DC
secondary
#DAF1DD
accent
#CA331B
background
#FEFBFE
surface
#FDF6FC
border
#D5D0D5
text
#171116
muted
#858084

Preview Lab

Preview with #E797DC

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

Preview Lab → · Contrast checker → · Palette generator →

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