#D998F2#D998F2

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

Color values

HEX#D998F2
RGBrgb(217, 152, 242)
HSLhsl(283, 78%, 77%)
HSVhsv(283, 37%, 95%)
CMYKcmyk(10.3%, 37.2%, 0%, 5.1%)
CIE-LABlab(71.97, 39.64, -35.64)
CIE-LCHlch(71.97, 53.31, 318.04°)
OKLaboklab(77.43% 0.1024 -0.098)
OKLCHoklch(77.43% 0.142 316.3)
XYZxyz(55.8681, 43.6203, 89.4637)
Luminance0.4362 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D998F2 #B1F298
analogous
#AC98F2 #D998F2 #F298DE
triadic
#D998F2 #F2D998 #98F2D9
tetradic
#D998F2 #F2AC98 #B1F298 #98DEF2
square
#D998F2 #F2AC98 #B1F298 #98DEF2
split-complementary
#D998F2 #DEF298 #98F2AC
monochromatic
#B12BE4 #C562EB #D998F2 #EDCEF9 #F5E4FC

Accessibility & contrast

On white

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

On black

9.72
#D998F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D998F2
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D998F2#FFFFFF#000000##000000
##D998F21.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AACF5
Deuteranopia (green-blind)
#9AB2EF
Tritanopia (blue-blind)
#D8A4BA
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d998f2;
/* rgb */ color: rgb(217, 152, 242);
/* oklch */ color: oklch(77.4% 0.142 316.3);
Tailwind
colors: {
  custom: {
    50: '#e6b7f6',
    500: '#d998f2',
    950: '#000000',
  },
}
SCSS
$custom: #d998f2;
$custom-light: #e6b7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#d998f2",
  "rgb": {
    "r": 217,
    "g": 152,
    "b": 242
  },
  "hsl": {
    "h": 283.333,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.77432,
    "c": 0.14175,
    "h": 316.3
  },
  "luminance": 0.43619
}

Semantic roles & 50–950 ramp

primary
#D998F2
secondary
#DFF3D8
accent
#DA0C45
background
#FEFBFF
surface
#FCF6FE
border
#D5D0D6
text
#161117
muted
#848085

Preview Lab

Preview with #D998F2

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

Preview Lab → · Contrast checker → · Palette generator →

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