#D98EF3#D98EF3

#D98EF3 is a light, vivid purple. Relative luminance 0.406; OKLCH L 75.9% C 0.160 H 317.0°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#D98EF3
RGBrgb(217, 142, 243)
HSLhsl(285, 81%, 75%)
HSVhsv(285, 42%, 95%)
CMYKcmyk(10.7%, 41.6%, 0%, 4.7%)
CIE-LABlab(69.87, 45.15, -39.46)
CIE-LCHlch(69.87, 59.96, 318.85°)
OKLaboklab(75.87% 0.1168 -0.1089)
OKLCHoklch(75.87% 0.16 317)
XYZxyz(54.4636, 40.5703, 89.7385)
Luminance0.4057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98EF3 #A8F38E
analogous
#A68EF3 #D98EF3 #F38EDB
triadic
#D98EF3 #F3D98E #8EF3D9
tetradic
#D98EF3 #F3A68E #A8F38E #8EDBF3
square
#D98EF3 #F3A68E #A8F38E #8EDBF3
split-complementary
#D98EF3 #DBF38E #8EF3A6
monochromatic
#B41FE7 #C657ED #D98EF3 #ECC5F9 #F6E3FC

Accessibility & contrast

On white

2.30
#D98EF3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.11
#D98EF3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98EF3
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98EF3#FFFFFF#000000##000000
##D98EF31.002.309.119.11
#FFFFFF2.301.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA6F7
Deuteranopia (green-blind)
#91ADF0
Tritanopia (blue-blind)
#D89BB5
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #d98ef3;
/* rgb */ color: rgb(217, 142, 243);
/* oklch */ color: oklch(75.9% 0.160 317.0);
Tailwind
colors: {
  custom: {
    50: '#e6b0f7',
    500: '#d98ef3',
    950: '#000000',
  },
}
SCSS
$custom: #d98ef3;
$custom-light: #e6b0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d98ef3",
  "rgb": {
    "r": 217,
    "g": 142,
    "b": 243
  },
  "hsl": {
    "h": 284.554,
    "s": 80.8,
    "l": 75.49
  },
  "oklch": {
    "l": 0.75865,
    "c": 0.15968,
    "h": 317
  },
  "luminance": 0.40569
}

Semantic roles & 50–950 ramp

primary
#D98EF3
secondary
#DFF4D7
accent
#DD083F
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D98EF3

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

Preview Lab → · Contrast checker → · Palette generator →

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