#E798F2#E798F2

#E798F2 is a light, vivid purple. Relative luminance 0.459; OKLCH L 78.9% C 0.149 H 322.5°. Best body text is #000000 at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#E798F2
RGBrgb(231, 152, 242)
HSLhsl(293, 78%, 77%)
HSVhsv(293, 37%, 95%)
CMYKcmyk(4.5%, 37.2%, 0%, 5.1%)
CIE-LABlab(73.45, 43.84, -33.24)
CIE-LCHlch(73.45, 55.01, 322.83°)
OKLaboklab(78.88% 0.1183 -0.0909)
OKLCHoklch(78.88% 0.149 322.5)
XYZxyz(60.2085, 45.8583, 89.6672)
Luminance0.4586 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E798F2 #A3F298
analogous
#BA98F2 #E798F2 #F298D0
triadic
#E798F2 #F2E798 #98F2E7
tetradic
#E798F2 #F2BA98 #A3F298 #98D0F2
square
#E798F2 #F2BA98 #A3F298 #98D0F2
split-complementary
#E798F2 #D0F298 #98F2BA
monochromatic
#CE2BE4 #DA62EB #E798F2 #F4CEF9 #F9E4FC

Accessibility & contrast

On white

2.06
#E798F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.17
#E798F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E798F2
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E798F2#FFFFFF#000000##000000
##E798F21.002.0610.1710.17
#FFFFFF2.061.0021.0021.00
#00000010.1721.001.001.00
##00000010.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EAFF5
Deuteranopia (green-blind)
#A2B8EF
Tritanopia (blue-blind)
#EAA2BA
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #e798f2;
/* rgb */ color: rgb(231, 152, 242);
/* oklch */ color: oklch(78.9% 0.149 322.5);
Tailwind
colors: {
  custom: {
    50: '#f0b8f6',
    500: '#e798f2',
    950: '#000000',
  },
}
SCSS
$custom: #e798f2;
$custom-light: #f0b8f6;
$custom-dark: #000000;
JSON
{
  "hex": "#e798f2",
  "rgb": {
    "r": 231,
    "g": 152,
    "b": 242
  },
  "hsl": {
    "h": 292.667,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.7888,
    "c": 0.1492,
    "h": 322.5
  },
  "luminance": 0.45856
}

Semantic roles & 50–950 ramp

primary
#E798F2
secondary
#DBF3D8
accent
#DA0C25
background
#FEFBFF
surface
#FDF6FE
border
#D5D0D6
text
#171117
muted
#858085

Preview Lab

Preview with #E798F2

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

Preview Lab → · Contrast checker → · Palette generator →

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