#D98FEB#D98FEB

#D98FEB is a light, vivid purple. Relative luminance 0.404; OKLCH L 75.7% C 0.149 H 319.6°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#D98FEB
RGBrgb(217, 143, 235)
HSLhsl(288, 70%, 74%)
HSVhsv(288, 39%, 92%)
CMYKcmyk(7.7%, 39.1%, 0%, 7.8%)
CIE-LABlab(69.75, 43.04, -35.27)
CIE-LCHlch(69.75, 55.64, 320.67°)
OKLaboklab(75.66% 0.1138 -0.0969)
OKLCHoklch(75.66% 0.149 319.6)
XYZxyz(53.4312, 40.3965, 83.5639)
Luminance0.4039 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98FEB #A1EB8F
analogous
#AB8FEB #D98FEB #EB8FCF
triadic
#D98FEB #EBD98F #8FEBD9
tetradic
#D98FEB #EBAB8F #A1EB8F #8FCFEB
square
#D98FEB #EBAB8F #A1EB8F #8FCFEB
split-complementary
#D98FEB #CFEB8F #8FEBAB
monochromatic
#B627D8 #C75BE2 #D98FEB #EBC3F4 #F6E5FA

Accessibility & contrast

On white

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

On black

9.08
#D98FEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98FEB
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98FEB#FFFFFF#000000##000000
##D98FEB1.002.319.089.08
#FFFFFF2.311.0021.0021.00
#0000009.0821.001.001.00
##0000009.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A5EE
Deuteranopia (green-blind)
#95ADE8
Tritanopia (blue-blind)
#DA9AB2
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #d98feb;
/* rgb */ color: rgb(217, 143, 235);
/* oklch */ color: oklch(75.7% 0.149 319.6);
Tailwind
colors: {
  custom: {
    50: '#e6b1f1',
    500: '#d98feb',
    950: '#000000',
  },
}
SCSS
$custom: #d98feb;
$custom-light: #e6b1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d98feb",
  "rgb": {
    "r": 217,
    "g": 143,
    "b": 235
  },
  "hsl": {
    "h": 288.261,
    "s": 69.697,
    "l": 74.118
  },
  "oklch": {
    "l": 0.75663,
    "c": 0.14946,
    "h": 319.6
  },
  "luminance": 0.40395
}

Semantic roles & 50–950 ramp

primary
#D98FEB
secondary
#DEF2D9
accent
#D21439
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D98FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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