#E797FE#E797FE

#E797FE is a light, vivid purple. Relative luminance 0.463; OKLCH L 79.2% C 0.163 H 318.5°. Best body text is #000000 at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#E797FE
RGBrgb(231, 151, 254)
HSLhsl(287, 98%, 79%)
HSVhsv(287, 41%, 100%)
CMYKcmyk(9.1%, 40.6%, 0%, 0.4%)
CIE-LABlab(73.73, 46.67, -39.33)
CIE-LCHlch(73.73, 61.03, 319.88°)
OKLaboklab(79.24% 0.1222 -0.1083)
OKLCHoklch(79.24% 0.163 318.5)
XYZxyz(61.9086, 46.2798, 99.4184)
Luminance0.4628 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E797FE #AEFE97
analogous
#B497FE #E797FE #FE97E2
triadic
#E797FE #FEE797 #97FEE7
tetradic
#E797FE #FEB497 #AEFE97 #97E2FE
square
#E797FE #FEB497 #AEFE97 #97E2FE
split-complementary
#E797FE #E2FE97 #97FEB4
monochromatic
#CB1EFD #D95AFD #E797FE #F5D4FF #F8E1FF

Accessibility & contrast

On white

2.05
#E797FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.26
#E797FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E797FE
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E797FE#FFFFFF#000000##000000
##E797FE1.002.0510.2610.26
#FFFFFF2.051.0021.0021.00
#00000010.2621.001.001.00
##00000010.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#88B0FF
Deuteranopia (green-blind)
#9CB8FB
Tritanopia (blue-blind)
#E7A4BF
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #e797fe;
/* rgb */ color: rgb(231, 151, 254);
/* oklch */ color: oklch(79.2% 0.163 318.5);
Tailwind
colors: {
  custom: {
    50: '#f0b7ff',
    500: '#e797fe',
    950: '#000000',
  },
}
SCSS
$custom: #e797fe;
$custom-light: #f0b7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#e797fe",
  "rgb": {
    "r": 231,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 286.602,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.79244,
    "c": 0.16329,
    "h": 318.5
  },
  "luminance": 0.46278
}

Semantic roles & 50–950 ramp

primary
#E797FE
secondary
#DCF7D4
accent
#E60033
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#171118
muted
#858086

Preview Lab

Preview with #E797FE

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

Preview Lab → · Contrast checker → · Palette generator →

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