#D98DF8#D98DF8

#D98DF8 is a light, vivid purple. Relative luminance 0.406; OKLCH L 75.9% C 0.167 H 315.6°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#D98DF8
RGBrgb(217, 141, 248)
HSLhsl(283, 88%, 76%)
HSVhsv(283, 43%, 97%)
CMYKcmyk(12.5%, 43.1%, 0%, 2.7%)
CIE-LABlab(69.88, 46.68, -42.18)
CIE-LCHlch(69.88, 62.92, 317.90°)
OKLaboklab(75.94% 0.1191 -0.1167)
OKLCHoklch(75.94% 0.167 315.6)
XYZxyz(55.0808, 40.5802, 93.7200)
Luminance0.4058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98DF8 #ACF88D
analogous
#A48DF8 #D98DF8 #F88DE2
triadic
#D98DF8 #F8D98D #8DF8D9
tetradic
#D98DF8 #F8A48D #ACF88D #8DE2F8
square
#D98DF8 #F8A48D #ACF88D #8DE2F8
split-complementary
#D98DF8 #E2F88D #8DF8A4
monochromatic
#B31AF1 #C653F4 #D98DF8 #ECC7FC #F5E2FD

Accessibility & contrast

On white

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

On black

9.12
#D98DF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98DF8
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98DF8#FFFFFF#000000##000000
##D98DF81.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA6FC
Deuteranopia (green-blind)
#8EADF5
Tritanopia (blue-blind)
#D79CB7
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98df8;
/* rgb */ color: rgb(217, 141, 248);
/* oklch */ color: oklch(75.9% 0.167 315.6);
Tailwind
colors: {
  custom: {
    50: '#e6b0fb',
    500: '#d98df8',
    950: '#000000',
  },
}
SCSS
$custom: #d98df8;
$custom-light: #e6b0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d98df8",
  "rgb": {
    "r": 217,
    "g": 141,
    "b": 248
  },
  "hsl": {
    "h": 282.617,
    "s": 88.43,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75941,
    "c": 0.16673,
    "h": 315.6
  },
  "luminance": 0.40579
}

Semantic roles & 50–950 ramp

primary
#D98DF8
secondary
#DFF5D6
accent
#E50043
background
#FEFAFF
surface
#FDF5FF
border
#D5CFD7
text
#161117
muted
#848085

Preview Lab

Preview with #D98DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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