#D998F4#D998F4

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

Color values

HEX#D998F4
RGBrgb(217, 152, 244)
HSLhsl(282, 81%, 78%)
HSVhsv(282, 38%, 96%)
CMYKcmyk(11.1%, 37.7%, 0%, 4.3%)
CIE-LABlab(72.06, 40.04, -36.61)
CIE-LCHlch(72.06, 54.25, 317.57°)
OKLaboklab(77.52% 0.1028 -0.1008)
OKLCHoklch(77.52% 0.144 315.6)
XYZxyz(56.1702, 43.7411, 91.0543)
Luminance0.4374 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D998F4 #B3F498
analogous
#AB98F4 #D998F4 #F498E1
triadic
#D998F4 #F4D998 #98F4D9
tetradic
#D998F4 #F4AB98 #B3F498 #98E1F4
square
#D998F4 #F4AB98 #B3F498 #98E1F4
split-complementary
#D998F4 #E1F498 #98F4AB
monochromatic
#B029E8 #C561EE #D998F4 #EDCFFA #F5E3FC

Accessibility & contrast

On white

2.15
#D998F4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.75
#D998F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D998F4
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D998F4#FFFFFF#000000##000000
##D998F41.002.159.759.75
#FFFFFF2.151.0021.0021.00
#0000009.7521.001.001.00
##0000009.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#89ADF7
Deuteranopia (green-blind)
#99B3F1
Tritanopia (blue-blind)
#D8A4BB
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #d998f4;
/* rgb */ color: rgb(217, 152, 244);
/* oklch */ color: oklch(77.5% 0.144 315.6);
Tailwind
colors: {
  custom: {
    50: '#e6b7f8',
    500: '#d998f4',
    950: '#000000',
  },
}
SCSS
$custom: #d998f4;
$custom-light: #e6b7f8;
$custom-dark: #000000;
JSON
{
  "hex": "#d998f4",
  "rgb": {
    "r": 217,
    "g": 152,
    "b": 244
  },
  "hsl": {
    "h": 282.391,
    "s": 80.702,
    "l": 77.647
  },
  "oklch": {
    "l": 0.7752,
    "c": 0.14397,
    "h": 315.6
  },
  "luminance": 0.4374
}

Semantic roles & 50–950 ramp

primary
#D998F4
secondary
#E0F4D7
accent
#DD0847
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D998F4

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

Preview Lab → · Contrast checker → · Palette generator →

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