#E797EB#E797EB

#E797EB is a light, vivid purple. Relative luminance 0.451; OKLCH L 78.4% C 0.144 H 325.2°. Best body text is #000000 at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#E797EB
RGBrgb(231, 151, 235)
HSLhsl(297, 68%, 76%)
HSVhsv(297, 36%, 92%)
CMYKcmyk(1.7%, 35.7%, 0%, 7.8%)
CIE-LABlab(72.97, 43.06, -30.16)
CIE-LCHlch(72.97, 52.57, 324.99°)
OKLaboklab(78.43% 0.1182 -0.0822)
OKLCHoklch(78.43% 0.144 325.2)
XYZxyz(59.0156, 45.1226, 84.1820)
Luminance0.4512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E797EB #9BEB97
analogous
#BD97EB #E797EB #EB97C5
triadic
#E797EB #EBE797 #97EBE7
tetradic
#E797EB #EBBD97 #9BEB97 #97C5EB
square
#E797EB #EBBD97 #9BEB97 #97C5EB
split-complementary
#E797EB #C5EB97 #97EBBD
monochromatic
#CF30D7 #DB64E1 #E797EB #F3CAF5 #F9E5FA

Accessibility & contrast

On white

2.09
#E797EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.02
#E797EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E797EB
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E797EB#FFFFFF#000000##000000
##E797EB1.002.0910.0210.02
#FFFFFF2.091.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#90ADEE
Deuteranopia (green-blind)
#A4B7E8
Tritanopia (blue-blind)
#EB9FB6
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #e797eb;
/* rgb */ color: rgb(231, 151, 235);
/* oklch */ color: oklch(78.4% 0.144 325.2);
Tailwind
colors: {
  custom: {
    50: '#f0b7f1',
    500: '#e797eb',
    950: '#000000',
  },
}
SCSS
$custom: #e797eb;
$custom-light: #f0b7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#e797eb",
  "rgb": {
    "r": 231,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 297.143,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.78429,
    "c": 0.14392,
    "h": 325.2
  },
  "luminance": 0.4512
}

Semantic roles & 50–950 ramp

primary
#E797EB
secondary
#DBF2D9
accent
#D0161F
background
#FEFBFE
surface
#FDF6FD
border
#D5D0D5
text
#171117
muted
#858085

Preview Lab

Preview with #E797EB

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

Preview Lab → · Contrast checker → · Palette generator →

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