#D97EFF#D97EFF

#D97EFF is a light, vivid purple. Relative luminance 0.369; OKLCH L 74.1% C 0.198 H 315.1°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#D97EFF
RGBrgb(217, 126, 255)
HSLhsl(282, 100%, 75%)
HSVhsv(282, 51%, 100%)
CMYKcmyk(14.9%, 50.6%, 0%, 0%)
CIE-LABlab(67.20, 55.82, -50.22)
CIE-LCHlch(67.20, 75.08, 318.02°)
OKLaboklab(74.05% 0.1404 -0.1399)
OKLCHoklch(74.05% 0.198 315.1)
XYZxyz(54.1233, 36.8950, 98.8587)
Luminance0.3689 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EFF #A4FF7E
analogous
#997EFF #D97EFF #FF7EE4
triadic
#D97EFF #FFD97E #7EFFD9
tetradic
#D97EFF #FF997E #A4FF7E #7EE4FF
square
#D97EFF #FF997E #A4FF7E #7EE4FF
split-complementary
#D97EFF #E4FF7E #7EFF99
monochromatic
#B504FF #C741FF #D97EFF #EBBBFF #F6E0FF

Accessibility & contrast

On white

2.51
#D97EFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#D97EFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EFF
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EFF#FFFFFF#000000##000000
##D97EFF1.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#619EFF
Deuteranopia (green-blind)
#7DA6FC
Tritanopia (blue-blind)
#D792B3
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d97eff;
/* rgb */ color: rgb(217, 126, 255);
/* oklch */ color: oklch(74.1% 0.198 315.1);
Tailwind
colors: {
  custom: {
    50: '#e7a6ff',
    500: '#d97eff',
    950: '#000000',
  },
}
SCSS
$custom: #d97eff;
$custom-light: #e7a6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d97eff",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 255
  },
  "hsl": {
    "h": 282.326,
    "s": 100,
    "l": 74.706
  },
  "oklch": {
    "l": 0.74051,
    "c": 0.19815,
    "h": 315.1
  },
  "luminance": 0.36893
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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