#D97FFC#D97FFC

#D97FFC is a light, vivid purple. Relative luminance 0.370; OKLCH L 74.0% C 0.193 H 315.8°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#D97FFC
RGBrgb(217, 127, 252)
HSLhsl(283, 95%, 74%)
HSVhsv(283, 50%, 99%)
CMYKcmyk(13.9%, 49.6%, 0%, 1.2%)
CIE-LABlab(67.25, 54.71, -48.50)
CIE-LCHlch(67.25, 73.11, 318.44°)
OKLaboklab(74.04% 0.1387 -0.1349)
OKLCHoklch(74.04% 0.193 315.8)
XYZxyz(53.7727, 36.9603, 96.3781)
Luminance0.3696 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FFC #A2FC7F
analogous
#9B7FFC #D97FFC #FC7FE1
triadic
#D97FFC #FCD97F #7FFCD9
tetradic
#D97FFC #FC9B7F #A2FC7F #7FE1FC
square
#D97FFC #FC9B7F #A2FC7F #7FE1FC
split-complementary
#D97FFC #E1FC7F #7FFC9B
monochromatic
#B507F9 #C743FB #D97FFC #EBBBFD #F6E1FE

Accessibility & contrast

On white

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

On black

8.39
#D97FFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FFC
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FFC#FFFFFF#000000##000000
##D97FFC1.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#659EFF
Deuteranopia (green-blind)
#80A6F9
Tritanopia (blue-blind)
#D792B2
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d97ffc;
/* rgb */ color: rgb(217, 127, 252);
/* oklch */ color: oklch(74.0% 0.193 315.8);
Tailwind
colors: {
  custom: {
    50: '#e7a7fe',
    500: '#d97ffc',
    950: '#000000',
  },
}
SCSS
$custom: #d97ffc;
$custom-light: #e7a7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ffc",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 252
  },
  "hsl": {
    "h": 283.2,
    "s": 95.42,
    "l": 74.314
  },
  "oklch": {
    "l": 0.7404,
    "c": 0.19348,
    "h": 315.8
  },
  "luminance": 0.36959
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97FFC

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

Preview Lab → · Contrast checker → · Palette generator →

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