#D798E7#D798E7

#D798E7 is a light, vivid purple. Relative luminance 0.427; OKLCH L 76.8% C 0.129 H 319.3°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#D798E7
RGBrgb(215, 152, 231)
HSLhsl(288, 62%, 75%)
HSVhsv(288, 34%, 91%)
CMYKcmyk(6.9%, 34.2%, 0%, 9.4%)
CIE-LABlab(71.33, 36.84, -30.64)
CIE-LCHlch(71.33, 47.92, 320.25°)
OKLaboklab(76.76% 0.0976 -0.0838)
OKLCHoklch(76.76% 0.129 319.3)
XYZxyz(53.6745, 42.6745, 80.9954)
Luminance0.4267 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798E7 #A8E798
analogous
#AF98E7 #D798E7 #E798D0
triadic
#D798E7 #E7D798 #98E7D7
tetradic
#D798E7 #E7AF98 #A8E798 #98D0E7
square
#D798E7 #E7AF98 #A8E798 #98D0E7
split-complementary
#D798E7 #D0E798 #98E7AF
monochromatic
#B035D0 #C466DB #D798E7 #EACAF3 #F5E6F9

Accessibility & contrast

On white

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

On black

9.53
#D798E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798E7
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798E7#FFFFFF#000000##000000
##D798E71.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EAAEA
Deuteranopia (green-blind)
#9DB1E5
Tritanopia (blue-blind)
#D8A1B5
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d798e7;
/* rgb */ color: rgb(215, 152, 231);
/* oklch */ color: oklch(76.8% 0.129 319.3);
Tailwind
colors: {
  custom: {
    50: '#e4b7ef',
    500: '#d798e7',
    950: '#000000',
  },
}
SCSS
$custom: #d798e7;
$custom-light: #e4b7ef;
$custom-dark: #000000;
JSON
{
  "hex": "#d798e7",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 231
  },
  "hsl": {
    "h": 287.848,
    "s": 62.205,
    "l": 75.098
  },
  "oklch": {
    "l": 0.76758,
    "c": 0.12863,
    "h": 319.3
  },
  "luminance": 0.42673
}

Semantic roles & 50–950 ramp

primary
#D798E7
secondary
#DFF1DA
accent
#CA1C3F
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D798E7

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

Preview Lab → · Contrast checker → · Palette generator →

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