#D798EC#D798EC

#D798EC is a light, vivid purple. Relative luminance 0.430; OKLCH L 77.0% C 0.134 H 317.4°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#D798EC
RGBrgb(215, 152, 236)
HSLhsl(285, 69%, 76%)
HSVhsv(285, 36%, 93%)
CMYKcmyk(8.9%, 35.6%, 0%, 7.5%)
CIE-LABlab(71.53, 37.83, -33.08)
CIE-LCHlch(71.53, 50.25, 318.84°)
OKLaboklab(76.97% 0.0988 -0.0907)
OKLCHoklch(76.97% 0.134 317.4)
XYZxyz(54.3907, 42.9610, 84.7677)
Luminance0.4296 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798EC #ADEC98
analogous
#AD98EC #D798EC #EC98D7
triadic
#D798EC #ECD798 #98ECD7
tetradic
#D798EC #ECAD98 #ADEC98 #98D7EC
square
#D798EC #ECAD98 #ADEC98 #98D7EC
split-complementary
#D798EC #D7EC98 #98ECAD
monochromatic
#AF31D9 #C364E2 #D798EC #EBCCF6 #F5E5FA

Accessibility & contrast

On white

2.19
#D798EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.59
#D798EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798EC
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798EC#FFFFFF#000000##000000
##D798EC1.002.199.599.59
#FFFFFF2.191.0021.0021.00
#0000009.5921.001.001.00
##0000009.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CABEF
Deuteranopia (green-blind)
#9BB1E9
Tritanopia (blue-blind)
#D7A2B7
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d798ec;
/* rgb */ color: rgb(215, 152, 236);
/* oklch */ color: oklch(77.0% 0.134 317.4);
Tailwind
colors: {
  custom: {
    50: '#e4b7f2',
    500: '#d798ec',
    950: '#000000',
  },
}
SCSS
$custom: #d798ec;
$custom-light: #e4b7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d798ec",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 236
  },
  "hsl": {
    "h": 285,
    "s": 68.852,
    "l": 76.078
  },
  "oklch": {
    "l": 0.7697,
    "c": 0.13412,
    "h": 317.4
  },
  "luminance": 0.4296
}

Semantic roles & 50–950 ramp

primary
#D798EC
secondary
#DFF2D9
accent
#D11544
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D798EC

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

Preview Lab → · Contrast checker → · Palette generator →

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