#D97FFB#D97FFB

#D97FFB is a light, vivid purple. Relative luminance 0.369; OKLCH L 74.0% C 0.192 H 316.1°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#D97FFB
RGBrgb(217, 127, 251)
HSLhsl(284, 94%, 74%)
HSVhsv(284, 49%, 98%)
CMYKcmyk(13.5%, 49.4%, 0%, 1.6%)
CIE-LABlab(67.20, 54.51, -48.03)
CIE-LCHlch(67.20, 72.65, 318.62°)
OKLaboklab(73.99% 0.1386 -0.1335)
OKLCHoklch(73.99% 0.192 316.1)
XYZxyz(53.6146, 36.8971, 95.5457)
Luminance0.3690 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FFB #A1FB7F
analogous
#9B7FFB #D97FFB #FB7FDF
triadic
#D97FFB #FBD97F #7FFBD9
tetradic
#D97FFB #FB9B7F #A1FB7F #7FDFFB
square
#D97FFB #FB9B7F #A1FB7F #7FDFFB
split-complementary
#D97FFB #DFFB7F #7FFB9B
monochromatic
#B608F7 #C744F9 #D97FFB #EBBAFD #F6E1FE

Accessibility & contrast

On white

2.51
#D97FFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#D97FFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FFB
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FFB#FFFFFF#000000##000000
##D97FFB1.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d97ffb;
/* rgb */ color: rgb(217, 127, 251);
/* oklch */ color: oklch(74.0% 0.192 316.1);
Tailwind
colors: {
  custom: {
    50: '#e7a7fd',
    500: '#d97ffb',
    950: '#000000',
  },
}
SCSS
$custom: #d97ffb;
$custom-light: #e7a7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ffb",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 251
  },
  "hsl": {
    "h": 283.548,
    "s": 93.939,
    "l": 74.118
  },
  "oklch": {
    "l": 0.73989,
    "c": 0.19244,
    "h": 316.1
  },
  "luminance": 0.36895
}

Semantic roles & 50–950 ramp

primary
#D97FFB
secondary
#DEF6D5
accent
#E6003F
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D97FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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