#E797FC#E797FC

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

Color values

HEX#E797FC
RGBrgb(231, 151, 252)
HSLhsl(288, 94%, 79%)
HSVhsv(288, 40%, 99%)
CMYKcmyk(8.3%, 40.1%, 0%, 1.2%)
CIE-LABlab(73.64, 46.28, -38.37)
CIE-LCHlch(73.64, 60.12, 320.33°)
OKLaboklab(79.16% 0.1218 -0.1055)
OKLCHoklch(79.16% 0.161 319.1)
XYZxyz(61.5900, 46.1523, 97.7405)
Luminance0.4615 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E797FC #ACFC97
analogous
#B597FC #E797FC #FC97DF
triadic
#E797FC #FCE797 #97FCE7
tetradic
#E797FC #FCB597 #ACFC97 #97DFFC
square
#E797FC #FCB597 #ACFC97 #97DFFC
split-complementary
#E797FC #DFFC97 #97FCB5
monochromatic
#CC20F9 #D95CFA #E797FC #F5D2FE #F8E1FE

Accessibility & contrast

On white

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

On black

10.23
#E797FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E797FC
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E797FC#FFFFFF#000000##000000
##E797FC1.002.0510.2310.23
#FFFFFF2.051.0021.0021.00
#00000010.2321.001.001.00
##00000010.2321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e797fc;
/* rgb */ color: rgb(231, 151, 252);
/* oklch */ color: oklch(79.2% 0.161 319.1);
Tailwind
colors: {
  custom: {
    50: '#f0b7fd',
    500: '#e797fc',
    950: '#000000',
  },
}
SCSS
$custom: #e797fc;
$custom-light: #f0b7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#e797fc",
  "rgb": {
    "r": 231,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 287.525,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.79155,
    "c": 0.1612,
    "h": 319.1
  },
  "luminance": 0.4615
}

Semantic roles & 50–950 ramp

primary
#E797FC
secondary
#DCF6D5
accent
#E60030
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #E797FC

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

Preview Lab → · Contrast checker → · Palette generator →

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