#D98FEF#D98FEF

#D98FEF is a light, vivid purple. Relative luminance 0.406; OKLCH L 75.8% C 0.154 H 318.2°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#D98FEF
RGBrgb(217, 143, 239)
HSLhsl(286, 75%, 75%)
HSVhsv(286, 40%, 94%)
CMYKcmyk(9.2%, 40.2%, 0%, 6.3%)
CIE-LABlab(69.92, 43.83, -37.20)
CIE-LCHlch(69.92, 57.49, 319.68°)
OKLaboklab(75.84% 0.1146 -0.1024)
OKLCHoklch(75.84% 0.154 318.2)
XYZxyz(54.0156, 40.6302, 86.6416)
Luminance0.4063 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98FEF #A5EF8F
analogous
#A98FEF #D98FEF #EF8FD5
triadic
#D98FEF #EFD98F #8FEFD9
tetradic
#D98FEF #EFA98F #A5EF8F #8FD5EF
square
#D98FEF #EFA98F #A5EF8F #8FD5EF
split-complementary
#D98FEF #D5EF8F #8FEFA9
monochromatic
#B524E0 #C759E7 #D98FEF #EBC5F7 #F6E4FB

Accessibility & contrast

On white

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

On black

9.13
#D98FEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98FEF
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98FEF#FFFFFF#000000##000000
##D98FEF1.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A6F3
Deuteranopia (green-blind)
#94ADEC
Tritanopia (blue-blind)
#D99BB4
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98fef;
/* rgb */ color: rgb(217, 143, 239);
/* oklch */ color: oklch(75.8% 0.154 318.2);
Tailwind
colors: {
  custom: {
    50: '#e6b1f4',
    500: '#d98fef',
    950: '#000000',
  },
}
SCSS
$custom: #d98fef;
$custom-light: #e6b1f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d98fef",
  "rgb": {
    "r": 217,
    "g": 143,
    "b": 239
  },
  "hsl": {
    "h": 286.25,
    "s": 75,
    "l": 74.902
  },
  "oklch": {
    "l": 0.75841,
    "c": 0.15371,
    "h": 318.2
  },
  "luminance": 0.40629
}

Semantic roles & 50–950 ramp

primary
#D98FEF
secondary
#DEF3D8
accent
#D70E3C
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D98FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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