#D98BF2#D98BF2

#D98BF2 is a light, vivid purple. Relative luminance 0.396; OKLCH L 75.3% C 0.164 H 317.6°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#D98BF2
RGBrgb(217, 139, 242)
HSLhsl(285, 80%, 75%)
HSVhsv(285, 43%, 95%)
CMYKcmyk(10.3%, 42.6%, 0%, 5.1%)
CIE-LABlab(69.20, 46.53, -39.95)
CIE-LCHlch(69.20, 61.33, 319.35°)
OKLaboklab(75.35% 0.1209 -0.1103)
OKLCHoklch(75.35% 0.164 317.6)
XYZxyz(53.8726, 39.6294, 88.7986)
Luminance0.3963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98BF2 #A4F28B
analogous
#A68BF2 #D98BF2 #F28BD8
triadic
#D98BF2 #F2D98B #8BF2D9
tetradic
#D98BF2 #F2A68B #A4F28B #8BD8F2
square
#D98BF2 #F2A68B #A4F28B #8BD8F2
split-complementary
#D98BF2 #D8F28B #8BF2A6
monochromatic
#B51DE6 #C754EC #D98BF2 #EBC2F8 #F6E3FC

Accessibility & contrast

On white

2.35
#D98BF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#D98BF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98BF2
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98BF2#FFFFFF#000000##000000
##D98BF21.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA4F6
Deuteranopia (green-blind)
#8FACEF
Tritanopia (blue-blind)
#D999B3
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #d98bf2;
/* rgb */ color: rgb(217, 139, 242);
/* oklch */ color: oklch(75.3% 0.164 317.6);
Tailwind
colors: {
  custom: {
    50: '#e6aef6',
    500: '#d98bf2',
    950: '#000000',
  },
}
SCSS
$custom: #d98bf2;
$custom-light: #e6aef6;
$custom-dark: #000000;
JSON
{
  "hex": "#d98bf2",
  "rgb": {
    "r": 217,
    "g": 139,
    "b": 242
  },
  "hsl": {
    "h": 285.437,
    "s": 79.845,
    "l": 74.706
  },
  "oklch": {
    "l": 0.7535,
    "c": 0.1636,
    "h": 317.6
  },
  "luminance": 0.39628
}

Semantic roles & 50–950 ramp

primary
#D98BF2
secondary
#DEF4D7
accent
#DC093D
background
#FEFAFF
surface
#FDF5FE
border
#D5CFD6
text
#161017
muted
#847F85

Preview Lab

Preview with #D98BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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