#D798D2#D798D2

#D798D2 is a light, moderate purple. Relative luminance 0.416; OKLCH L 75.9% C 0.107 H 329.3°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#D798D2
RGBrgb(215, 152, 210)
HSLhsl(305, 44%, 72%)
HSVhsv(305, 29%, 84%)
CMYKcmyk(0%, 29.3%, 2.3%, 15.7%)
CIE-LABlab(70.57, 32.87, -20.27)
CIE-LCHlch(70.57, 38.61, 328.34°)
OKLaboklab(75.92% 0.092 -0.0546)
OKLCHoklch(75.92% 0.107 329.3)
XYZxyz(50.8845, 41.5585, 66.3015)
Luminance0.4156 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798D2 #98D79D
analogous
#BD98D7 #D798D2 #D798B3
triadic
#D798D2 #D2D798 #98D2D7
tetradic
#D798D2 #D7BD98 #98D79D #98B3D7
square
#D798D2 #D7BD98 #98D79D #98B3D7
split-complementary
#D798D2 #B3D798 #98D7BD
monochromatic
#B044A8 #C66CBF #D798D2 #E8C4E5 #F6E9F5

Accessibility & contrast

On white

2.26
#D798D2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.31
#D798D2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798D2
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798D2#FFFFFF#000000##000000
##D798D21.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#95A7D4
Deuteranopia (green-blind)
#A4B0D0
Tritanopia (blue-blind)
#DC9CAD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d798d2;
/* rgb */ color: rgb(215, 152, 210);
/* oklch */ color: oklch(75.9% 0.107 329.3);
Tailwind
colors: {
  custom: {
    50: '#e4b7e0',
    500: '#d798d2',
    950: '#000000',
  },
}
SCSS
$custom: #d798d2;
$custom-light: #e4b7e0;
$custom-dark: #000000;
JSON
{
  "hex": "#d798d2",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 210
  },
  "hsl": {
    "h": 304.762,
    "s": 44.056,
    "l": 71.961
  },
  "oklch": {
    "l": 0.75921,
    "c": 0.10699,
    "h": 329.3
  },
  "luminance": 0.41557
}

Semantic roles & 50–950 ramp

primary
#D798D2
secondary
#DEEDDF
accent
#B7392E
background
#FEFBFD
surface
#FCF6FB
border
#D5D0D4
text
#161115
muted
#848083

Preview Lab

Preview with #D798D2

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

Preview Lab → · Contrast checker → · Palette generator →

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