#D98FF2#D98FF2

#D98FF2 is a light, vivid purple. Relative luminance 0.408; OKLCH L 76.0% C 0.157 H 317.2°. Best body text is #000000 at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#D98FF2
RGBrgb(217, 143, 242)
HSLhsl(285, 79%, 75%)
HSVhsv(285, 41%, 95%)
CMYKcmyk(10.3%, 40.9%, 0%, 5.1%)
CIE-LABlab(70.04, 44.42, -38.65)
CIE-LCHlch(70.04, 58.88, 318.98°)
OKLaboklab(75.98% 0.1152 -0.1065)
OKLCHoklch(75.98% 0.157 317.2)
XYZxyz(54.4625, 40.8090, 88.9952)
Luminance0.4081 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98FF2 #A8F28F
analogous
#A78FF2 #D98FF2 #F28FDA
triadic
#D98FF2 #F2D98F #8FF2D9
tetradic
#D98FF2 #F2A78F #A8F28F #8FDAF2
square
#D98FF2 #F2A78F #A8F28F #8FDAF2
split-complementary
#D98FF2 #DAF28F #8FF2A7
monochromatic
#B421E5 #C658EC #D98FF2 #ECC6F8 #F6E4FC

Accessibility & contrast

On white

2.29
#D98FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.16
#D98FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98FF2
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98FF2#FFFFFF#000000##000000
##D98FF21.002.299.169.16
#FFFFFF2.291.0021.0021.00
#0000009.1621.001.001.00
##0000009.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA6F6
Deuteranopia (green-blind)
#92AEEF
Tritanopia (blue-blind)
#D99CB5
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98ff2;
/* rgb */ color: rgb(217, 143, 242);
/* oklch */ color: oklch(76.0% 0.157 317.2);
Tailwind
colors: {
  custom: {
    50: '#e6b1f6',
    500: '#d98ff2',
    950: '#000000',
  },
}
SCSS
$custom: #d98ff2;
$custom-light: #e6b1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#d98ff2",
  "rgb": {
    "r": 217,
    "g": 143,
    "b": 242
  },
  "hsl": {
    "h": 284.848,
    "s": 79.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.75977,
    "c": 0.15693,
    "h": 317.2
  },
  "luminance": 0.40807
}

Semantic roles & 50–950 ramp

primary
#D98FF2
secondary
#DFF4D7
accent
#DB0A3F
background
#FEFBFF
surface
#FCF6FE
border
#D5D0D6
text
#161117
muted
#848085

Preview Lab

Preview with #D98FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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