#D98CD7#D98CD7

#D98CD7 is a light, vivid purple. Relative luminance 0.384; OKLCH L 74.3% C 0.134 H 327.7°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#D98CD7
RGBrgb(217, 140, 215)
HSLhsl(302, 50%, 70%)
HSVhsv(302, 35%, 85%)
CMYKcmyk(0%, 35.5%, 0.9%, 14.9%)
CIE-LABlab(68.33, 40.85, -26.43)
CIE-LCHlch(68.33, 48.65, 327.09°)
OKLaboklab(74.33% 0.1136 -0.0718)
OKLCHoklch(74.33% 0.134 327.7)
XYZxyz(50.2581, 38.4163, 69.0445)
Luminance0.3841 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98CD7 #8CD98E
analogous
#B48CD9 #D98CD7 #D98CB1
triadic
#D98CD7 #D7D98C #8CD7D9
tetradic
#D98CD7 #D9B48C #8CD98E #8CB1D9
square
#D98CD7 #D9B48C #8CD98E #8CB1D9
split-complementary
#D98CD7 #B1D98C #8CD9B4
monochromatic
#B03AAD #CA5EC7 #D98CD7 #E8BAE7 #F7E8F7

Accessibility & contrast

On white

2.42
#D98CD7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#D98CD7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98CD7
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98CD7#FFFFFF#000000##000000
##D98CD71.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A0DA
Deuteranopia (green-blind)
#9BAAD4
Tritanopia (blue-blind)
#DE93A8
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d98cd7;
/* rgb */ color: rgb(217, 140, 215);
/* oklch */ color: oklch(74.3% 0.134 327.7);
Tailwind
colors: {
  custom: {
    50: '#e6afe3',
    500: '#d98cd7',
    950: '#000000',
  },
}
SCSS
$custom: #d98cd7;
$custom-light: #e6afe3;
$custom-dark: #000000;
JSON
{
  "hex": "#d98cd7",
  "rgb": {
    "r": 217,
    "g": 140,
    "b": 215
  },
  "hsl": {
    "h": 301.558,
    "s": 50.327,
    "l": 70
  },
  "oklch": {
    "l": 0.74331,
    "c": 0.13441,
    "h": 327.7
  },
  "luminance": 0.38414
}

Semantic roles & 50–950 ramp

primary
#D98CD7
secondary
#D6EBD6
accent
#BE2C28
background
#FEFAFD
surface
#FCF5FB
border
#D5CFD4
text
#161015
muted
#847F83

Preview Lab

Preview with #D98CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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