#D97BF2#D97BF2

#D97BF2 is a light, vivid purple. Relative luminance 0.353; OKLCH L 73.0% C 0.190 H 318.9°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#D97BF2
RGBrgb(217, 123, 242)
HSLhsl(287, 82%, 72%)
HSVhsv(287, 49%, 95%)
CMYKcmyk(10.3%, 49.2%, 0%, 5.1%)
CIE-LABlab(66.00, 54.74, -44.97)
CIE-LCHlch(66.00, 70.84, 320.60°)
OKLaboklab(72.97% 0.1429 -0.1246)
OKLCHoklch(72.97% 0.19 318.9)
XYZxyz(51.7231, 35.3303, 88.0821)
Luminance0.3533 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97BF2 #94F27B
analogous
#9E7BF2 #D97BF2 #F27BD0
triadic
#D97BF2 #F2D97B #7BF2D9
tetradic
#D97BF2 #F29E7B #94F27B #7BD0F2
square
#D97BF2 #F29E7B #94F27B #7BD0F2
split-complementary
#D97BF2 #D0F27B #7BF29E
monochromatic
#B316DD #C943ED #D97BF2 #E9B3F7 #F7E3FC

Accessibility & contrast

On white

2.60
#D97BF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#D97BF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97BF2
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97BF2#FFFFFF#000000##000000
##D97BF21.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#669AF6
Deuteranopia (green-blind)
#82A4EF
Tritanopia (blue-blind)
#D98CAC
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d97bf2;
/* rgb */ color: rgb(217, 123, 242);
/* oklch */ color: oklch(73.0% 0.190 318.9);
Tailwind
colors: {
  custom: {
    50: '#e7a4f7',
    500: '#d97bf2',
    950: '#000000',
  },
}
SCSS
$custom: #d97bf2;
$custom-light: #e7a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d97bf2",
  "rgb": {
    "r": 217,
    "g": 123,
    "b": 242
  },
  "hsl": {
    "h": 287.395,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.72967,
    "c": 0.18958,
    "h": 318.9
  },
  "luminance": 0.35328
}

Semantic roles & 50–950 ramp

primary
#D97BF2
secondary
#DCF4D5
accent
#DE0734
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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