#D98FF9#D98FF9

#D98FF9 is a light, vivid purple. Relative luminance 0.412; OKLCH L 76.3% C 0.165 H 315.1°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#D98FF9
RGBrgb(217, 143, 249)
HSLhsl(282, 90%, 77%)
HSVhsv(282, 43%, 98%)
CMYKcmyk(12.9%, 42.6%, 0%, 2.4%)
CIE-LABlab(70.34, 45.84, -42.00)
CIE-LCHlch(70.34, 62.17, 317.50°)
OKLaboklab(76.3% 0.1165 -0.1162)
OKLCHoklch(76.3% 0.165 315.1)
XYZxyz(55.5340, 41.2376, 94.6384)
Luminance0.4124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98FF9 #AFF98F
analogous
#A48FF9 #D98FF9 #F98FE4
triadic
#D98FF9 #F9D98F #8FF9D9
tetradic
#D98FF9 #F9A48F #AFF98F #8FE4F9
square
#D98FF9 #F9A48F #AFF98F #8FE4F9
split-complementary
#D98FF9 #E4F98F #8FF9A4
monochromatic
#B21BF3 #C555F6 #D98FF9 #EDC9FC #F5E2FD

Accessibility & contrast

On white

2.27
#D98FF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#D98FF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98FF9
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98FF9#FFFFFF#000000##000000
##D98FF91.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA8FD
Deuteranopia (green-blind)
#8FAEF6
Tritanopia (blue-blind)
#D79EB8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d98ff9;
/* rgb */ color: rgb(217, 143, 249);
/* oklch */ color: oklch(76.3% 0.165 315.1);
Tailwind
colors: {
  custom: {
    50: '#e6b1fb',
    500: '#d98ff9',
    950: '#000000',
  },
}
SCSS
$custom: #d98ff9;
$custom-light: #e6b1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d98ff9",
  "rgb": {
    "r": 217,
    "g": 143,
    "b": 249
  },
  "hsl": {
    "h": 281.887,
    "s": 89.831,
    "l": 76.863
  },
  "oklch": {
    "l": 0.76301,
    "c": 0.16453,
    "h": 315.1
  },
  "luminance": 0.41236
}

Semantic roles & 50–950 ramp

primary
#D98FF9
secondary
#DFF6D5
accent
#E60045
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D98FF9

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

Preview Lab → · Contrast checker → · Palette generator →

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