#D98FF7#D98FF7

#D98FF7 is a light, vivid purple. Relative luminance 0.411; OKLCH L 76.2% C 0.162 H 315.7°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#D98FF7
RGBrgb(217, 143, 247)
HSLhsl(283, 87%, 76%)
HSVhsv(283, 42%, 97%)
CMYKcmyk(12.1%, 42.1%, 0%, 3.1%)
CIE-LABlab(70.26, 45.43, -41.05)
CIE-LCHlch(70.26, 61.23, 317.90°)
OKLaboklab(76.21% 0.1161 -0.1134)
OKLCHoklch(76.21% 0.162 315.7)
XYZxyz(55.2237, 41.1135, 93.0043)
Luminance0.4111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98FF7 #ADF78F
analogous
#A58FF7 #D98FF7 #F78FE1
triadic
#D98FF7 #F7D98F #8FF7D9
tetradic
#D98FF7 #F7A58F #ADF78F #8FE1F7
square
#D98FF7 #F7A58F #ADF78F #8FE1F7
split-complementary
#D98FF7 #E1F78F #8FF7A5
monochromatic
#B21DEF #C656F3 #D98FF7 #ECC8FB #F5E2FD

Accessibility & contrast

On white

2.28
#D98FF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.22
#D98FF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98FF7
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98FF7#FFFFFF#000000##000000
##D98FF71.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA7FB
Deuteranopia (green-blind)
#90AEF4
Tritanopia (blue-blind)
#D89DB7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d98ff7;
/* rgb */ color: rgb(217, 143, 247);
/* oklch */ color: oklch(76.2% 0.162 315.7);
Tailwind
colors: {
  custom: {
    50: '#e6b1fa',
    500: '#d98ff7',
    950: '#000000',
  },
}
SCSS
$custom: #d98ff7;
$custom-light: #e6b1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d98ff7",
  "rgb": {
    "r": 217,
    "g": 143,
    "b": 247
  },
  "hsl": {
    "h": 282.692,
    "s": 86.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.76207,
    "c": 0.16235,
    "h": 315.7
  },
  "luminance": 0.41112
}

Semantic roles & 50–950 ramp

primary
#D98FF7
secondary
#DFF5D6
accent
#E30243
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D98FF7

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

Preview Lab → · Contrast checker → · Palette generator →

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