#D97EFA#D97EFA

#D97EFA is a light, vivid purple. Relative luminance 0.366; OKLCH L 73.8% C 0.193 H 316.4°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#D97EFA
RGBrgb(217, 126, 250)
HSLhsl(284, 93%, 74%)
HSVhsv(284, 50%, 98%)
CMYKcmyk(13.2%, 49.6%, 0%, 2%)
CIE-LABlab(66.96, 54.81, -47.86)
CIE-LCHlch(66.96, 72.77, 318.87°)
OKLaboklab(73.8% 0.1398 -0.133)
OKLCHoklch(73.8% 0.193 316.4)
XYZxyz(53.3289, 36.5772, 94.6748)
Luminance0.3658 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EFA #9FFA7E
analogous
#9B7EFA #D97EFA #FA7EDD
triadic
#D97EFA #FAD97E #7EFAD9
tetradic
#D97EFA #FA9B7E #9FFA7E #7EDDFA
square
#D97EFA #FA9B7E #9FFA7E #7EDDFA
split-complementary
#D97EFA #DDFA7E #7EFA9B
monochromatic
#B609F4 #C843F8 #D97EFA #EAB9FC #F6E2FE

Accessibility & contrast

On white

2.53
#D97EFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#D97EFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EFA
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EFA#FFFFFF#000000##000000
##D97EFA1.002.538.328.32
#FFFFFF2.531.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#659DFE
Deuteranopia (green-blind)
#80A6F7
Tritanopia (blue-blind)
#D890B1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97efa;
/* rgb */ color: rgb(217, 126, 250);
/* oklch */ color: oklch(73.8% 0.193 316.4);
Tailwind
colors: {
  custom: {
    50: '#e7a6fc',
    500: '#d97efa',
    950: '#000000',
  },
}
SCSS
$custom: #d97efa;
$custom-light: #e7a6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d97efa",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 250
  },
  "hsl": {
    "h": 284.032,
    "s": 92.537,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73795,
    "c": 0.19299,
    "h": 316.4
  },
  "luminance": 0.36576
}

Semantic roles & 50–950 ramp

primary
#D97EFA
secondary
#DEF6D5
accent
#E6003D
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D97EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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