#D97CFB#D97CFB

#D97CFB is a light, vivid purple. Relative luminance 0.361; OKLCH L 73.6% C 0.197 H 316.3°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#D97CFB
RGBrgb(217, 124, 251)
HSLhsl(284, 94%, 74%)
HSVhsv(284, 51%, 98%)
CMYKcmyk(13.5%, 50.6%, 0%, 1.6%)
CIE-LABlab(66.62, 56.02, -48.94)
CIE-LCHlch(66.62, 74.38, 318.86°)
OKLaboklab(73.56% 0.1426 -0.1361)
OKLCHoklch(73.56% 0.197 316.3)
XYZxyz(53.2329, 36.1337, 95.4184)
Luminance0.3613 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97CFB #9EFB7C
analogous
#997CFB #D97CFB #FB7CDD
triadic
#D97CFB #FBD97C #7CFBD9
tetradic
#D97CFB #FB997C #9EFB7C #7CDDFB
square
#D97CFB #FB997C #9EFB7C #7CDDFB
split-complementary
#D97CFB #DDFB7C #7CFB99
monochromatic
#B507F5 #C841F9 #D97CFB #EAB7FD #F6E1FE

Accessibility & contrast

On white

2.55
#D97CFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#D97CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97CFB
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97CFB#FFFFFF#000000##000000
##D97CFB1.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#619CFF
Deuteranopia (green-blind)
#7EA5F8
Tritanopia (blue-blind)
#D88FB0
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97cfb;
/* rgb */ color: rgb(217, 124, 251);
/* oklch */ color: oklch(73.6% 0.197 316.3);
Tailwind
colors: {
  custom: {
    50: '#e7a5fd',
    500: '#d97cfb',
    950: '#000000',
  },
}
SCSS
$custom: #d97cfb;
$custom-light: #e7a5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d97cfb",
  "rgb": {
    "r": 217,
    "g": 124,
    "b": 251
  },
  "hsl": {
    "h": 283.937,
    "s": 94.074,
    "l": 73.529
  },
  "oklch": {
    "l": 0.73562,
    "c": 0.19713,
    "h": 316.3
  },
  "luminance": 0.36132
}

Semantic roles & 50–950 ramp

primary
#D97CFB
secondary
#DEF6D5
accent
#E6003D
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D97CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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