#D998F3#D998F3

#D998F3 is a light, vivid purple. Relative luminance 0.437; OKLCH L 77.5% C 0.143 H 315.9°. Best body text is #000000 at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#D998F3
RGBrgb(217, 152, 243)
HSLhsl(283, 79%, 77%)
HSVhsv(283, 37%, 95%)
CMYKcmyk(10.7%, 37.4%, 0%, 4.7%)
CIE-LABlab(72.01, 39.84, -36.13)
CIE-LCHlch(72.01, 53.78, 317.80°)
OKLaboklab(77.48% 0.1026 -0.0994)
OKLCHoklch(77.48% 0.143 315.9)
XYZxyz(56.0187, 43.6806, 90.2569)
Luminance0.4368 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D998F3 #B2F398
analogous
#AB98F3 #D998F3 #F398E0
triadic
#D998F3 #F3D998 #98F3D9
tetradic
#D998F3 #F3AB98 #B2F398 #98E0F3
square
#D998F3 #F3AB98 #B2F398 #98E0F3
split-complementary
#D998F3 #E0F398 #98F3AB
monochromatic
#B12AE6 #C561ED #D998F3 #EDCFF9 #F5E4FC

Accessibility & contrast

On white

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

On black

9.74
#D998F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D998F3
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D998F3#FFFFFF#000000##000000
##D998F31.002.169.749.74
#FFFFFF2.161.0021.0021.00
#0000009.7421.001.001.00
##0000009.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AADF6
Deuteranopia (green-blind)
#99B3F0
Tritanopia (blue-blind)
#D8A4BA
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d998f3;
/* rgb */ color: rgb(217, 152, 243);
/* oklch */ color: oklch(77.5% 0.143 315.9);
Tailwind
colors: {
  custom: {
    50: '#e6b7f7',
    500: '#d998f3',
    950: '#000000',
  },
}
SCSS
$custom: #d998f3;
$custom-light: #e6b7f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d998f3",
  "rgb": {
    "r": 217,
    "g": 152,
    "b": 243
  },
  "hsl": {
    "h": 282.857,
    "s": 79.13,
    "l": 77.451
  },
  "oklch": {
    "l": 0.77476,
    "c": 0.14286,
    "h": 315.9
  },
  "luminance": 0.43679
}

Semantic roles & 50–950 ramp

primary
#D998F3
secondary
#DFF4D7
accent
#DB0A46
background
#FEFBFF
surface
#FCF6FE
border
#D5D0D6
text
#161117
muted
#848085

Preview Lab

Preview with #D998F3

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

Preview Lab → · Contrast checker → · Palette generator →

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