#D98EFB#D98EFB

#D98EFB is a light, vivid purple. Relative luminance 0.411; OKLCH L 76.2% C 0.168 H 314.6°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#D98EFB
RGBrgb(217, 142, 251)
HSLhsl(281, 93%, 77%)
HSVhsv(281, 43%, 98%)
CMYKcmyk(13.5%, 43.4%, 0%, 1.6%)
CIE-LABlab(70.22, 46.77, -43.28)
CIE-LCHlch(70.22, 63.72, 317.22°)
OKLaboklab(76.24% 0.1182 -0.1199)
OKLCHoklch(76.24% 0.168 314.6)
XYZxyz(55.6981, 41.0641, 96.2402)
Luminance0.4106 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98EFB #B0FB8E
analogous
#A38EFB #D98EFB #FB8EE7
triadic
#D98EFB #FBD98E #8EFBD9
tetradic
#D98EFB #FBA38E #B0FB8E #8EE7FB
square
#D98EFB #FBA38E #B0FB8E #8EE7FB
split-complementary
#D98EFB #E7FB8E #8EFBA3
monochromatic
#B118F7 #C553F9 #D98EFB #EDC9FD #F5E1FE

Accessibility & contrast

On white

2.28
#D98EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.21
#D98EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98EFB
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98EFB#FFFFFF#000000##000000
##D98EFB1.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A7FF
Deuteranopia (green-blind)
#8DAEF8
Tritanopia (blue-blind)
#D79EB9
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d98efb;
/* rgb */ color: rgb(217, 142, 251);
/* oklch */ color: oklch(76.2% 0.168 314.6);
Tailwind
colors: {
  custom: {
    50: '#e6b0fd',
    500: '#d98efb',
    950: '#000000',
  },
}
SCSS
$custom: #d98efb;
$custom-light: #e6b0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d98efb",
  "rgb": {
    "r": 217,
    "g": 142,
    "b": 251
  },
  "hsl": {
    "h": 281.284,
    "s": 93.162,
    "l": 77.059
  },
  "oklch": {
    "l": 0.76239,
    "c": 0.16836,
    "h": 314.6
  },
  "luminance": 0.41063
}

Semantic roles & 50–950 ramp

primary
#D98EFB
secondary
#DFF6D5
accent
#E60048
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D98EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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