#D98BFB#D98BFB

#D98BFB is a light, vivid purple. Relative luminance 0.402; OKLCH L 75.8% C 0.173 H 314.9°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#D98BFB
RGBrgb(217, 139, 251)
HSLhsl(282, 93%, 76%)
HSVhsv(282, 45%, 98%)
CMYKcmyk(13.5%, 44.6%, 0%, 1.6%)
CIE-LABlab(69.60, 48.34, -44.25)
CIE-LCHlch(69.60, 65.54, 317.53°)
OKLaboklab(75.78% 0.1224 -0.1227)
OKLCHoklch(75.78% 0.173 314.9)
XYZxyz(55.2577, 40.1834, 96.0934)
Luminance0.4018 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98BFB #ADFB8B
analogous
#A18BFB #D98BFB #FB8BE5
triadic
#D98BFB #FBD98B #8BFBD9
tetradic
#D98BFB #FBA18B #ADFB8B #8BE5FB
square
#D98BFB #FBA18B #ADFB8B #8BE5FB
split-complementary
#D98BFB #E5FB8B #8BFBA1
monochromatic
#B215F7 #C650F9 #D98BFB #ECC6FD #F5E1FE

Accessibility & contrast

On white

2.32
#D98BFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.04
#D98BFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98BFB
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98BFB#FFFFFF#000000##000000
##D98BFB1.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A5FF
Deuteranopia (green-blind)
#8BACF8
Tritanopia (blue-blind)
#D79BB7
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #d98bfb;
/* rgb */ color: rgb(217, 139, 251);
/* oklch */ color: oklch(75.8% 0.173 314.9);
Tailwind
colors: {
  custom: {
    50: '#e6aefd',
    500: '#d98bfb',
    950: '#000000',
  },
}
SCSS
$custom: #d98bfb;
$custom-light: #e6aefd;
$custom-dark: #000000;
JSON
{
  "hex": "#d98bfb",
  "rgb": {
    "r": 217,
    "g": 139,
    "b": 251
  },
  "hsl": {
    "h": 281.786,
    "s": 93.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.75775,
    "c": 0.17325,
    "h": 314.9
  },
  "luminance": 0.40182
}

Semantic roles & 50–950 ramp

primary
#D98BFB
secondary
#DFF6D5
accent
#E60046
background
#FEFAFF
surface
#FDF5FF
border
#D5CFD7
text
#161017
muted
#847F85

Preview Lab

Preview with #D98BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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