#D98EF5#D98EF5

#D98EF5 is a light, vivid purple. Relative luminance 0.407; OKLCH L 76.0% C 0.162 H 316.4°. Best body text is #000000 at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#D98EF5
RGBrgb(217, 142, 245)
HSLhsl(284, 84%, 76%)
HSVhsv(284, 42%, 96%)
CMYKcmyk(11.4%, 42%, 0%, 3.9%)
CIE-LABlab(69.96, 45.55, -40.42)
CIE-LCHlch(69.96, 60.90, 318.42°)
OKLaboklab(75.96% 0.1172 -0.1116)
OKLCHoklch(75.96% 0.162 316.4)
XYZxyz(54.7673, 40.6918, 91.3378)
Luminance0.4069 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98EF5 #AAF58E
analogous
#A58EF5 #D98EF5 #F58EDE
triadic
#D98EF5 #F5D98E #8EF5D9
tetradic
#D98EF5 #F5A58E #AAF58E #8EDEF5
square
#D98EF5 #F5A58E #AAF58E #8EDEF5
split-complementary
#D98EF5 #DEF58E #8EF5A5
monochromatic
#B31EEB #C656F0 #D98EF5 #ECC6FA #F6E3FD

Accessibility & contrast

On white

2.30
#D98EF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.14
#D98EF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98EF5
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98EF5#FFFFFF#000000##000000
##D98EF51.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA6F9
Deuteranopia (green-blind)
#90ADF2
Tritanopia (blue-blind)
#D89CB6
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98ef5;
/* rgb */ color: rgb(217, 142, 245);
/* oklch */ color: oklch(76.0% 0.162 316.4);
Tailwind
colors: {
  custom: {
    50: '#e6b0f9',
    500: '#d98ef5',
    950: '#000000',
  },
}
SCSS
$custom: #d98ef5;
$custom-light: #e6b0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#d98ef5",
  "rgb": {
    "r": 217,
    "g": 142,
    "b": 245
  },
  "hsl": {
    "h": 283.689,
    "s": 83.74,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75957,
    "c": 0.16183,
    "h": 316.4
  },
  "luminance": 0.4069
}

Semantic roles & 50–950 ramp

primary
#D98EF5
secondary
#DFF4D7
accent
#E00541
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D98EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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