#D98FEE#D98FEE

#D98FEE is a light, vivid purple. Relative luminance 0.406; OKLCH L 75.8% C 0.153 H 318.6°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#D98FEE
RGBrgb(217, 143, 238)
HSLhsl(287, 74%, 75%)
HSVhsv(287, 40%, 93%)
CMYKcmyk(8.8%, 39.9%, 0%, 6.7%)
CIE-LABlab(69.87, 43.63, -36.72)
CIE-LCHlch(69.87, 57.02, 319.92°)
OKLaboklab(75.8% 0.1144 -0.101)
OKLCHoklch(75.8% 0.153 318.6)
XYZxyz(53.8683, 40.5713, 85.8658)
Luminance0.4057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98FEE #A4EE8F
analogous
#AA8FEE #D98FEE #EE8FD3
triadic
#D98FEE #EED98F #8FEED9
tetradic
#D98FEE #EEAA8F #A4EE8F #8FD3EE
square
#D98FEE #EEAA8F #A4EE8F #8FD3EE
split-complementary
#D98FEE #D3EE8F #8FEEAA
monochromatic
#B525DE #C75AE6 #D98FEE #EBC4F6 #F6E4FB

Accessibility & contrast

On white

2.30
#D98FEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.11
#D98FEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98FEE
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98FEE#FFFFFF#000000##000000
##D98FEE1.002.309.119.11
#FFFFFF2.301.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A6F1
Deuteranopia (green-blind)
#94ADEB
Tritanopia (blue-blind)
#D99BB3
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98fee;
/* rgb */ color: rgb(217, 143, 238);
/* oklch */ color: oklch(75.8% 0.153 318.6);
Tailwind
colors: {
  custom: {
    50: '#e6b1f4',
    500: '#d98fee',
    950: '#000000',
  },
}
SCSS
$custom: #d98fee;
$custom-light: #e6b1f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d98fee",
  "rgb": {
    "r": 217,
    "g": 143,
    "b": 238
  },
  "hsl": {
    "h": 286.737,
    "s": 73.643,
    "l": 74.706
  },
  "oklch": {
    "l": 0.75797,
    "c": 0.15265,
    "h": 318.6
  },
  "luminance": 0.4057
}

Semantic roles & 50–950 ramp

primary
#D98FEE
secondary
#DEF3D8
accent
#D6103C
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D98FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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