#D798EB#D798EB

#D798EB is a light, vivid purple. Relative luminance 0.429; OKLCH L 76.9% C 0.133 H 317.8°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#D798EB
RGBrgb(215, 152, 235)
HSLhsl(286, 67%, 76%)
HSVhsv(286, 35%, 92%)
CMYKcmyk(8.5%, 35.3%, 0%, 7.8%)
CIE-LABlab(71.49, 37.63, -32.59)
CIE-LCHlch(71.49, 49.78, 319.11°)
OKLaboklab(76.93% 0.0985 -0.0893)
OKLCHoklch(76.93% 0.133 317.8)
XYZxyz(54.2459, 42.9031, 84.0047)
Luminance0.4290 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798EB #ACEB98
analogous
#AD98EB #D798EB #EB98D5
triadic
#D798EB #EBD798 #98EBD7
tetradic
#D798EB #EBAD98 #ACEB98 #98D5EB
square
#D798EB #EBAD98 #ACEB98 #98D5EB
split-complementary
#D798EB #D5EB98 #98EBAD
monochromatic
#AF32D7 #C365E1 #D798EB #EBCBF5 #F5E5FA

Accessibility & contrast

On white

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

On black

9.58
#D798EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798EB
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798EB#FFFFFF#000000##000000
##D798EB1.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d798eb;
/* rgb */ color: rgb(215, 152, 235);
/* oklch */ color: oklch(76.9% 0.133 317.8);
Tailwind
colors: {
  custom: {
    50: '#e4b7f1',
    500: '#d798eb',
    950: '#000000',
  },
}
SCSS
$custom: #d798eb;
$custom-light: #e4b7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d798eb",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 235
  },
  "hsl": {
    "h": 285.542,
    "s": 67.48,
    "l": 75.882
  },
  "oklch": {
    "l": 0.76927,
    "c": 0.133,
    "h": 317.8
  },
  "luminance": 0.42902
}

Semantic roles & 50–950 ramp

primary
#D798EB
secondary
#DFF2D9
accent
#CF1643
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D798EB

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

Preview Lab → · Contrast checker → · Palette generator →

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