#E798FA#E798FA

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

Color values

HEX#E798FA
RGBrgb(231, 152, 250)
HSLhsl(288, 91%, 79%)
HSVhsv(288, 39%, 98%)
CMYKcmyk(7.6%, 39.2%, 0%, 2%)
CIE-LABlab(73.77, 45.37, -37.09)
CIE-LCHlch(73.77, 58.60, 320.73°)
OKLaboklab(79.22% 0.12 -0.1019)
OKLCHoklch(79.22% 0.157 319.7)
XYZxyz(61.4363, 46.3495, 96.1340)
Luminance0.4635 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E798FA #ABFA98
analogous
#B698FA #E798FA #FA98DC
triadic
#E798FA #FAE798 #98FAE7
tetradic
#E798FA #FAB698 #ABFA98 #98DCFA
square
#E798FA #FAB698 #ABFA98 #98DCFA
split-complementary
#E798FA #DCFA98 #98FAB6
monochromatic
#CC23F4 #D95EF7 #E798FA #F5D2FD #F8E2FE

Accessibility & contrast

On white

2.04
#E798FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##E798FA#FFFFFF#000000##000000
##E798FA1.002.0410.2710.27
#FFFFFF2.041.0021.0021.00
#00000010.2721.001.001.00
##00000010.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BB0FE
Deuteranopia (green-blind)
#9FB8F7
Tritanopia (blue-blind)
#E8A4BD
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #e798fa;
/* rgb */ color: rgb(231, 152, 250);
/* oklch */ color: oklch(79.2% 0.157 319.7);
Tailwind
colors: {
  custom: {
    50: '#f0b8fc',
    500: '#e798fa',
    950: '#000000',
  },
}
SCSS
$custom: #e798fa;
$custom-light: #f0b8fc;
$custom-dark: #000000;
JSON
{
  "hex": "#e798fa",
  "rgb": {
    "r": 231,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 288.367,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.79224,
    "c": 0.15744,
    "h": 319.7
  },
  "luminance": 0.46348
}

Semantic roles & 50–950 ramp

primary
#E798FA
secondary
#DCF6D5
accent
#E6002C
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #E798FA

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

Preview Lab → · Contrast checker → · Palette generator →

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