#E798FD#E798FD

#E798FD is a light, vivid purple. Relative luminance 0.465; OKLCH L 79.4% C 0.161 H 318.7°. Best body text is #000000 at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#E798FD
RGBrgb(231, 152, 253)
HSLhsl(287, 96%, 79%)
HSVhsv(287, 40%, 99%)
CMYKcmyk(8.7%, 39.9%, 0%, 0.8%)
CIE-LABlab(73.89, 45.95, -38.53)
CIE-LCHlch(73.89, 59.96, 320.02°)
OKLaboklab(79.36% 0.1206 -0.106)
OKLCHoklch(79.36% 0.161 318.7)
XYZxyz(61.9105, 46.5391, 98.6311)
Luminance0.4654 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E798FD #AEFD98
analogous
#B598FD #E798FD #FD98E0
triadic
#E798FD #FDE798 #98FDE7
tetradic
#E798FD #FDB598 #AEFD98 #98E0FD
square
#E798FD #FDB598 #AEFD98 #98E0FD
split-complementary
#E798FD #E0FD98 #98FDB5
monochromatic
#CB20FB #D95CFC #E798FD #F5D4FE #F8E1FE

Accessibility & contrast

On white

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

On black

10.31
#E798FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E798FD
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E798FD#FFFFFF#000000##000000
##E798FD1.002.0410.3110.31
#FFFFFF2.041.0021.0021.00
#00000010.3121.001.001.00
##00000010.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e798fd;
/* rgb */ color: rgb(231, 152, 253);
/* oklch */ color: oklch(79.4% 0.161 318.7);
Tailwind
colors: {
  custom: {
    50: '#f0b8fe',
    500: '#e798fd',
    950: '#000000',
  },
}
SCSS
$custom: #e798fd;
$custom-light: #f0b8fe;
$custom-dark: #000000;
JSON
{
  "hex": "#e798fd",
  "rgb": {
    "r": 231,
    "g": 152,
    "b": 253
  },
  "hsl": {
    "h": 286.931,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.79356,
    "c": 0.16057,
    "h": 318.7
  },
  "luminance": 0.46537
}

Semantic roles & 50–950 ramp

primary
#E798FD
secondary
#DCF7D4
accent
#E60032
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#171118
muted
#858086

Preview Lab

Preview with #E798FD

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

Preview Lab → · Contrast checker → · Palette generator →

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