#D98EF2#D98EF2

#D98EF2 is a light, vivid purple. Relative luminance 0.405; OKLCH L 75.8% C 0.159 H 317.3°. Best body text is #000000 at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#D98EF2
RGBrgb(217, 142, 242)
HSLhsl(285, 79%, 75%)
HSVhsv(285, 41%, 95%)
CMYKcmyk(10.3%, 41.3%, 0%, 5.1%)
CIE-LABlab(69.83, 44.95, -38.98)
CIE-LCHlch(69.83, 59.50, 319.07°)
OKLaboklab(75.82% 0.1166 -0.1075)
OKLCHoklch(75.82% 0.159 317.3)
XYZxyz(54.3130, 40.5101, 88.9453)
Luminance0.4051 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98EF2 #A7F28E
analogous
#A78EF2 #D98EF2 #F28ED9
triadic
#D98EF2 #F2D98E #8EF2D9
tetradic
#D98EF2 #F2A78E #A7F28E #8ED9F2
square
#D98EF2 #F2A78E #A7F28E #8ED9F2
split-complementary
#D98EF2 #D9F28E #8EF2A7
monochromatic
#B420E5 #C757EC #D98EF2 #EBC5F8 #F6E4FC

Accessibility & contrast

On white

2.31
#D98EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.10
#D98EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98EF2
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98EF2#FFFFFF#000000##000000
##D98EF21.002.319.109.10
#FFFFFF2.311.0021.0021.00
#0000009.1021.001.001.00
##0000009.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA6F6
Deuteranopia (green-blind)
#91ADEF
Tritanopia (blue-blind)
#D99BB5
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98ef2;
/* rgb */ color: rgb(217, 142, 242);
/* oklch */ color: oklch(75.8% 0.159 317.3);
Tailwind
colors: {
  custom: {
    50: '#e6b0f6',
    500: '#d98ef2',
    950: '#000000',
  },
}
SCSS
$custom: #d98ef2;
$custom-light: #e6b0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#d98ef2",
  "rgb": {
    "r": 217,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 285,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.75819,
    "c": 0.1586,
    "h": 317.3
  },
  "luminance": 0.40509
}

Semantic roles & 50–950 ramp

primary
#D98EF2
secondary
#DEF4D7
accent
#DC0A3E
background
#FEFBFF
surface
#FDF6FE
border
#D5D0D6
text
#161117
muted
#848085

Preview Lab

Preview with #D98EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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