#D98AFE#D98AFE

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

Color values

HEX#D98AFE
RGBrgb(217, 138, 254)
HSLhsl(281, 98%, 77%)
HSVhsv(281, 46%, 100%)
CMYKcmyk(14.6%, 45.7%, 0%, 0.4%)
CIE-LABlab(69.53, 49.48, -46.00)
CIE-LCHlch(69.53, 67.56, 317.09°)
OKLaboklab(75.77% 0.1242 -0.1277)
OKLCHoklch(75.77% 0.178 314.2)
XYZxyz(55.5903, 40.0858, 98.5557)
Luminance0.4008 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98AFE #AFFE8A
analogous
#9F8AFE #D98AFE #FE8AE9
triadic
#D98AFE #FED98A #8AFED9
tetradic
#D98AFE #FE9F8A #AFFE8A #8AE9FE
square
#D98AFE #FE9F8A #AFFE8A #8AE9FE
split-complementary
#D98AFE #E9FE8A #8AFE9F
monochromatic
#B211FD #C54DFD #D98AFE #EDC7FF #F5E1FF

Accessibility & contrast

On white

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

On black

9.02
#D98AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98AFE
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98AFE#FFFFFF#000000##000000
##D98AFE1.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A5FF
Deuteranopia (green-blind)
#88ACFB
Tritanopia (blue-blind)
#D69BB8
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #d98afe;
/* rgb */ color: rgb(217, 138, 254);
/* oklch */ color: oklch(75.8% 0.178 314.2);
Tailwind
colors: {
  custom: {
    50: '#e7aeff',
    500: '#d98afe',
    950: '#000000',
  },
}
SCSS
$custom: #d98afe;
$custom-light: #e7aeff;
$custom-dark: #000000;
JSON
{
  "hex": "#d98afe",
  "rgb": {
    "r": 217,
    "g": 138,
    "b": 254
  },
  "hsl": {
    "h": 280.862,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.75767,
    "c": 0.17812,
    "h": 314.2
  },
  "luminance": 0.40084
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D98AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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