#E798FE#E798FE

#E798FE is a light, vivid purple. Relative luminance 0.466; OKLCH L 79.4% C 0.162 H 318.4°. Best body text is #000000 at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#E798FE
RGBrgb(231, 152, 254)
HSLhsl(286, 98%, 80%)
HSVhsv(286, 40%, 100%)
CMYKcmyk(9.1%, 40.2%, 0%, 0.4%)
CIE-LABlab(73.94, 46.14, -39.00)
CIE-LCHlch(73.94, 60.42, 319.79°)
OKLaboklab(79.4% 0.1208 -0.1074)
OKLCHoklch(79.4% 0.162 318.4)
XYZxyz(62.0702, 46.6030, 99.4723)
Luminance0.4660 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E798FE #AFFE98
analogous
#B498FE #E798FE #FE98E2
triadic
#E798FE #FEE798 #98FEE7
tetradic
#E798FE #FEB498 #AFFE98 #98E2FE
square
#E798FE #FEB498 #AFFE98 #98E2FE
split-complementary
#E798FE #E2FE98 #98FEB4
monochromatic
#CB1FFD #D95BFD #E798FE #F5D5FF #F8E1FF

Accessibility & contrast

On white

2.03
#E798FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.32
#E798FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E798FE
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E798FE#FFFFFF#000000##000000
##E798FE1.002.0310.3210.32
#FFFFFF2.031.0021.0021.00
#00000010.3221.001.001.00
##00000010.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#89B0FF
Deuteranopia (green-blind)
#9DB8FB
Tritanopia (blue-blind)
#E7A5BF
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #e798fe;
/* rgb */ color: rgb(231, 152, 254);
/* oklch */ color: oklch(79.4% 0.162 318.4);
Tailwind
colors: {
  custom: {
    50: '#f0b8ff',
    500: '#e798fe',
    950: '#000000',
  },
}
SCSS
$custom: #e798fe;
$custom-light: #f0b8ff;
$custom-dark: #000000;
JSON
{
  "hex": "#e798fe",
  "rgb": {
    "r": 231,
    "g": 152,
    "b": 254
  },
  "hsl": {
    "h": 286.471,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.79401,
    "c": 0.16163,
    "h": 318.4
  },
  "luminance": 0.46601
}

Semantic roles & 50–950 ramp

primary
#E798FE
secondary
#DCF7D4
accent
#E60034
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#171118
muted
#858086

Preview Lab

Preview with #E798FE

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

Preview Lab → · Contrast checker → · Palette generator →

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