#D798E9#D798E9

#D798E9 is a light, vivid purple. Relative luminance 0.428; OKLCH L 76.8% C 0.131 H 318.6°. Best body text is #000000 at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#D798E9
RGBrgb(215, 152, 233)
HSLhsl(287, 65%, 75%)
HSVhsv(287, 35%, 91%)
CMYKcmyk(7.7%, 34.8%, 0%, 8.6%)
CIE-LABlab(71.41, 37.24, -31.62)
CIE-LCHlch(71.41, 48.85, 319.67°)
OKLaboklab(76.84% 0.0981 -0.0866)
OKLCHoklch(76.84% 0.131 318.6)
XYZxyz(53.9585, 42.7882, 82.4915)
Luminance0.4279 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798E9 #AAE998
analogous
#AE98E9 #D798E9 #E998D2
triadic
#D798E9 #E9D798 #98E9D7
tetradic
#D798E9 #E9AE98 #AAE998 #98D2E9
square
#D798E9 #E9AE98 #AAE998 #98D2E9
split-complementary
#D798E9 #D2E998 #98E9AE
monochromatic
#B033D3 #C366DE #D798E9 #EBCAF4 #F5E6FA

Accessibility & contrast

On white

2.20
#D798E9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.56
#D798E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798E9
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798E9#FFFFFF#000000##000000
##D798E91.002.209.569.56
#FFFFFF2.201.0021.0021.00
#0000009.5621.001.001.00
##0000009.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DABEC
Deuteranopia (green-blind)
#9CB1E6
Tritanopia (blue-blind)
#D8A2B6
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d798e9;
/* rgb */ color: rgb(215, 152, 233);
/* oklch */ color: oklch(76.8% 0.131 318.6);
Tailwind
colors: {
  custom: {
    50: '#e4b7f0',
    500: '#d798e9',
    950: '#000000',
  },
}
SCSS
$custom: #d798e9;
$custom-light: #e4b7f0;
$custom-dark: #000000;
JSON
{
  "hex": "#d798e9",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 233
  },
  "hsl": {
    "h": 286.667,
    "s": 64.8,
    "l": 75.49
  },
  "oklch": {
    "l": 0.76842,
    "c": 0.13081,
    "h": 318.6
  },
  "luminance": 0.42787
}

Semantic roles & 50–950 ramp

primary
#D798E9
secondary
#DFF1DA
accent
#CD1941
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D798E9

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

Preview Lab → · Contrast checker → · Palette generator →

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