#D998F8#D998F8

#D998F8 is a light, vivid purple. Relative luminance 0.440; OKLCH L 77.7% C 0.148 H 314.3°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#D998F8
RGBrgb(217, 152, 248)
HSLhsl(281, 87%, 78%)
HSVhsv(281, 39%, 97%)
CMYKcmyk(12.5%, 38.7%, 0%, 2.7%)
CIE-LABlab(72.22, 40.86, -38.53)
CIE-LCHlch(72.22, 56.16, 316.68°)
OKLaboklab(77.7% 0.1037 -0.1063)
OKLCHoklch(77.7% 0.148 314.3)
XYZxyz(56.7841, 43.9867, 94.2877)
Luminance0.4399 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D998F8 #B7F898
analogous
#A998F8 #D998F8 #F898E7
triadic
#D998F8 #F8D998 #98F8D9
tetradic
#D998F8 #F8A998 #B7F898 #98E7F8
square
#D998F8 #F8A998 #B7F898 #98E7F8
split-complementary
#D998F8 #E7F898 #98F8A9
monochromatic
#AF25F0 #C45FF4 #D998F8 #EED1FC #F4E2FD

Accessibility & contrast

On white

2.14
#D998F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#D998F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D998F8
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D998F8#FFFFFF#000000##000000
##D998F81.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#87ADFC
Deuteranopia (green-blind)
#97B3F5
Tritanopia (blue-blind)
#D7A5BC
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #d998f8;
/* rgb */ color: rgb(217, 152, 248);
/* oklch */ color: oklch(77.7% 0.148 314.3);
Tailwind
colors: {
  custom: {
    50: '#e6b7fb',
    500: '#d998f8',
    950: '#000000',
  },
}
SCSS
$custom: #d998f8;
$custom-light: #e6b7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d998f8",
  "rgb": {
    "r": 217,
    "g": 152,
    "b": 248
  },
  "hsl": {
    "h": 280.625,
    "s": 87.273,
    "l": 78.431
  },
  "oklch": {
    "l": 0.77698,
    "c": 0.14845,
    "h": 314.3
  },
  "luminance": 0.43985
}

Semantic roles & 50–950 ramp

primary
#D998F8
secondary
#E0F5D6
accent
#E4024B
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D998F8

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

Preview Lab → · Contrast checker → · Palette generator →

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