#E797FB#E797FB

#E797FB is a light, vivid purple. Relative luminance 0.461; OKLCH L 79.1% C 0.160 H 319.4°. Best body text is #000000 at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#E797FB
RGBrgb(231, 151, 251)
HSLhsl(288, 93%, 79%)
HSVhsv(288, 40%, 98%)
CMYKcmyk(8%, 39.8%, 0%, 1.6%)
CIE-LABlab(73.60, 46.08, -37.89)
CIE-LCHlch(73.60, 59.66, 320.57°)
OKLaboklab(79.11% 0.1216 -0.1042)
OKLCHoklch(79.11% 0.16 319.4)
XYZxyz(61.4319, 46.0891, 96.9081)
Luminance0.4609 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E797FB #ABFB97
analogous
#B597FB #E797FB #FB97DD
triadic
#E797FB #FBE797 #97FBE7
tetradic
#E797FB #FBB597 #ABFB97 #97DDFB
square
#E797FB #FBB597 #ABFB97 #97DDFB
split-complementary
#E797FB #DDFB97 #97FBB5
monochromatic
#CC21F6 #D95CF9 #E797FB #F5D2FD #F8E2FE

Accessibility & contrast

On white

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

On black

10.22
#E797FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E797FB
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E797FB#FFFFFF#000000##000000
##E797FB1.002.0610.2210.22
#FFFFFF2.061.0021.0021.00
#00000010.2221.001.001.00
##00000010.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#89AFFF
Deuteranopia (green-blind)
#9EB8F8
Tritanopia (blue-blind)
#E8A3BD
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #e797fb;
/* rgb */ color: rgb(231, 151, 251);
/* oklch */ color: oklch(79.1% 0.160 319.4);
Tailwind
colors: {
  custom: {
    50: '#f0b7fd',
    500: '#e797fb',
    950: '#000000',
  },
}
SCSS
$custom: #e797fb;
$custom-light: #f0b7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#e797fb",
  "rgb": {
    "r": 231,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 288,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.79111,
    "c": 0.16016,
    "h": 319.4
  },
  "luminance": 0.46087
}

Semantic roles & 50–950 ramp

primary
#E797FB
secondary
#DCF6D5
accent
#E6002E
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #E797FB

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

Preview Lab → · Contrast checker → · Palette generator →

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