#D97CEF#D97CEF

#D97CEF is a light, vivid purple. Relative luminance 0.354; OKLCH L 73.0% C 0.185 H 319.7°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#D97CEF
RGBrgb(217, 124, 239)
HSLhsl(289, 78%, 71%)
HSVhsv(289, 48%, 94%)
CMYKcmyk(9.2%, 48.1%, 0%, 6.3%)
CIE-LABlab(66.06, 53.66, -43.23)
CIE-LCHlch(66.06, 68.90, 321.14°)
OKLaboklab(72.96% 0.1411 -0.1196)
OKLCHoklch(72.96% 0.185 319.7)
XYZxyz(51.4009, 35.4009, 85.7701)
Luminance0.3540 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97CEF #92EF7C
analogous
#9F7CEF #D97CEF #EF7CCB
triadic
#D97CEF #EFD97C #7CEFD9
tetradic
#D97CEF #EF9F7C #92EF7C #7CCBEF
square
#D97CEF #EF9F7C #92EF7C #7CCBEF
split-complementary
#D97CEF #CBEF7C #7CEF9F
monochromatic
#B21AD6 #C945E8 #D97CEF #E9B3F6 #F7E4FC

Accessibility & contrast

On white

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

On black

8.08
#D97CEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97CEF
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97CEF#FFFFFF#000000##000000
##D97CEF1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#699AF3
Deuteranopia (green-blind)
#84A4EC
Tritanopia (blue-blind)
#DA8CAB
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97cef;
/* rgb */ color: rgb(217, 124, 239);
/* oklch */ color: oklch(73.0% 0.185 319.7);
Tailwind
colors: {
  custom: {
    50: '#e7a5f4',
    500: '#d97cef',
    950: '#000000',
  },
}
SCSS
$custom: #d97cef;
$custom-light: #e7a5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d97cef",
  "rgb": {
    "r": 217,
    "g": 124,
    "b": 239
  },
  "hsl": {
    "h": 288.522,
    "s": 78.231,
    "l": 71.176
  },
  "oklch": {
    "l": 0.72962,
    "c": 0.18499,
    "h": 319.7
  },
  "luminance": 0.35399
}

Semantic roles & 50–950 ramp

primary
#D97CEF
secondary
#DAF3D4
accent
#DA0B33
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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