#E798FB#E798FB

#E798FB is a light, vivid purple. Relative luminance 0.464; OKLCH L 79.3% C 0.158 H 319.3°. Best body text is #000000 at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#E798FB
RGBrgb(231, 152, 251)
HSLhsl(288, 93%, 79%)
HSVhsv(288, 39%, 98%)
CMYKcmyk(8%, 39.4%, 0%, 1.6%)
CIE-LABlab(73.81, 45.56, -37.57)
CIE-LCHlch(73.81, 59.05, 320.49°)
OKLaboklab(79.27% 0.1202 -0.1032)
OKLCHoklch(79.27% 0.158 319.3)
XYZxyz(61.5935, 46.4123, 96.9620)
Luminance0.4641 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E798FB #ACFB98
analogous
#B698FB #E798FB #FB98DE
triadic
#E798FB #FBE798 #98FBE7
tetradic
#E798FB #FBB698 #ACFB98 #98DEFB
square
#E798FB #FBB698 #ACFB98 #98DEFB
split-complementary
#E798FB #DEFB98 #98FBB6
monochromatic
#CC22F6 #D95DF9 #E798FB #F5D3FD #F8E2FE

Accessibility & contrast

On white

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

On black

10.28
#E798FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E798FB
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E798FB#FFFFFF#000000##000000
##E798FB1.002.0410.2810.28
#FFFFFF2.041.0021.0021.00
#00000010.2821.001.001.00
##00000010.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AB0FF
Deuteranopia (green-blind)
#9EB8F8
Tritanopia (blue-blind)
#E8A4BE
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #e798fb;
/* rgb */ color: rgb(231, 152, 251);
/* oklch */ color: oklch(79.3% 0.158 319.3);
Tailwind
colors: {
  custom: {
    50: '#f0b8fd',
    500: '#e798fb',
    950: '#000000',
  },
}
SCSS
$custom: #e798fb;
$custom-light: #f0b8fd;
$custom-dark: #000000;
JSON
{
  "hex": "#e798fb",
  "rgb": {
    "r": 231,
    "g": 152,
    "b": 251
  },
  "hsl": {
    "h": 287.879,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.79268,
    "c": 0.15847,
    "h": 319.3
  },
  "luminance": 0.4641
}

Semantic roles & 50–950 ramp

primary
#E798FB
secondary
#DCF6D5
accent
#E6002E
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #E798FB

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

Preview Lab → · Contrast checker → · Palette generator →

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