#D98EF7#D98EF7

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

Color values

HEX#D98EF7
RGBrgb(217, 142, 247)
HSLhsl(283, 87%, 76%)
HSVhsv(283, 43%, 97%)
CMYKcmyk(12.1%, 42.5%, 0%, 3.1%)
CIE-LABlab(70.05, 45.96, -41.37)
CIE-LCHlch(70.05, 61.84, 318.00°)
OKLaboklab(76.05% 0.1175 -0.1144)
OKLCHoklch(76.05% 0.164 315.8)
XYZxyz(55.0742, 40.8146, 92.9545)
Luminance0.4081 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98EF7 #ACF78E
analogous
#A58EF7 #D98EF7 #F78EE1
triadic
#D98EF7 #F7D98E #8EF7D9
tetradic
#D98EF7 #F7A58E #ACF78E #8EE1F7
square
#D98EF7 #F7A58E #ACF78E #8EE1F7
split-complementary
#D98EF7 #E1F78E #8EF7A5
monochromatic
#B31CEF #C655F3 #D98EF7 #ECC7FB #F5E2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D98EF7#FFFFFF#000000##000000
##D98EF71.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)
#7CA7FB
Deuteranopia (green-blind)
#8FADF4
Tritanopia (blue-blind)
#D89CB7
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98ef7;
/* rgb */ color: rgb(217, 142, 247);
/* oklch */ color: oklch(76.0% 0.164 315.8);
Tailwind
colors: {
  custom: {
    50: '#e6b0fa',
    500: '#d98ef7',
    950: '#000000',
  },
}
SCSS
$custom: #d98ef7;
$custom-light: #e6b0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d98ef7",
  "rgb": {
    "r": 217,
    "g": 142,
    "b": 247
  },
  "hsl": {
    "h": 282.857,
    "s": 86.777,
    "l": 76.275
  },
  "oklch": {
    "l": 0.7605,
    "c": 0.16401,
    "h": 315.8
  },
  "luminance": 0.40813
}

Semantic roles & 50–950 ramp

primary
#D98EF7
secondary
#DFF5D6
accent
#E30243
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D98EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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