#E797F2#E797F2

#E797F2 is a light, vivid purple. Relative luminance 0.455; OKLCH L 78.7% C 0.151 H 322.5°. Best body text is #000000 at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#E797F2
RGBrgb(231, 151, 242)
HSLhsl(293, 78%, 77%)
HSVhsv(293, 38%, 95%)
CMYKcmyk(4.5%, 37.6%, 0%, 5.1%)
CIE-LABlab(73.24, 44.36, -33.56)
CIE-LCHlch(73.24, 55.63, 322.89°)
OKLaboklab(78.72% 0.1198 -0.0918)
OKLCHoklch(78.72% 0.151 322.5)
XYZxyz(60.0468, 45.5351, 89.6133)
Luminance0.4553 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E797F2 #A2F297
analogous
#BA97F2 #E797F2 #F297D0
triadic
#E797F2 #F2E797 #97F2E7
tetradic
#E797F2 #F2BA97 #A2F297 #97D0F2
square
#E797F2 #F2BA97 #A2F297 #97D0F2
split-complementary
#E797F2 #D0F297 #97F2BA
monochromatic
#CE2AE4 #DA61EB #E797F2 #F4CDF9 #F9E4FC

Accessibility & contrast

On white

2.08
#E797F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.11
#E797F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E797F2
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E797F2#FFFFFF#000000##000000
##E797F21.002.0810.1110.11
#FFFFFF2.081.0021.0021.00
#00000010.1121.001.001.00
##00000010.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DAEF5
Deuteranopia (green-blind)
#A1B7EF
Tritanopia (blue-blind)
#EAA1B9
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #e797f2;
/* rgb */ color: rgb(231, 151, 242);
/* oklch */ color: oklch(78.7% 0.151 322.5);
Tailwind
colors: {
  custom: {
    50: '#f0b7f6',
    500: '#e797f2',
    950: '#000000',
  },
}
SCSS
$custom: #e797f2;
$custom-light: #f0b7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#e797f2",
  "rgb": {
    "r": 231,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 292.747,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.78721,
    "c": 0.1509,
    "h": 322.5
  },
  "luminance": 0.45533
}

Semantic roles & 50–950 ramp

primary
#E797F2
secondary
#DBF3D8
accent
#DA0B24
background
#FEFBFF
surface
#FDF6FE
border
#D5D0D6
text
#171117
muted
#858085

Preview Lab

Preview with #E797F2

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

Preview Lab → · Contrast checker → · Palette generator →

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