#D397EB#D397EB

#D397EB is a light, vivid purple. Relative luminance 0.420; OKLCH L 76.4% C 0.133 H 316.0°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#D397EB
RGBrgb(211, 151, 235)
HSLhsl(283, 68%, 76%)
HSVhsv(283, 36%, 92%)
CMYKcmyk(10.2%, 35.7%, 0%, 7.8%)
CIE-LABlab(70.86, 36.96, -33.60)
CIE-LCHlch(70.86, 49.95, 317.73°)
OKLaboklab(76.36% 0.0954 -0.0923)
OKLCHoklch(76.36% 0.133 316)
XYZxyz(52.9237, 41.9815, 83.8964)
Luminance0.4198 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397EB #AFEB97
analogous
#A997EB #D397EB #EB97D9
triadic
#D397EB #EBD397 #97EBD3
tetradic
#D397EB #EBA997 #AFEB97 #97D9EB
square
#D397EB #EBA997 #AFEB97 #97D9EB
split-complementary
#D397EB #D9EB97 #97EBA9
monochromatic
#A830D7 #BD64E1 #D397EB #E9CAF5 #F4E5FA

Accessibility & contrast

On white

2.23
#D397EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#D397EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397EB
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397EB#FFFFFF#000000##000000
##D397EB1.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AAAEE
Deuteranopia (green-blind)
#98AFE8
Tritanopia (blue-blind)
#D2A2B6
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d397eb;
/* rgb */ color: rgb(211, 151, 235);
/* oklch */ color: oklch(76.4% 0.133 316.0);
Tailwind
colors: {
  custom: {
    50: '#e1b6f1',
    500: '#d397eb',
    950: '#000000',
  },
}
SCSS
$custom: #d397eb;
$custom-light: #e1b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d397eb",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 282.857,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.76357,
    "c": 0.13274,
    "h": 316
  },
  "luminance": 0.4198
}

Semantic roles & 50–950 ramp

primary
#D397EB
secondary
#E0F2D9
accent
#D0164B
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #D397EB

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

Preview Lab → · Contrast checker → · Palette generator →

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