#D798EA#D798EA

#D798EA is a light, vivid purple. Relative luminance 0.428; OKLCH L 76.9% C 0.132 H 318.2°. Best body text is #000000 at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#D798EA
RGBrgb(215, 152, 234)
HSLhsl(286, 66%, 76%)
HSVhsv(286, 35%, 92%)
CMYKcmyk(8.1%, 35%, 0%, 8.2%)
CIE-LABlab(71.45, 37.44, -32.10)
CIE-LCHlch(71.45, 49.32, 319.39°)
OKLaboklab(76.89% 0.0983 -0.0879)
OKLCHoklch(76.89% 0.132 318.2)
XYZxyz(54.1018, 42.8455, 83.2460)
Luminance0.4284 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798EA #ABEA98
analogous
#AE98EA #D798EA #EA98D4
triadic
#D798EA #EAD798 #98EAD7
tetradic
#D798EA #EAAE98 #ABEA98 #98D4EA
square
#D798EA #EAAE98 #ABEA98 #98D4EA
split-complementary
#D798EA #D4EA98 #98EAAE
monochromatic
#B032D5 #C365E0 #D798EA #EBCBF4 #F5E6FA

Accessibility & contrast

On white

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

On black

9.57
#D798EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798EA
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798EA#FFFFFF#000000##000000
##D798EA1.002.199.579.57
#FFFFFF2.191.0021.0021.00
#0000009.5721.001.001.00
##0000009.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DABED
Deuteranopia (green-blind)
#9CB1E7
Tritanopia (blue-blind)
#D7A2B6
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d798ea;
/* rgb */ color: rgb(215, 152, 234);
/* oklch */ color: oklch(76.9% 0.132 318.2);
Tailwind
colors: {
  custom: {
    50: '#e4b7f1',
    500: '#d798ea',
    950: '#000000',
  },
}
SCSS
$custom: #d798ea;
$custom-light: #e4b7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d798ea",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 234
  },
  "hsl": {
    "h": 286.098,
    "s": 66.129,
    "l": 75.686
  },
  "oklch": {
    "l": 0.76885,
    "c": 0.13191,
    "h": 318.2
  },
  "luminance": 0.42844
}

Semantic roles & 50–950 ramp

primary
#D798EA
secondary
#DFF1DA
accent
#CE1842
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D798EA

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

Preview Lab → · Contrast checker → · Palette generator →

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