#D98DFD#D98DFD

#D98DFD is a light, vivid purple. Relative luminance 0.409; OKLCH L 76.2% C 0.172 H 314.1°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#D98DFD
RGBrgb(217, 141, 253)
HSLhsl(281, 97%, 77%)
HSVhsv(281, 44%, 99%)
CMYKcmyk(14.2%, 44.3%, 0%, 0.8%)
CIE-LABlab(70.10, 47.70, -44.56)
CIE-LCHlch(70.10, 65.28, 316.95°)
OKLaboklab(76.18% 0.1199 -0.1235)
OKLCHoklch(76.18% 0.172 314.1)
XYZxyz(55.8669, 40.8946, 97.8599)
Luminance0.4089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98DFD #B1FD8D
analogous
#A18DFD #D98DFD #FD8DE9
triadic
#D98DFD #FDD98D #8DFDD9
tetradic
#D98DFD #FDA18D #B1FD8D #8DE9FD
square
#D98DFD #FDA18D #B1FD8D #8DE9FD
split-complementary
#D98DFD #E9FD8D #8DFDA1
monochromatic
#B115FB #C551FC #D98DFD #EDC9FE #F5E1FE

Accessibility & contrast

On white

2.29
#D98DFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#D98DFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98DFD
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98DFD#FFFFFF#000000##000000
##D98DFD1.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A7FF
Deuteranopia (green-blind)
#8BADFA
Tritanopia (blue-blind)
#D69DB9
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98dfd;
/* rgb */ color: rgb(217, 141, 253);
/* oklch */ color: oklch(76.2% 0.172 314.1);
Tailwind
colors: {
  custom: {
    50: '#e6b0fe',
    500: '#d98dfd',
    950: '#000000',
  },
}
SCSS
$custom: #d98dfd;
$custom-light: #e6b0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d98dfd",
  "rgb": {
    "r": 217,
    "g": 141,
    "b": 253
  },
  "hsl": {
    "h": 280.714,
    "s": 96.552,
    "l": 77.255
  },
  "oklch": {
    "l": 0.76179,
    "c": 0.17218,
    "h": 314.1
  },
  "luminance": 0.40893
}

Semantic roles & 50–950 ramp

primary
#D98DFD
secondary
#DFF7D4
accent
#E6004A
background
#FEFAFF
surface
#FDF5FF
border
#D5CFD7
text
#161118
muted
#848086

Preview Lab

Preview with #D98DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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