#D97FFE#D97FFE

#D97FFE is a light, vivid purple. Relative luminance 0.371; OKLCH L 74.1% C 0.196 H 315.3°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#D97FFE
RGBrgb(217, 127, 254)
HSLhsl(283, 98%, 75%)
HSVhsv(283, 50%, 100%)
CMYKcmyk(14.6%, 50%, 0%, 0.4%)
CIE-LABlab(67.34, 55.11, -49.44)
CIE-LCHlch(67.34, 74.04, 318.10°)
OKLaboklab(74.14% 0.1389 -0.1376)
OKLCHoklch(74.14% 0.196 315.3)
XYZxyz(54.0912, 37.0878, 98.0560)
Luminance0.3709 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FFE #A4FE7F
analogous
#9A7FFE #D97FFE #FE7FE3
triadic
#D97FFE #FED97F #7FFED9
tetradic
#D97FFE #FE9A7F #A4FE7F #7FE3FE
square
#D97FFE #FE9A7F #A4FE7F #7FE3FE
split-complementary
#D97FFE #E3FE7F #7FFE9A
monochromatic
#B506FD #C742FE #D97FFE #EBBCFE #F6E1FF

Accessibility & contrast

On white

2.49
#D97FFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#D97FFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FFE
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FFE#FFFFFF#000000##000000
##D97FFE1.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#639FFF
Deuteranopia (green-blind)
#7FA7FB
Tritanopia (blue-blind)
#D792B3
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d97ffe;
/* rgb */ color: rgb(217, 127, 254);
/* oklch */ color: oklch(74.1% 0.196 315.3);
Tailwind
colors: {
  custom: {
    50: '#e7a7ff',
    500: '#d97ffe',
    950: '#000000',
  },
}
SCSS
$custom: #d97ffe;
$custom-light: #e7a7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ffe",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 254
  },
  "hsl": {
    "h": 282.52,
    "s": 98.45,
    "l": 74.706
  },
  "oklch": {
    "l": 0.74142,
    "c": 0.19555,
    "h": 315.3
  },
  "luminance": 0.37086
}

Semantic roles & 50–950 ramp

primary
#D97FFE
secondary
#DEF7D4
accent
#E60043
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D97FFE

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

Preview Lab → · Contrast checker → · Palette generator →

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