#E797EF#E797EF

#E797EF is a light, vivid purple. Relative luminance 0.454; OKLCH L 78.6% C 0.148 H 323.6°. Best body text is #000000 at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#E797EF
RGBrgb(231, 151, 239)
HSLhsl(295, 73%, 76%)
HSVhsv(295, 37%, 94%)
CMYKcmyk(3.3%, 36.8%, 0%, 6.3%)
CIE-LABlab(73.13, 43.80, -32.11)
CIE-LCHlch(73.13, 54.31, 323.76°)
OKLaboklab(78.6% 0.1191 -0.0877)
OKLCHoklch(78.6% 0.148 323.6)
XYZxyz(59.6000, 45.3563, 87.2598)
Luminance0.4535 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E797EF #9FEF97
analogous
#BB97EF #E797EF #EF97CB
triadic
#E797EF #EFE797 #97EFE7
tetradic
#E797EF #EFBB97 #9FEF97 #97CBEF
square
#E797EF #EFBB97 #9FEF97 #97CBEF
split-complementary
#E797EF #CBEF97 #97EFBB
monochromatic
#CF2DDF #DB62E7 #E797EF #F3CCF7 #F9E4FB

Accessibility & contrast

On white

2.09
#E797EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.07
#E797EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E797EF
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E797EF#FFFFFF#000000##000000
##E797EF1.002.0910.0710.07
#FFFFFF2.091.0021.0021.00
#00000010.0721.001.001.00
##00000010.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EADF2
Deuteranopia (green-blind)
#A2B7EC
Tritanopia (blue-blind)
#EAA0B8
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #e797ef;
/* rgb */ color: rgb(231, 151, 239);
/* oklch */ color: oklch(78.6% 0.148 323.6);
Tailwind
colors: {
  custom: {
    50: '#f0b7f4',
    500: '#e797ef',
    950: '#000000',
  },
}
SCSS
$custom: #e797ef;
$custom-light: #f0b7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#e797ef",
  "rgb": {
    "r": 231,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 294.545,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.78595,
    "c": 0.14788,
    "h": 323.6
  },
  "luminance": 0.45354
}

Semantic roles & 50–950 ramp

primary
#E797EF
secondary
#DBF3D8
accent
#D51022
background
#FEFBFE
surface
#FDF6FD
border
#D5D0D5
text
#171117
muted
#858085

Preview Lab

Preview with #E797EF

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

Preview Lab → · Contrast checker → · Palette generator →

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