#E798FC#E798FC

#E798FC is a light, vivid purple. Relative luminance 0.465; OKLCH L 79.3% C 0.160 H 319.0°. Best body text is #000000 at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#E798FC
RGBrgb(231, 152, 252)
HSLhsl(287, 94%, 79%)
HSVhsv(287, 40%, 99%)
CMYKcmyk(8.3%, 39.7%, 0%, 1.2%)
CIE-LABlab(73.85, 45.75, -38.05)
CIE-LCHlch(73.85, 59.51, 320.25°)
OKLaboklab(79.31% 0.1204 -0.1046)
OKLCHoklch(79.31% 0.16 319)
XYZxyz(61.7516, 46.4756, 97.7944)
Luminance0.4647 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E798FC #ADFC98
analogous
#B598FC #E798FC #FC98DF
triadic
#E798FC #FCE798 #98FCE7
tetradic
#E798FC #FCB598 #ADFC98 #98DFFC
square
#E798FC #FCB598 #ADFC98 #98DFFC
split-complementary
#E798FC #DFFC98 #98FCB5
monochromatic
#CB21F9 #D95DFA #E798FC #F5D3FE #F8E1FE

Accessibility & contrast

On white

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

On black

10.29
#E798FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E798FC
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E798FC#FFFFFF#000000##000000
##E798FC1.002.0410.2910.29
#FFFFFF2.041.0021.0021.00
#00000010.2921.001.001.00
##00000010.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e798fc;
/* rgb */ color: rgb(231, 152, 252);
/* oklch */ color: oklch(79.3% 0.160 319.0);
Tailwind
colors: {
  custom: {
    50: '#f0b8fd',
    500: '#e798fc',
    950: '#000000',
  },
}
SCSS
$custom: #e798fc;
$custom-light: #f0b8fd;
$custom-dark: #000000;
JSON
{
  "hex": "#e798fc",
  "rgb": {
    "r": 231,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 287.4,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.79312,
    "c": 0.15953,
    "h": 319
  },
  "luminance": 0.46474
}

Semantic roles & 50–950 ramp

primary
#E798FC
secondary
#DCF6D5
accent
#E60030
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #E798FC

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

Preview Lab → · Contrast checker → · Palette generator →

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