#D98CFD#D98CFD

#D98CFD is a light, vivid purple. Relative luminance 0.406; OKLCH L 76.0% C 0.174 H 314.3°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#D98CFD
RGBrgb(217, 140, 253)
HSLhsl(281, 97%, 77%)
HSVhsv(281, 45%, 99%)
CMYKcmyk(14.2%, 44.7%, 0%, 0.8%)
CIE-LABlab(69.90, 48.23, -44.88)
CIE-LCHlch(69.90, 65.88, 317.06°)
OKLaboklab(76.02% 0.1213 -0.1245)
OKLCHoklch(76.02% 0.174 314.3)
XYZxyz(55.7201, 40.6011, 97.8110)
Luminance0.4060 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98CFD #B0FD8C
analogous
#A18CFD #D98CFD #FD8CE9
triadic
#D98CFD #FDD98C #8CFDD9
tetradic
#D98CFD #FDA18C #B0FD8C #8CE9FD
square
#D98CFD #FDA18C #B0FD8C #8CE9FD
split-complementary
#D98CFD #E9FD8C #8CFDA1
monochromatic
#B114FB #C550FC #D98CFD #EDC8FE #F5E1FE

Accessibility & contrast

On white

2.30
#D98CFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.12
#D98CFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98CFD
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98CFD#FFFFFF#000000##000000
##D98CFD1.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A6FF
Deuteranopia (green-blind)
#8BADFA
Tritanopia (blue-blind)
#D69CB9
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98cfd;
/* rgb */ color: rgb(217, 140, 253);
/* oklch */ color: oklch(76.0% 0.174 314.3);
Tailwind
colors: {
  custom: {
    50: '#e6affe',
    500: '#d98cfd',
    950: '#000000',
  },
}
SCSS
$custom: #d98cfd;
$custom-light: #e6affe;
$custom-dark: #000000;
JSON
{
  "hex": "#d98cfd",
  "rgb": {
    "r": 217,
    "g": 140,
    "b": 253
  },
  "hsl": {
    "h": 280.885,
    "s": 96.581,
    "l": 77.059
  },
  "oklch": {
    "l": 0.76025,
    "c": 0.1738,
    "h": 314.3
  },
  "luminance": 0.406
}

Semantic roles & 50–950 ramp

primary
#D98CFD
secondary
#DFF7D4
accent
#E60049
background
#FEFAFF
surface
#FDF5FF
border
#D5CFD7
text
#161018
muted
#847F86

Preview Lab

Preview with #D98CFD

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

Preview Lab → · Contrast checker → · Palette generator →

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