#D98AFF#D98AFF

#D98AFF is a light, vivid purple. Relative luminance 0.401; OKLCH L 75.8% C 0.179 H 313.9°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#D98AFF
RGBrgb(217, 138, 255)
HSLhsl(281, 100%, 77%)
HSVhsv(281, 46%, 100%)
CMYKcmyk(14.9%, 45.9%, 0%, 0%)
CIE-LABlab(69.58, 49.68, -46.47)
CIE-LCHlch(69.58, 68.03, 316.91°)
OKLaboklab(75.82% 0.1243 -0.1291)
OKLCHoklch(75.82% 0.179 313.9)
XYZxyz(55.7508, 40.1500, 99.4012)
Luminance0.4015 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98AFF #B0FF8A
analogous
#9F8AFF #D98AFF #FF8AEA
triadic
#D98AFF #FFD98A #8AFFD9
tetradic
#D98AFF #FF9F8A #B0FF8A #8AEAFF
square
#D98AFF #FF9F8A #B0FF8A #8AEAFF
split-complementary
#D98AFF #EAFF8A #8AFF9F
monochromatic
#B110FF #C54DFF #D98AFF #EDC7FF #F5E0FF

Accessibility & contrast

On white

2.33
#D98AFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.03
#D98AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98AFF
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98AFF#FFFFFF#000000##000000
##D98AFF1.002.339.039.03
#FFFFFF2.331.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A5FF
Deuteranopia (green-blind)
#88ACFC
Tritanopia (blue-blind)
#D69BB9
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #d98aff;
/* rgb */ color: rgb(217, 138, 255);
/* oklch */ color: oklch(75.8% 0.179 313.9);
Tailwind
colors: {
  custom: {
    50: '#e7aeff',
    500: '#d98aff',
    950: '#000000',
  },
}
SCSS
$custom: #d98aff;
$custom-light: #e7aeff;
$custom-dark: #000000;
JSON
{
  "hex": "#d98aff",
  "rgb": {
    "r": 217,
    "g": 138,
    "b": 255
  },
  "hsl": {
    "h": 280.513,
    "s": 100,
    "l": 77.059
  },
  "oklch": {
    "l": 0.75816,
    "c": 0.1792,
    "h": 313.9
  },
  "luminance": 0.40149
}

Semantic roles & 50–950 ramp

primary
#D98AFF
secondary
#DFF7D4
accent
#E6004B
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D98AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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