#D998E7#D998E7

#D998E7 is a light, vivid purple. Relative luminance 0.430; OKLCH L 77.0% C 0.130 H 320.3°. Best body text is #000000 at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#D998E7
RGBrgb(217, 152, 231)
HSLhsl(289, 62%, 75%)
HSVhsv(289, 34%, 91%)
CMYKcmyk(6.1%, 34.2%, 0%, 9.4%)
CIE-LABlab(71.54, 37.46, -30.30)
CIE-LCHlch(71.54, 48.18, 321.03°)
OKLaboklab(76.96% 0.0999 -0.0828)
OKLCHoklch(76.96% 0.13 320.3)
XYZxyz(54.2655, 42.9793, 81.0231)
Luminance0.4298 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D998E7 #A6E798
analogous
#B198E7 #D998E7 #E798CE
triadic
#D998E7 #E7D998 #98E7D9
tetradic
#D998E7 #E7B198 #A6E798 #98CEE7
square
#D998E7 #E7B198 #A6E798 #98CEE7
split-complementary
#D998E7 #CEE798 #98E7B1
monochromatic
#B435D0 #C766DB #D998E7 #EBCAF3 #F6E6F9

Accessibility & contrast

On white

2.19
#D998E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.60
#D998E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D998E7
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D998E7#FFFFFF#000000##000000
##D998E71.002.199.609.60
#FFFFFF2.191.0021.0021.00
#0000009.6021.001.001.00
##0000009.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EABEA
Deuteranopia (green-blind)
#9EB2E4
Tritanopia (blue-blind)
#DAA1B5
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d998e7;
/* rgb */ color: rgb(217, 152, 231);
/* oklch */ color: oklch(77.0% 0.130 320.3);
Tailwind
colors: {
  custom: {
    50: '#e6b7ef',
    500: '#d998e7',
    950: '#000000',
  },
}
SCSS
$custom: #d998e7;
$custom-light: #e6b7ef;
$custom-dark: #000000;
JSON
{
  "hex": "#d998e7",
  "rgb": {
    "r": 217,
    "g": 152,
    "b": 231
  },
  "hsl": {
    "h": 289.367,
    "s": 62.205,
    "l": 75.098
  },
  "oklch": {
    "l": 0.76962,
    "c": 0.12974,
    "h": 320.3
  },
  "luminance": 0.42978
}

Semantic roles & 50–950 ramp

primary
#D998E7
secondary
#DEF1DA
accent
#CA1C3A
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D998E7

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

Preview Lab → · Contrast checker → · Palette generator →

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