#D998F1#D998F1

#D998F1 is a light, vivid purple. Relative luminance 0.436; OKLCH L 77.4% C 0.141 H 316.6°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#D998F1
RGBrgb(217, 152, 241)
HSLhsl(284, 76%, 77%)
HSVhsv(284, 37%, 95%)
CMYKcmyk(10%, 36.9%, 0%, 5.5%)
CIE-LABlab(71.93, 39.44, -35.16)
CIE-LCHlch(71.93, 52.84, 318.28°)
OKLaboklab(77.39% 0.1022 -0.0966)
OKLCHoklch(77.39% 0.141 316.6)
XYZxyz(55.7184, 43.5604, 88.6749)
Luminance0.4356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D998F1 #B0F198
analogous
#AD98F1 #D998F1 #F198DD
triadic
#D998F1 #F1D998 #98F1D9
tetradic
#D998F1 #F1AD98 #B0F198 #98DDF1
square
#D998F1 #F1AD98 #B0F198 #98DDF1
split-complementary
#D998F1 #DDF198 #98F1AD
monochromatic
#B12CE2 #C562EA #D998F1 #EDCEF8 #F5E4FB

Accessibility & contrast

On white

2.16
#D998F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.71
#D998F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D998F1
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D998F1#FFFFFF#000000##000000
##D998F11.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AACF4
Deuteranopia (green-blind)
#9AB2EE
Tritanopia (blue-blind)
#D8A3B9
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d998f1;
/* rgb */ color: rgb(217, 152, 241);
/* oklch */ color: oklch(77.4% 0.141 316.6);
Tailwind
colors: {
  custom: {
    50: '#e6b7f6',
    500: '#d998f1',
    950: '#000000',
  },
}
SCSS
$custom: #d998f1;
$custom-light: #e6b7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#d998f1",
  "rgb": {
    "r": 217,
    "g": 152,
    "b": 241
  },
  "hsl": {
    "h": 283.82,
    "s": 76.068,
    "l": 77.059
  },
  "oklch": {
    "l": 0.77389,
    "c": 0.14064,
    "h": 316.6
  },
  "luminance": 0.43559
}

Semantic roles & 50–950 ramp

primary
#D998F1
secondary
#DFF3D8
accent
#D80D44
background
#FEFBFF
surface
#FCF6FE
border
#D5D0D6
text
#161117
muted
#848085

Preview Lab

Preview with #D998F1

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

Preview Lab → · Contrast checker → · Palette generator →

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