#D798CD#D798CD

#D798CD is a light, moderate purple. Relative luminance 0.413; OKLCH L 75.7% C 0.102 H 332.2°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#D798CD
RGBrgb(215, 152, 205)
HSLhsl(310, 44%, 72%)
HSVhsv(310, 29%, 84%)
CMYKcmyk(0%, 29.3%, 4.7%, 15.7%)
CIE-LABlab(70.39, 31.96, -17.76)
CIE-LCHlch(70.39, 36.57, 330.94°)
OKLaboklab(75.74% 0.0905 -0.0477)
OKLCHoklch(75.74% 0.102 332.2)
XYZxyz(50.2713, 41.3133, 63.0720)
Luminance0.4131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798CD #98D7A2
analogous
#C298D7 #D798CD #D798AE
triadic
#D798CD #CDD798 #98CDD7
tetradic
#D798CD #D7C298 #98D7A2 #98AED7
square
#D798CD #D7C298 #98D7A2 #98AED7
split-complementary
#D798CD #AED798 #98D7C2
monochromatic
#B0449F #C66CB8 #D798CD #E8C4E2 #F6E9F4

Accessibility & contrast

On white

2.27
#D798CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#D798CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798CD
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798CD#FFFFFF#000000##000000
##D798CD1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#97A7CF
Deuteranopia (green-blind)
#A6AFCB
Tritanopia (blue-blind)
#DD9BAB
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d798cd;
/* rgb */ color: rgb(215, 152, 205);
/* oklch */ color: oklch(75.7% 0.102 332.2);
Tailwind
colors: {
  custom: {
    50: '#e4b7dc',
    500: '#d798cd',
    950: '#000000',
  },
}
SCSS
$custom: #d798cd;
$custom-light: #e4b7dc;
$custom-dark: #000000;
JSON
{
  "hex": "#d798cd",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 205
  },
  "hsl": {
    "h": 309.524,
    "s": 44.056,
    "l": 71.961
  },
  "oklch": {
    "l": 0.75735,
    "c": 0.1023,
    "h": 332.2
  },
  "luminance": 0.41311
}

Semantic roles & 50–950 ramp

primary
#D798CD
secondary
#DEEDE0
accent
#B7442E
background
#FEFBFD
surface
#FCF6FB
border
#D5D0D4
text
#161115
muted
#848083

Preview Lab

Preview with #D798CD

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

Preview Lab → · Contrast checker → · Palette generator →

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