#D98FF4#D98FF4

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

Color values

HEX#D98FF4
RGBrgb(217, 143, 244)
HSLhsl(284, 82%, 76%)
HSVhsv(284, 41%, 96%)
CMYKcmyk(11.1%, 41.4%, 0%, 4.3%)
CIE-LABlab(70.13, 44.83, -39.61)
CIE-LCHlch(70.13, 59.82, 318.54°)
OKLaboklab(76.07% 0.1156 -0.1093)
OKLCHoklch(76.07% 0.159 316.6)
XYZxyz(54.7645, 40.9298, 90.5858)
Luminance0.4093 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98FF4 #AAF48F
analogous
#A68FF4 #D98FF4 #F48FDD
triadic
#D98FF4 #F4D98F #8FF4D9
tetradic
#D98FF4 #F4A68F #AAF48F #8FDDF4
square
#D98FF4 #F4A68F #AAF48F #8FDDF4
split-complementary
#D98FF4 #DDF48F #8FF4A6
monochromatic
#B320E9 #C657EF #D98FF4 #ECC7F9 #F6E3FC

Accessibility & contrast

On white

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

On black

9.19
#D98FF4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98FF4
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98FF4#FFFFFF#000000##000000
##D98FF41.002.299.199.19
#FFFFFF2.291.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA7F8
Deuteranopia (green-blind)
#91AEF1
Tritanopia (blue-blind)
#D89CB6
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98ff4;
/* rgb */ color: rgb(217, 143, 244);
/* oklch */ color: oklch(76.1% 0.159 316.6);
Tailwind
colors: {
  custom: {
    50: '#e6b1f8',
    500: '#d98ff4',
    950: '#000000',
  },
}
SCSS
$custom: #d98ff4;
$custom-light: #e6b1f8;
$custom-dark: #000000;
JSON
{
  "hex": "#d98ff4",
  "rgb": {
    "r": 217,
    "g": 143,
    "b": 244
  },
  "hsl": {
    "h": 283.96,
    "s": 82.114,
    "l": 75.882
  },
  "oklch": {
    "l": 0.76069,
    "c": 0.15909,
    "h": 316.6
  },
  "luminance": 0.40928
}

Semantic roles & 50–950 ramp

primary
#D98FF4
secondary
#DFF4D7
accent
#DF0741
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D98FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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