#D98FFC#D98FFC

#D98FFC is a light, vivid purple. Relative luminance 0.414; OKLCH L 76.4% C 0.168 H 314.2°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#D98FFC
RGBrgb(217, 143, 252)
HSLhsl(281, 95%, 77%)
HSVhsv(281, 43%, 99%)
CMYKcmyk(13.9%, 43.3%, 0%, 1.2%)
CIE-LABlab(70.47, 46.45, -43.43)
CIE-LCHlch(70.47, 63.59, 316.92°)
OKLaboklab(76.44% 0.117 -0.1203)
OKLCHoklch(76.44% 0.168 314.2)
XYZxyz(56.0056, 41.4262, 97.1224)
Luminance0.4143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98FFC #B2FC8F
analogous
#A38FFC #D98FFC #FC8FE9
triadic
#D98FFC #FCD98F #8FFCD9
tetradic
#D98FFC #FCA38F #B2FC8F #8FE9FC
square
#D98FFC #FCA38F #B2FC8F #8FE9FC
split-complementary
#D98FFC #E9FC8F #8FFCA3
monochromatic
#B118F9 #C553FA #D98FFC #EDCBFE #F5E1FE

Accessibility & contrast

On white

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

On black

9.29
#D98FFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98FFC
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98FFC#FFFFFF#000000##000000
##D98FFC1.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA8FF
Deuteranopia (green-blind)
#8EAEF9
Tritanopia (blue-blind)
#D79FBA
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d98ffc;
/* rgb */ color: rgb(217, 143, 252);
/* oklch */ color: oklch(76.4% 0.168 314.2);
Tailwind
colors: {
  custom: {
    50: '#e6b1fe',
    500: '#d98ffc',
    950: '#000000',
  },
}
SCSS
$custom: #d98ffc;
$custom-light: #e6b1fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d98ffc",
  "rgb": {
    "r": 217,
    "g": 143,
    "b": 252
  },
  "hsl": {
    "h": 280.734,
    "s": 94.783,
    "l": 77.451
  },
  "oklch": {
    "l": 0.76442,
    "c": 0.16782,
    "h": 314.2
  },
  "luminance": 0.41425
}

Semantic roles & 50–950 ramp

primary
#D98FFC
secondary
#DFF6D5
accent
#E6004A
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D98FFC

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

Preview Lab → · Contrast checker → · Palette generator →

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