#D98EF8#D98EF8

#D98EF8 is a light, vivid purple. Relative luminance 0.409; OKLCH L 76.1% C 0.165 H 315.5°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#D98EF8
RGBrgb(217, 142, 248)
HSLhsl(282, 88%, 76%)
HSVhsv(282, 43%, 97%)
CMYKcmyk(12.5%, 42.7%, 0%, 2.7%)
CIE-LABlab(70.09, 46.16, -41.85)
CIE-LCHlch(70.09, 62.31, 317.80°)
OKLaboklab(76.1% 0.1177 -0.1157)
OKLCHoklch(76.1% 0.165 315.5)
XYZxyz(55.2290, 40.8764, 93.7693)
Luminance0.4088 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98EF8 #ADF88E
analogous
#A48EF8 #D98EF8 #F88EE2
triadic
#D98EF8 #F8D98E #8EF8D9
tetradic
#D98EF8 #F8A48E #ADF88E #8EE2F8
square
#D98EF8 #F8A48E #ADF88E #8EE2F8
split-complementary
#D98EF8 #E2F88E #8EF8A4
monochromatic
#B21BF1 #C654F4 #D98EF8 #ECC8FC #F5E2FD

Accessibility & contrast

On white

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

On black

9.17
#D98EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98EF8
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98EF8#FFFFFF#000000##000000
##D98EF81.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA7FC
Deuteranopia (green-blind)
#8FAEF5
Tritanopia (blue-blind)
#D79DB7
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98ef8;
/* rgb */ color: rgb(217, 142, 248);
/* oklch */ color: oklch(76.1% 0.165 315.5);
Tailwind
colors: {
  custom: {
    50: '#e6b0fb',
    500: '#d98ef8',
    950: '#000000',
  },
}
SCSS
$custom: #d98ef8;
$custom-light: #e6b0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d98ef8",
  "rgb": {
    "r": 217,
    "g": 142,
    "b": 248
  },
  "hsl": {
    "h": 282.453,
    "s": 88.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.76097,
    "c": 0.16509,
    "h": 315.5
  },
  "luminance": 0.40875
}

Semantic roles & 50–950 ramp

primary
#D98EF8
secondary
#DFF5D6
accent
#E50143
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D98EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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