#D798EF#D798EF

#D798EF is a light, vivid purple. Relative luminance 0.431; OKLCH L 77.1% C 0.137 H 316.4°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#D798EF
RGBrgb(215, 152, 239)
HSLhsl(283, 73%, 77%)
HSVhsv(283, 36%, 94%)
CMYKcmyk(10%, 36.4%, 0%, 6.3%)
CIE-LABlab(71.65, 38.44, -34.53)
CIE-LCHlch(71.65, 51.67, 318.06°)
OKLaboklab(77.1% 0.0995 -0.0949)
OKLCHoklch(77.1% 0.137 316.4)
XYZxyz(54.8302, 43.1368, 87.0825)
Luminance0.4314 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798EF #B0EF98
analogous
#AC98EF #D798EF #EF98DC
triadic
#D798EF #EFD798 #98EFD7
tetradic
#D798EF #EFAC98 #B0EF98 #98DCEF
square
#D798EF #EFAC98 #B0EF98 #98DCEF
split-complementary
#D798EF #DCEF98 #98EFAC
monochromatic
#AE2EDF #C263E7 #D798EF #ECCDF7 #F5E5FB

Accessibility & contrast

On white

2.18
#D798EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.63
#D798EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798EF
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798EF#FFFFFF#000000##000000
##D798EF1.002.189.639.63
#FFFFFF2.181.0021.0021.00
#0000009.6321.001.001.00
##0000009.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BACF2
Deuteranopia (green-blind)
#9AB1EC
Tritanopia (blue-blind)
#D6A3B9
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d798ef;
/* rgb */ color: rgb(215, 152, 239);
/* oklch */ color: oklch(77.1% 0.137 316.4);
Tailwind
colors: {
  custom: {
    50: '#e4b7f4',
    500: '#d798ef',
    950: '#000000',
  },
}
SCSS
$custom: #d798ef;
$custom-light: #e4b7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d798ef",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 239
  },
  "hsl": {
    "h": 283.448,
    "s": 73.109,
    "l": 76.667
  },
  "oklch": {
    "l": 0.77099,
    "c": 0.13744,
    "h": 316.4
  },
  "luminance": 0.43136
}

Semantic roles & 50–950 ramp

primary
#D798EF
secondary
#E0F3D8
accent
#D51047
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D798EF

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

Preview Lab → · Contrast checker → · Palette generator →

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