#D98DFB#D98DFB

#D98DFB is a light, vivid purple. Relative luminance 0.408; OKLCH L 76.1% C 0.170 H 314.7°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#D98DFB
RGBrgb(217, 141, 251)
HSLhsl(281, 93%, 77%)
HSVhsv(281, 44%, 98%)
CMYKcmyk(13.5%, 43.8%, 0%, 1.6%)
CIE-LABlab(70.01, 47.30, -43.61)
CIE-LCHlch(70.01, 64.33, 317.32°)
OKLaboklab(76.08% 0.1196 -0.1208)
OKLCHoklch(76.08% 0.17 314.7)
XYZxyz(55.5500, 40.7679, 96.1908)
Luminance0.4077 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98DFB #AFFB8D
analogous
#A28DFB #D98DFB #FB8DE6
triadic
#D98DFB #FBD98D #8DFBD9
tetradic
#D98DFB #FBA28D #AFFB8D #8DE6FB
square
#D98DFB #FBA28D #AFFB8D #8DE6FB
split-complementary
#D98DFB #E6FB8D #8DFBA2
monochromatic
#B217F7 #C552F9 #D98DFB #EDC8FD #F5E1FE

Accessibility & contrast

On white

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

On black

9.15
#D98DFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98DFB
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98DFB#FFFFFF#000000##000000
##D98DFB1.002.299.159.15
#FFFFFF2.291.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A7FF
Deuteranopia (green-blind)
#8CADF8
Tritanopia (blue-blind)
#D79DB8
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98dfb;
/* rgb */ color: rgb(217, 141, 251);
/* oklch */ color: oklch(76.1% 0.170 314.7);
Tailwind
colors: {
  custom: {
    50: '#e6b0fd',
    500: '#d98dfb',
    950: '#000000',
  },
}
SCSS
$custom: #d98dfb;
$custom-light: #e6b0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d98dfb",
  "rgb": {
    "r": 217,
    "g": 141,
    "b": 251
  },
  "hsl": {
    "h": 281.455,
    "s": 93.22,
    "l": 76.863
  },
  "oklch": {
    "l": 0.76083,
    "c": 0.16999,
    "h": 314.7
  },
  "luminance": 0.40767
}

Semantic roles & 50–950 ramp

primary
#D98DFB
secondary
#DFF6D5
accent
#E60047
background
#FEFAFF
surface
#FDF5FF
border
#D5CFD7
text
#161117
muted
#848085

Preview Lab

Preview with #D98DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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