#D98CF2#D98CF2

#D98CF2 is a light, vivid purple. Relative luminance 0.399; OKLCH L 75.5% C 0.162 H 317.5°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#D98CF2
RGBrgb(217, 140, 242)
HSLhsl(285, 80%, 75%)
HSVhsv(285, 42%, 95%)
CMYKcmyk(10.3%, 42.1%, 0%, 5.1%)
CIE-LABlab(69.41, 46.00, -39.63)
CIE-LCHlch(69.41, 60.72, 319.26°)
OKLaboklab(75.51% 0.1195 -0.1093)
OKLCHoklch(75.51% 0.162 317.5)
XYZxyz(54.0181, 39.9203, 88.8470)
Luminance0.3992 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98CF2 #A5F28C
analogous
#A68CF2 #D98CF2 #F28CD8
triadic
#D98CF2 #F2D98C #8CF2D9
tetradic
#D98CF2 #F2A68C #A5F28C #8CD8F2
square
#D98CF2 #F2A68C #A5F28C #8CD8F2
split-complementary
#D98CF2 #D8F28C #8CF2A6
monochromatic
#B51EE6 #C755EC #D98CF2 #EBC3F8 #F6E4FC

Accessibility & contrast

On white

2.34
#D98CF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#D98CF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98CF2
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98CF2#FFFFFF#000000##000000
##D98CF21.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA5F6
Deuteranopia (green-blind)
#90ACEF
Tritanopia (blue-blind)
#D999B4
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #d98cf2;
/* rgb */ color: rgb(217, 140, 242);
/* oklch */ color: oklch(75.5% 0.162 317.5);
Tailwind
colors: {
  custom: {
    50: '#e6aff6',
    500: '#d98cf2',
    950: '#000000',
  },
}
SCSS
$custom: #d98cf2;
$custom-light: #e6aff6;
$custom-dark: #000000;
JSON
{
  "hex": "#d98cf2",
  "rgb": {
    "r": 217,
    "g": 140,
    "b": 242
  },
  "hsl": {
    "h": 285.294,
    "s": 79.687,
    "l": 74.902
  },
  "oklch": {
    "l": 0.75505,
    "c": 0.16194,
    "h": 317.5
  },
  "luminance": 0.39919
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D98CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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