#D98CFA#D98CFA

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

Color values

HEX#D98CFA
RGBrgb(217, 140, 250)
HSLhsl(282, 92%, 76%)
HSVhsv(282, 44%, 98%)
CMYKcmyk(13.2%, 44%, 0%, 2%)
CIE-LABlab(69.76, 47.61, -43.46)
CIE-LCHlch(69.76, 64.46, 317.61°)
OKLaboklab(75.88% 0.1208 -0.1204)
OKLCHoklch(75.88% 0.171 315.1)
XYZxyz(55.2460, 40.4114, 95.3139)
Luminance0.4041 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98CFA #ADFA8C
analogous
#A28CFA #D98CFA #FA8CE4
triadic
#D98CFA #FAD98C #8CFAD9
tetradic
#D98CFA #FAA28C #ADFA8C #8CE4FA
square
#D98CFA #FAA28C #ADFA8C #8CE4FA
split-complementary
#D98CFA #E4FA8C #8CFAA2
monochromatic
#B217F5 #C651F7 #D98CFA #ECC7FD #F5E2FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D98CFA#FFFFFF#000000##000000
##D98CFA1.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)
#77A6FE
Deuteranopia (green-blind)
#8CADF7
Tritanopia (blue-blind)
#D79CB7
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #d98cfa;
/* rgb */ color: rgb(217, 140, 250);
/* oklch */ color: oklch(75.9% 0.171 315.1);
Tailwind
colors: {
  custom: {
    50: '#e6affc',
    500: '#d98cfa',
    950: '#000000',
  },
}
SCSS
$custom: #d98cfa;
$custom-light: #e6affc;
$custom-dark: #000000;
JSON
{
  "hex": "#d98cfa",
  "rgb": {
    "r": 217,
    "g": 140,
    "b": 250
  },
  "hsl": {
    "h": 282,
    "s": 91.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.75881,
    "c": 0.17054,
    "h": 315.1
  },
  "luminance": 0.4041
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D98CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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