#D998EA#D998EA

#D998EA is a light, vivid purple. Relative luminance 0.431; OKLCH L 77.1% C 0.133 H 319.2°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#D998EA
RGBrgb(217, 152, 234)
HSLhsl(288, 66%, 76%)
HSVhsv(288, 35%, 92%)
CMYKcmyk(7.3%, 35%, 0%, 8.2%)
CIE-LABlab(71.66, 38.05, -31.77)
CIE-LCHlch(71.66, 49.57, 320.14°)
OKLaboklab(77.09% 0.1006 -0.087)
OKLCHoklch(77.09% 0.133 319.2)
XYZxyz(54.6928, 43.1502, 83.2737)
Luminance0.4315 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D998EA #A9EA98
analogous
#B098EA #D998EA #EA98D2
triadic
#D998EA #EAD998 #98EAD9
tetradic
#D998EA #EAB098 #A9EA98 #98D2EA
square
#D998EA #EAB098 #A9EA98 #98D2EA
split-complementary
#D998EA #D2EA98 #98EAB0
monochromatic
#B332D5 #C665E0 #D998EA #ECCBF4 #F6E6FA

Accessibility & contrast

On white

2.18
#D998EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.63
#D998EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D998EA
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D998EA#FFFFFF#000000##000000
##D998EA1.002.189.639.63
#FFFFFF2.181.0021.0021.00
#0000009.6321.001.001.00
##0000009.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DABED
Deuteranopia (green-blind)
#9DB2E7
Tritanopia (blue-blind)
#DAA2B6
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d998ea;
/* rgb */ color: rgb(217, 152, 234);
/* oklch */ color: oklch(77.1% 0.133 319.2);
Tailwind
colors: {
  custom: {
    50: '#e6b7f1',
    500: '#d998ea',
    950: '#000000',
  },
}
SCSS
$custom: #d998ea;
$custom-light: #e6b7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d998ea",
  "rgb": {
    "r": 217,
    "g": 152,
    "b": 234
  },
  "hsl": {
    "h": 287.561,
    "s": 66.129,
    "l": 75.686
  },
  "oklch": {
    "l": 0.77088,
    "c": 0.13297,
    "h": 319.2
  },
  "luminance": 0.43149
}

Semantic roles & 50–950 ramp

primary
#D998EA
secondary
#DFF1DA
accent
#CE183D
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D998EA

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

Preview Lab → · Contrast checker → · Palette generator →

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