#D98DEC#D98DEC

#D98DEC is a light, vivid purple. Relative luminance 0.399; OKLCH L 75.4% C 0.154 H 319.4°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#D98DEC
RGBrgb(217, 141, 236)
HSLhsl(288, 71%, 74%)
HSVhsv(288, 40%, 93%)
CMYKcmyk(8.1%, 40.3%, 0%, 7.5%)
CIE-LABlab(69.37, 44.29, -36.41)
CIE-LCHlch(69.37, 57.33, 320.58°)
OKLaboklab(75.39% 0.1169 -0.1001)
OKLCHoklch(75.39% 0.154 319.4)
XYZxyz(53.2785, 39.8593, 84.2277)
Luminance0.3986 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98DEC #A0EC8D
analogous
#AA8DEC #D98DEC #EC8DD0
triadic
#D98DEC #ECD98D #8DECD9
tetradic
#D98DEC #ECAA8D #A0EC8D #8DD0EC
square
#D98DEC #ECAA8D #A0EC8D #8DD0EC
split-complementary
#D98DEC #D0EC8D #8DECAA
monochromatic
#B624DA #C859E3 #D98DEC #EAC1F5 #F6E5FB

Accessibility & contrast

On white

2.34
#D98DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#D98DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98DEC
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98DEC#FFFFFF#000000##000000
##D98DEC1.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A4EF
Deuteranopia (green-blind)
#93ACE9
Tritanopia (blue-blind)
#DA99B1
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #d98dec;
/* rgb */ color: rgb(217, 141, 236);
/* oklch */ color: oklch(75.4% 0.154 319.4);
Tailwind
colors: {
  custom: {
    50: '#e6b0f2',
    500: '#d98dec',
    950: '#000000',
  },
}
SCSS
$custom: #d98dec;
$custom-light: #e6b0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d98dec",
  "rgb": {
    "r": 217,
    "g": 141,
    "b": 236
  },
  "hsl": {
    "h": 288,
    "s": 71.429,
    "l": 73.922
  },
  "oklch": {
    "l": 0.7539,
    "c": 0.15391,
    "h": 319.4
  },
  "luminance": 0.39858
}

Semantic roles & 50–950 ramp

primary
#D98DEC
secondary
#DEF2D9
accent
#D31239
background
#FEFAFE
surface
#FCF5FD
border
#D5CFD5
text
#161017
muted
#847F85

Preview Lab

Preview with #D98DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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