#D798E6#D798E6

#D798E6 is a light, vivid purple. Relative luminance 0.426; OKLCH L 76.7% C 0.128 H 319.8°. Best body text is #000000 at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#D798E6
RGBrgb(215, 152, 230)
HSLhsl(288, 61%, 75%)
HSVhsv(288, 34%, 90%)
CMYKcmyk(6.5%, 33.9%, 0%, 9.8%)
CIE-LABlab(71.30, 36.65, -30.15)
CIE-LCHlch(71.30, 47.46, 320.55°)
OKLaboklab(76.72% 0.0974 -0.0824)
OKLCHoklch(76.72% 0.128 319.8)
XYZxyz(53.5336, 42.6182, 80.2537)
Luminance0.4262 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798E6 #A7E698
analogous
#B098E6 #D798E6 #E698CE
triadic
#D798E6 #E6D798 #98E6D7
tetradic
#D798E6 #E6B098 #A7E698 #98CEE6
square
#D798E6 #E6B098 #A7E698 #98CEE6
split-complementary
#D798E6 #CEE698 #98E6B0
monochromatic
#B136CE #C467DA #D798E6 #EAC9F2 #F5E6F9

Accessibility & contrast

On white

2.21
#D798E6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.52
#D798E6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798E6
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798E6#FFFFFF#000000##000000
##D798E61.002.219.529.52
#FFFFFF2.211.0021.0021.00
#0000009.5221.001.001.00
##0000009.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d798e6;
/* rgb */ color: rgb(215, 152, 230);
/* oklch */ color: oklch(76.7% 0.128 319.8);
Tailwind
colors: {
  custom: {
    50: '#e4b7ee',
    500: '#d798e6',
    950: '#000000',
  },
}
SCSS
$custom: #d798e6;
$custom-light: #e4b7ee;
$custom-dark: #000000;
JSON
{
  "hex": "#d798e6",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 230
  },
  "hsl": {
    "h": 288.462,
    "s": 60.937,
    "l": 74.902
  },
  "oklch": {
    "l": 0.76716,
    "c": 0.12755,
    "h": 319.8
  },
  "luminance": 0.42617
}

Semantic roles & 50–950 ramp

primary
#D798E6
secondary
#DFF0DB
accent
#C91D3E
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D798E6

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

Preview Lab → · Contrast checker → · Palette generator →

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