#D98BF9#D98BF9

#D98BF9 is a light, vivid purple. Relative luminance 0.401; OKLCH L 75.7% C 0.171 H 315.5°. Best body text is #000000 at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#D98BF9
RGBrgb(217, 139, 249)
HSLhsl(283, 90%, 76%)
HSVhsv(283, 44%, 98%)
CMYKcmyk(12.9%, 44.2%, 0%, 2.4%)
CIE-LABlab(69.51, 47.93, -43.30)
CIE-LCHlch(69.51, 64.60, 317.91°)
OKLaboklab(75.68% 0.122 -0.1199)
OKLCHoklch(75.68% 0.171 315.5)
XYZxyz(54.9441, 40.0580, 94.4418)
Luminance0.4006 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98BF9 #ABF98B
analogous
#A28BF9 #D98BF9 #F98BE2
triadic
#D98BF9 #F9D98B #8BF9D9
tetradic
#D98BF9 #F9A28B #ABF98B #8BE2F9
square
#D98BF9 #F9A28B #ABF98B #8BE2F9
split-complementary
#D98BF9 #E2F98B #8BF9A2
monochromatic
#B317F3 #C651F6 #D98BF9 #ECC5FC #F5E2FD

Accessibility & contrast

On white

2.33
#D98BF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.01
#D98BF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98BF9
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98BF9#FFFFFF#000000##000000
##D98BF91.002.339.019.01
#FFFFFF2.331.0021.0021.00
#0000009.0121.001.001.00
##0000009.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A5FD
Deuteranopia (green-blind)
#8CACF6
Tritanopia (blue-blind)
#D79BB6
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #d98bf9;
/* rgb */ color: rgb(217, 139, 249);
/* oklch */ color: oklch(75.7% 0.171 315.5);
Tailwind
colors: {
  custom: {
    50: '#e6aefb',
    500: '#d98bf9',
    950: '#000000',
  },
}
SCSS
$custom: #d98bf9;
$custom-light: #e6aefb;
$custom-dark: #000000;
JSON
{
  "hex": "#d98bf9",
  "rgb": {
    "r": 217,
    "g": 139,
    "b": 249
  },
  "hsl": {
    "h": 282.545,
    "s": 90.164,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75679,
    "c": 0.17109,
    "h": 315.5
  },
  "luminance": 0.40057
}

Semantic roles & 50–950 ramp

primary
#D98BF9
secondary
#DFF6D5
accent
#E60043
background
#FEFAFF
surface
#FDF5FF
border
#D5CFD7
text
#161017
muted
#847F85

Preview Lab

Preview with #D98BF9

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

Preview Lab → · Contrast checker → · Palette generator →

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