#D397EA#D397EA

#D397EA is a light, vivid purple. Relative luminance 0.419; OKLCH L 76.3% C 0.132 H 316.3°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#D397EA
RGBrgb(211, 151, 234)
HSLhsl(283, 66%, 75%)
HSVhsv(283, 35%, 92%)
CMYKcmyk(9.8%, 35.5%, 0%, 8.2%)
CIE-LABlab(70.82, 36.76, -33.11)
CIE-LCHlch(70.82, 49.47, 317.98°)
OKLaboklab(76.31% 0.0952 -0.0909)
OKLCHoklch(76.31% 0.132 316.3)
XYZxyz(52.7797, 41.9238, 83.1377)
Luminance0.4192 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397EA #AEEA97
analogous
#A997EA #D397EA #EA97D8
triadic
#D397EA #EAD397 #97EAD3
tetradic
#D397EA #EAA997 #AEEA97 #97D8EA
square
#D397EA #EAA997 #AEEA97 #97D8EA
split-complementary
#D397EA #D8EA97 #97EAA9
monochromatic
#A831D5 #BD64E0 #D397EA #E9CAF4 #F4E6FA

Accessibility & contrast

On white

2.24
#D397EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#D397EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397EA
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397EA#FFFFFF#000000##000000
##D397EA1.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BAAED
Deuteranopia (green-blind)
#99AFE7
Tritanopia (blue-blind)
#D2A1B6
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d397ea;
/* rgb */ color: rgb(211, 151, 234);
/* oklch */ color: oklch(76.3% 0.132 316.3);
Tailwind
colors: {
  custom: {
    50: '#e1b6f1',
    500: '#d397ea',
    950: '#000000',
  },
}
SCSS
$custom: #d397ea;
$custom-light: #e1b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d397ea",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 283.373,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.76313,
    "c": 0.13161,
    "h": 316.3
  },
  "luminance": 0.41923
}

Semantic roles & 50–950 ramp

primary
#D397EA
secondary
#E0F1DA
accent
#CE174A
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #D397EA

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

Preview Lab → · Contrast checker → · Palette generator →

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