#E797FF#E797FF

#E797FF is a light, vivid purple. Relative luminance 0.463; OKLCH L 79.3% C 0.164 H 318.1°. Best body text is #000000 at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#E797FF
RGBrgb(231, 151, 255)
HSLhsl(286, 100%, 80%)
HSVhsv(286, 41%, 100%)
CMYKcmyk(9.4%, 40.8%, 0%, 0%)
CIE-LABlab(73.77, 46.86, -39.80)
CIE-LCHlch(73.77, 61.48, 319.65°)
OKLaboklab(79.29% 0.1224 -0.1096)
OKLCHoklch(79.29% 0.164 318.1)
XYZxyz(62.0691, 46.3440, 100.2640)
Luminance0.4634 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E797FF #AFFF97
analogous
#B397FF #E797FF #FF97E3
triadic
#E797FF #FFE797 #97FFE7
tetradic
#E797FF #FFB397 #AFFF97 #97E3FF
square
#E797FF #FFB397 #AFFF97 #97E3FF
split-complementary
#E797FF #E3FF97 #97FFB3
monochromatic
#CB1DFF #D95AFF #E797FF #F5D4FF #F8E0FF

Accessibility & contrast

On white

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

On black

10.27
#E797FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E797FF
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E797FF#FFFFFF#000000##000000
##E797FF1.002.0510.2710.27
#FFFFFF2.051.0021.0021.00
#00000010.2721.001.001.00
##00000010.2721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e797ff;
/* rgb */ color: rgb(231, 151, 255);
/* oklch */ color: oklch(79.3% 0.164 318.1);
Tailwind
colors: {
  custom: {
    50: '#f0b7ff',
    500: '#e797ff',
    950: '#000000',
  },
}
SCSS
$custom: #e797ff;
$custom-light: #f0b7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#e797ff",
  "rgb": {
    "r": 231,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 286.154,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.79289,
    "c": 0.16435,
    "h": 318.1
  },
  "luminance": 0.46342
}

Semantic roles & 50–950 ramp

primary
#E797FF
secondary
#DCF7D4
accent
#E60035
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#171118
muted
#858086

Preview Lab

Preview with #E797FF

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

Preview Lab → · Contrast checker → · Palette generator →

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