#D98AF1#D98AF1

#D98AF1 is a light, vivid purple. Relative luminance 0.393; OKLCH L 75.1% C 0.164 H 318.0°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#D98AF1
RGBrgb(217, 138, 241)
HSLhsl(286, 79%, 74%)
HSVhsv(286, 43%, 95%)
CMYKcmyk(10%, 42.7%, 0%, 5.5%)
CIE-LABlab(68.95, 46.85, -39.80)
CIE-LCHlch(68.95, 61.47, 319.66°)
OKLaboklab(75.15% 0.1221 -0.1098)
OKLCHoklch(75.15% 0.164 318)
XYZxyz(53.5787, 39.2812, 87.9617)
Luminance0.3928 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98AF1 #A2F18A
analogous
#A68AF1 #D98AF1 #F18AD6
triadic
#D98AF1 #F1D98A #8AF1D9
tetradic
#D98AF1 #F1A68A #A2F18A #8AD6F1
square
#D98AF1 #F1A68A #A2F18A #8AD6F1
split-complementary
#D98AF1 #D6F18A #8AF1A6
monochromatic
#B51DE4 #C753EA #D98AF1 #EBC1F8 #F6E4FC

Accessibility & contrast

On white

2.37
#D98AF1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#D98AF1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98AF1
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98AF1#FFFFFF#000000##000000
##D98AF11.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA3F5
Deuteranopia (green-blind)
#8FABEE
Tritanopia (blue-blind)
#D998B2
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d98af1;
/* rgb */ color: rgb(217, 138, 241);
/* oklch */ color: oklch(75.1% 0.164 318.0);
Tailwind
colors: {
  custom: {
    50: '#e6aef6',
    500: '#d98af1',
    950: '#000000',
  },
}
SCSS
$custom: #d98af1;
$custom-light: #e6aef6;
$custom-dark: #000000;
JSON
{
  "hex": "#d98af1",
  "rgb": {
    "r": 217,
    "g": 138,
    "b": 241
  },
  "hsl": {
    "h": 286.019,
    "s": 78.626,
    "l": 74.314
  },
  "oklch": {
    "l": 0.75148,
    "c": 0.1642,
    "h": 318
  },
  "luminance": 0.3928
}

Semantic roles & 50–950 ramp

primary
#D98AF1
secondary
#DEF4D7
accent
#DB0B3B
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D98AF1

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

Preview Lab → · Contrast checker → · Palette generator →

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