#D97EFC#D97EFC

#D97EFC is a light, vivid purple. Relative luminance 0.367; OKLCH L 73.9% C 0.195 H 315.9°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#D97EFC
RGBrgb(217, 126, 252)
HSLhsl(283, 95%, 74%)
HSVhsv(283, 50%, 99%)
CMYKcmyk(13.9%, 50%, 0%, 1.2%)
CIE-LABlab(67.05, 55.21, -48.81)
CIE-LCHlch(67.05, 73.69, 318.53°)
OKLaboklab(73.9% 0.14 -0.1358)
OKLCHoklch(73.9% 0.195 315.9)
XYZxyz(53.6441, 36.7033, 96.3352)
Luminance0.3670 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EFC #A1FC7E
analogous
#9A7EFC #D97EFC #FC7EE0
triadic
#D97EFC #FCD97E #7EFCD9
tetradic
#D97EFC #FC9A7E #A1FC7E #7EE0FC
square
#D97EFC #FC9A7E #A1FC7E #7EE0FC
split-complementary
#D97EFC #E0FC7E #7EFC9A
monochromatic
#B606F9 #C742FB #D97EFC #EBBAFD #F6E1FE

Accessibility & contrast

On white

2.52
#D97EFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#D97EFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EFC
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EFC#FFFFFF#000000##000000
##D97EFC1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#639EFF
Deuteranopia (green-blind)
#7FA6F9
Tritanopia (blue-blind)
#D791B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97efc;
/* rgb */ color: rgb(217, 126, 252);
/* oklch */ color: oklch(73.9% 0.195 315.9);
Tailwind
colors: {
  custom: {
    50: '#e7a6fe',
    500: '#d97efc',
    950: '#000000',
  },
}
SCSS
$custom: #d97efc;
$custom-light: #e7a6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d97efc",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 252
  },
  "hsl": {
    "h": 283.333,
    "s": 95.455,
    "l": 74.118
  },
  "oklch": {
    "l": 0.73897,
    "c": 0.19504,
    "h": 315.9
  },
  "luminance": 0.36702
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97EFC

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

Preview Lab → · Contrast checker → · Palette generator →

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