#E797FD#E797FD

#E797FD is a light, vivid purple. Relative luminance 0.462; OKLCH L 79.2% C 0.162 H 318.8°. Best body text is #000000 at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#E797FD
RGBrgb(231, 151, 253)
HSLhsl(287, 96%, 79%)
HSVhsv(287, 40%, 99%)
CMYKcmyk(8.7%, 40.3%, 0%, 0.8%)
CIE-LABlab(73.69, 46.47, -38.85)
CIE-LCHlch(73.69, 60.57, 320.10°)
OKLaboklab(79.2% 0.122 -0.1069)
OKLCHoklch(79.2% 0.162 318.8)
XYZxyz(61.7489, 46.2159, 98.5773)
Luminance0.4621 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E797FD #ADFD97
analogous
#B497FD #E797FD #FD97E0
triadic
#E797FD #FDE797 #97FDE7
tetradic
#E797FD #FDB497 #ADFD97 #97E0FD
square
#E797FD #FDB497 #ADFD97 #97E0FD
split-complementary
#E797FD #E0FD97 #97FDB4
monochromatic
#CB1FFB #D95BFC #E797FD #F5D3FE #F8E1FE

Accessibility & contrast

On white

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

On black

10.24
#E797FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E797FD
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E797FD#FFFFFF#000000##000000
##E797FD1.002.0510.2410.24
#FFFFFF2.051.0021.0021.00
#00000010.2421.001.001.00
##00000010.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e797fd;
/* rgb */ color: rgb(231, 151, 253);
/* oklch */ color: oklch(79.2% 0.162 318.8);
Tailwind
colors: {
  custom: {
    50: '#f0b7fe',
    500: '#e797fd',
    950: '#000000',
  },
}
SCSS
$custom: #e797fd;
$custom-light: #f0b7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#e797fd",
  "rgb": {
    "r": 231,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 287.059,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.792,
    "c": 0.16224,
    "h": 318.8
  },
  "luminance": 0.46214
}

Semantic roles & 50–950 ramp

primary
#E797FD
secondary
#DCF7D4
accent
#E60031
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#171118
muted
#858086

Preview Lab

Preview with #E797FD

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

Preview Lab → · Contrast checker → · Palette generator →

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