#D98CFB#D98CFB

#D98CFB is a light, vivid purple. Relative luminance 0.405; OKLCH L 75.9% C 0.172 H 314.8°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#D98CFB
RGBrgb(217, 140, 251)
HSLhsl(282, 93%, 77%)
HSVhsv(282, 44%, 98%)
CMYKcmyk(13.5%, 44.2%, 0%, 1.6%)
CIE-LABlab(69.81, 47.82, -43.93)
CIE-LCHlch(69.81, 64.94, 317.43°)
OKLaboklab(75.93% 0.121 -0.1217)
OKLCHoklch(75.93% 0.172 314.8)
XYZxyz(55.4032, 40.4743, 96.1419)
Luminance0.4047 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98CFB #AEFB8C
analogous
#A28CFB #D98CFB #FB8CE5
triadic
#D98CFB #FBD98C #8CFBD9
tetradic
#D98CFB #FBA28C #AEFB8C #8CE5FB
square
#D98CFB #FBA28C #AEFB8C #8CE5FB
split-complementary
#D98CFB #E5FB8C #8CFBA2
monochromatic
#B216F7 #C551F9 #D98CFB #EDC7FD #F5E1FE

Accessibility & contrast

On white

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

On black

9.09
#D98CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98CFB
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98CFB#FFFFFF#000000##000000
##D98CFB1.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A6FF
Deuteranopia (green-blind)
#8CADF8
Tritanopia (blue-blind)
#D79CB8
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98cfb;
/* rgb */ color: rgb(217, 140, 251);
/* oklch */ color: oklch(75.9% 0.172 314.8);
Tailwind
colors: {
  custom: {
    50: '#e6affd',
    500: '#d98cfb',
    950: '#000000',
  },
}
SCSS
$custom: #d98cfb;
$custom-light: #e6affd;
$custom-dark: #000000;
JSON
{
  "hex": "#d98cfb",
  "rgb": {
    "r": 217,
    "g": 140,
    "b": 251
  },
  "hsl": {
    "h": 281.622,
    "s": 93.277,
    "l": 76.667
  },
  "oklch": {
    "l": 0.75929,
    "c": 0.17162,
    "h": 314.8
  },
  "luminance": 0.40473
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D98CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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