#D798E8#D798E8

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

Color values

HEX#D798E8
RGBrgb(215, 152, 232)
HSLhsl(287, 63%, 75%)
HSVhsv(287, 34%, 91%)
CMYKcmyk(7.3%, 34.5%, 0%, 9%)
CIE-LABlab(71.37, 37.04, -31.13)
CIE-LCHlch(71.37, 48.38, 319.96°)
OKLaboklab(76.8% 0.0978 -0.0852)
OKLCHoklch(76.8% 0.13 319)
XYZxyz(53.8161, 42.7312, 81.7413)
Luminance0.4273 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798E8 #A9E898
analogous
#AF98E8 #D798E8 #E898D1
triadic
#D798E8 #E8D798 #98E8D7
tetradic
#D798E8 #E8AF98 #A9E898 #98D1E8
square
#D798E8 #E8AF98 #A9E898 #98D1E8
split-complementary
#D798E8 #D1E898 #98E8AF
monochromatic
#B034D2 #C466DD #D798E8 #EACAF3 #F5E6F9

Accessibility & contrast

On white

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

On black

9.55
#D798E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798E8
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798E8#FFFFFF#000000##000000
##D798E81.002.209.559.55
#FFFFFF2.201.0021.0021.00
#0000009.5521.001.001.00
##0000009.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d798e8;
/* rgb */ color: rgb(215, 152, 232);
/* oklch */ color: oklch(76.8% 0.130 319.0);
Tailwind
colors: {
  custom: {
    50: '#e4b7ef',
    500: '#d798e8',
    950: '#000000',
  },
}
SCSS
$custom: #d798e8;
$custom-light: #e4b7ef;
$custom-dark: #000000;
JSON
{
  "hex": "#d798e8",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 232
  },
  "hsl": {
    "h": 287.25,
    "s": 63.492,
    "l": 75.294
  },
  "oklch": {
    "l": 0.768,
    "c": 0.12972,
    "h": 319
  },
  "luminance": 0.4273
}

Semantic roles & 50–950 ramp

primary
#D798E8
secondary
#DFF1DA
accent
#CB1A40
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D798E8

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

Preview Lab → · Contrast checker → · Palette generator →

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