#D798DB#D798DB

#D798DB is a light, moderate purple. Relative luminance 0.420; OKLCH L 76.3% C 0.116 H 324.6°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#D798DB
RGBrgb(215, 152, 219)
HSLhsl(296, 48%, 73%)
HSVhsv(296, 31%, 86%)
CMYKcmyk(1.8%, 30.6%, 0%, 14.1%)
CIE-LABlab(70.88, 34.53, -24.74)
CIE-LCHlch(70.88, 42.48, 324.38°)
OKLaboklab(76.27% 0.0945 -0.0671)
OKLCHoklch(76.27% 0.116 324.6)
XYZxyz(52.0374, 42.0197, 72.3736)
Luminance0.4202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798DB #9CDB98
analogous
#B598DB #D798DB #DB98BD
triadic
#D798DB #DBD798 #98DBD7
tetradic
#D798DB #DBB598 #9CDB98 #98BDDB
square
#D798DB #DBB598 #9CDB98 #98BDDB
split-complementary
#D798DB #BDDB98 #98DBB5
monochromatic
#B140B8 #C56BCB #D798DB #E9C5EB #F6E8F7

Accessibility & contrast

On white

2.23
#D798DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#D798DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798DB
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798DB#FFFFFF#000000##000000
##D798DB1.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#92A9DE
Deuteranopia (green-blind)
#A1B0D9
Tritanopia (blue-blind)
#DA9EB0
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d798db;
/* rgb */ color: rgb(215, 152, 219);
/* oklch */ color: oklch(76.3% 0.116 324.6);
Tailwind
colors: {
  custom: {
    50: '#e4b7e6',
    500: '#d798db',
    950: '#000000',
  },
}
SCSS
$custom: #d798db;
$custom-light: #e4b7e6;
$custom-dark: #000000;
JSON
{
  "hex": "#d798db",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 219
  },
  "hsl": {
    "h": 296.418,
    "s": 48.201,
    "l": 72.745
  },
  "oklch": {
    "l": 0.76269,
    "c": 0.11594,
    "h": 324.6
  },
  "luminance": 0.42018
}

Semantic roles & 50–950 ramp

primary
#D798DB
secondary
#DEEEDD
accent
#BB2A33
background
#FEFBFE
surface
#FCF6FC
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D798DB

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

Preview Lab → · Contrast checker → · Palette generator →

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