#D98DF2#D98DF2

#D98DF2 is a light, vivid purple. Relative luminance 0.402; OKLCH L 75.7% C 0.160 H 317.4°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#D98DF2
RGBrgb(217, 141, 242)
HSLhsl(285, 80%, 75%)
HSVhsv(285, 42%, 95%)
CMYKcmyk(10.3%, 41.7%, 0%, 5.1%)
CIE-LABlab(69.62, 45.48, -39.30)
CIE-LCHlch(69.62, 60.11, 319.17°)
OKLaboklab(75.66% 0.118 -0.1084)
OKLCHoklch(75.66% 0.16 317.4)
XYZxyz(54.1649, 40.2138, 88.8960)
Luminance0.4021 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98DF2 #A6F28D
analogous
#A78DF2 #D98DF2 #F28DD8
triadic
#D98DF2 #F2D98D #8DF2D9
tetradic
#D98DF2 #F2A78D #A6F28D #8DD8F2
square
#D98DF2 #F2A78D #A6F28D #8DD8F2
split-complementary
#D98DF2 #D8F28D #8DF2A7
monochromatic
#B41FE5 #C756EC #D98DF2 #EBC4F8 #F6E4FC

Accessibility & contrast

On white

2.32
#D98DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.04
#D98DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98DF2
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98DF2#FFFFFF#000000##000000
##D98DF21.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA5F6
Deuteranopia (green-blind)
#91ADEF
Tritanopia (blue-blind)
#D99AB4
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #d98df2;
/* rgb */ color: rgb(217, 141, 242);
/* oklch */ color: oklch(75.7% 0.160 317.4);
Tailwind
colors: {
  custom: {
    50: '#e6b0f6',
    500: '#d98df2',
    950: '#000000',
  },
}
SCSS
$custom: #d98df2;
$custom-light: #e6b0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#d98df2",
  "rgb": {
    "r": 217,
    "g": 141,
    "b": 242
  },
  "hsl": {
    "h": 285.149,
    "s": 79.528,
    "l": 75.098
  },
  "oklch": {
    "l": 0.75662,
    "c": 0.16028,
    "h": 317.4
  },
  "luminance": 0.40212
}

Semantic roles & 50–950 ramp

primary
#D98DF2
secondary
#DEF4D7
accent
#DC0A3E
background
#FEFAFF
surface
#FDF5FE
border
#D5CFD6
text
#161117
muted
#848085

Preview Lab

Preview with #D98DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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