#D98FFE#D98FFE

#D98FFE is a light, vivid purple. Relative luminance 0.416; OKLCH L 76.5% C 0.170 H 313.6°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#D98FFE
RGBrgb(217, 143, 254)
HSLhsl(280, 98%, 78%)
HSVhsv(280, 44%, 100%)
CMYKcmyk(14.6%, 43.7%, 0%, 0.4%)
CIE-LABlab(70.56, 46.86, -44.38)
CIE-LCHlch(70.56, 64.54, 316.56°)
OKLaboklab(76.54% 0.1173 -0.123)
OKLCHoklch(76.54% 0.17 313.6)
XYZxyz(56.3242, 41.5537, 98.8003)
Luminance0.4155 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98FFE #B4FE8F
analogous
#A18FFE #D98FFE #FE8FEB
triadic
#D98FFE #FED98F #8FFED9
tetradic
#D98FFE #FEA18F #B4FE8F #8FEBFE
square
#D98FFE #FEA18F #B4FE8F #8FEBFE
split-complementary
#D98FFE #EBFE8F #8FFEA1
monochromatic
#B016FD #C452FD #D98FFE #EECCFF #F5E1FF

Accessibility & contrast

On white

2.26
#D98FFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.31
#D98FFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98FFE
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98FFE#FFFFFF#000000##000000
##D98FFE1.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A8FF
Deuteranopia (green-blind)
#8DAFFB
Tritanopia (blue-blind)
#D69FBB
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d98ffe;
/* rgb */ color: rgb(217, 143, 254);
/* oklch */ color: oklch(76.5% 0.170 313.6);
Tailwind
colors: {
  custom: {
    50: '#e6b1ff',
    500: '#d98ffe',
    950: '#000000',
  },
}
SCSS
$custom: #d98ffe;
$custom-light: #e6b1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d98ffe",
  "rgb": {
    "r": 217,
    "g": 143,
    "b": 254
  },
  "hsl": {
    "h": 280,
    "s": 98.23,
    "l": 77.843
  },
  "oklch": {
    "l": 0.76538,
    "c": 0.17002,
    "h": 313.6
  },
  "luminance": 0.41552
}

Semantic roles & 50–950 ramp

primary
#D98FFE
secondary
#E0F7D4
accent
#E6004C
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D98FFE

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

Preview Lab → · Contrast checker → · Palette generator →

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