#D97FFD#D97FFD

#D97FFD is a light, vivid purple. Relative luminance 0.370; OKLCH L 74.1% C 0.195 H 315.5°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#D97FFD
RGBrgb(217, 127, 253)
HSLhsl(283, 97%, 75%)
HSVhsv(283, 50%, 99%)
CMYKcmyk(14.2%, 49.8%, 0%, 0.8%)
CIE-LABlab(67.30, 54.91, -48.97)
CIE-LCHlch(67.30, 73.58, 318.27°)
OKLaboklab(74.09% 0.1388 -0.1362)
OKLCHoklch(74.09% 0.195 315.5)
XYZxyz(53.9315, 37.0239, 97.2148)
Luminance0.3702 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FFD #A3FD7F
analogous
#9A7FFD #D97FFD #FD7FE2
triadic
#D97FFD #FDD97F #7FFDD9
tetradic
#D97FFD #FD9A7F #A3FD7F #7FE2FD
square
#D97FFD #FD9A7F #A3FD7F #7FE2FD
split-complementary
#D97FFD #E2FD7F #7FFD9A
monochromatic
#B506FB #C743FC #D97FFD #EBBBFE #F6E1FF

Accessibility & contrast

On white

2.50
#D97FFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#D97FFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FFD
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FFD#FFFFFF#000000##000000
##D97FFD1.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#649EFF
Deuteranopia (green-blind)
#7FA6FA
Tritanopia (blue-blind)
#D792B3
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d97ffd;
/* rgb */ color: rgb(217, 127, 253);
/* oklch */ color: oklch(74.1% 0.195 315.5);
Tailwind
colors: {
  custom: {
    50: '#e7a7fe',
    500: '#d97ffd',
    950: '#000000',
  },
}
SCSS
$custom: #d97ffd;
$custom-light: #e7a7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ffd",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 253
  },
  "hsl": {
    "h": 282.857,
    "s": 96.923,
    "l": 74.51
  },
  "oklch": {
    "l": 0.74091,
    "c": 0.19452,
    "h": 315.5
  },
  "luminance": 0.37022
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97FFD

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

Preview Lab → · Contrast checker → · Palette generator →

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