#E797F9#E797F9

#E797F9 is a light, vivid purple. Relative luminance 0.460; OKLCH L 79.0% C 0.158 H 320.1°. Best body text is #000000 at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#E797F9
RGBrgb(231, 151, 249)
HSLhsl(289, 89%, 78%)
HSVhsv(289, 39%, 98%)
CMYKcmyk(7.2%, 39.4%, 0%, 2.4%)
CIE-LABlab(73.52, 45.70, -36.93)
CIE-LCHlch(73.52, 58.76, 321.05°)
OKLaboklab(79.02% 0.1212 -0.1014)
OKLCHoklch(79.02% 0.158 320.1)
XYZxyz(61.1183, 45.9637, 95.2565)
Luminance0.4596 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E797F9 #A9F997
analogous
#B697F9 #E797F9 #F997DA
triadic
#E797F9 #F9E797 #97F9E7
tetradic
#E797F9 #F9B697 #A9F997 #97DAF9
square
#E797F9 #F9B697 #A9F997 #97DAF9
split-complementary
#E797F9 #DAF997 #97F9B6
monochromatic
#CC23F2 #DA5DF6 #E797F9 #F4D1FC #F8E2FD

Accessibility & contrast

On white

2.06
#E797F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.19
#E797F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E797F9
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E797F9#FFFFFF#000000##000000
##E797F91.002.0610.1910.19
#FFFFFF2.061.0021.0021.00
#00000010.1921.001.001.00
##00000010.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AAFFD
Deuteranopia (green-blind)
#9EB8F6
Tritanopia (blue-blind)
#E8A3BC
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #e797f9;
/* rgb */ color: rgb(231, 151, 249);
/* oklch */ color: oklch(79.0% 0.158 320.1);
Tailwind
colors: {
  custom: {
    50: '#f0b7fb',
    500: '#e797f9',
    950: '#000000',
  },
}
SCSS
$custom: #e797f9;
$custom-light: #f0b7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#e797f9",
  "rgb": {
    "r": 231,
    "g": 151,
    "b": 249
  },
  "hsl": {
    "h": 288.98,
    "s": 89.091,
    "l": 78.431
  },
  "oklch": {
    "l": 0.79023,
    "c": 0.15808,
    "h": 320.1
  },
  "luminance": 0.45962
}

Semantic roles & 50–950 ramp

primary
#E797F9
secondary
#DBF5D6
accent
#E6002A
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #E797F9

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

Preview Lab → · Contrast checker → · Palette generator →

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