#D98AEB#D98AEB

#D98AEB is a light, vivid purple. Relative luminance 0.389; OKLCH L 74.9% C 0.158 H 320.0°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#D98AEB
RGBrgb(217, 138, 235)
HSLhsl(289, 71%, 73%)
HSVhsv(289, 41%, 92%)
CMYKcmyk(7.7%, 41.3%, 0%, 7.8%)
CIE-LABlab(68.70, 45.67, -36.90)
CIE-LCHlch(68.70, 58.72, 321.07°)
OKLaboklab(74.87% 0.121 -0.1015)
OKLCHoklch(74.87% 0.158 320)
XYZxyz(52.6973, 38.9286, 83.3192)
Luminance0.3893 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98AEB #9CEB8A
analogous
#A88AEB #D98AEB #EB8ACC
triadic
#D98AEB #EBD98A #8AEBD9
tetradic
#D98AEB #EBA88A #9CEB8A #8ACCEB
square
#D98AEB #EBA88A #9CEB8A #8ACCEB
split-complementary
#D98AEB #CCEB8A #8AEBA8
monochromatic
#B525D6 #C856E2 #D98AEB #EABEF4 #F7E5FB

Accessibility & contrast

On white

2.39
#D98AEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#D98AEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98AEB
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98AEB#FFFFFF#000000##000000
##D98AEB1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA2EE
Deuteranopia (green-blind)
#91ABE8
Tritanopia (blue-blind)
#DA96B0
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d98aeb;
/* rgb */ color: rgb(217, 138, 235);
/* oklch */ color: oklch(74.9% 0.158 320.0);
Tailwind
colors: {
  custom: {
    50: '#e6aef1',
    500: '#d98aeb',
    950: '#000000',
  },
}
SCSS
$custom: #d98aeb;
$custom-light: #e6aef1;
$custom-dark: #000000;
JSON
{
  "hex": "#d98aeb",
  "rgb": {
    "r": 217,
    "g": 138,
    "b": 235
  },
  "hsl": {
    "h": 288.866,
    "s": 70.803,
    "l": 73.137
  },
  "oklch": {
    "l": 0.74874,
    "c": 0.15791,
    "h": 320
  },
  "luminance": 0.38927
}

Semantic roles & 50–950 ramp

primary
#D98AEB
secondary
#DEF2D9
accent
#D31336
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D98AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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