#D998F0#D998F0

#D998F0 is a light, vivid purple. Relative luminance 0.435; OKLCH L 77.3% C 0.140 H 317.0°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#D998F0
RGBrgb(217, 152, 240)
HSLhsl(284, 75%, 77%)
HSVhsv(284, 37%, 94%)
CMYKcmyk(9.6%, 36.7%, 0%, 5.9%)
CIE-LABlab(71.89, 39.24, -34.68)
CIE-LCHlch(71.89, 52.37, 318.53°)
OKLaboklab(77.35% 0.102 -0.0952)
OKLCHoklch(77.35% 0.14 317)
XYZxyz(55.5694, 43.5008, 87.8904)
Luminance0.4350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D998F0 #AFF098
analogous
#AD98F0 #D998F0 #F098DB
triadic
#D998F0 #F0D998 #98F0D9
tetradic
#D998F0 #F0AD98 #AFF098 #98DBF0
square
#D998F0 #F0AD98 #AFF098 #98DBF0
split-complementary
#D998F0 #DBF098 #98F0AD
monochromatic
#B22DE0 #C563E8 #D998F0 #EDCDF8 #F5E4FB

Accessibility & contrast

On white

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

On black

9.70
#D998F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D998F0
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D998F0#FFFFFF#000000##000000
##D998F01.002.169.709.70
#FFFFFF2.161.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BACF3
Deuteranopia (green-blind)
#9BB2ED
Tritanopia (blue-blind)
#D9A3B9
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d998f0;
/* rgb */ color: rgb(217, 152, 240);
/* oklch */ color: oklch(77.3% 0.140 317.0);
Tailwind
colors: {
  custom: {
    50: '#e6b7f5',
    500: '#d998f0',
    950: '#000000',
  },
}
SCSS
$custom: #d998f0;
$custom-light: #e6b7f5;
$custom-dark: #000000;
JSON
{
  "hex": "#d998f0",
  "rgb": {
    "r": 217,
    "g": 152,
    "b": 240
  },
  "hsl": {
    "h": 284.318,
    "s": 74.576,
    "l": 76.863
  },
  "oklch": {
    "l": 0.77345,
    "c": 0.13954,
    "h": 317
  },
  "luminance": 0.43499
}

Semantic roles & 50–950 ramp

primary
#D998F0
secondary
#DFF3D8
accent
#D70F43
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D998F0

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

Preview Lab → · Contrast checker → · Palette generator →

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