#D397EC#D397EC

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

Color values

HEX#D397EC
RGBrgb(211, 151, 236)
HSLhsl(282, 69%, 76%)
HSVhsv(282, 36%, 93%)
CMYKcmyk(10.6%, 36%, 0%, 7.5%)
CIE-LABlab(70.90, 37.16, -34.08)
CIE-LCHlch(70.90, 50.42, 317.47°)
OKLaboklab(76.4% 0.0956 -0.0936)
OKLCHoklch(76.4% 0.134 315.6)
XYZxyz(53.0686, 42.0394, 84.6595)
Luminance0.4204 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397EC #B0EC97
analogous
#A897EC #D397EC #EC97DA
triadic
#D397EC #ECD397 #97ECD3
tetradic
#D397EC #ECA897 #B0EC97 #97DAEC
square
#D397EC #ECA897 #B0EC97 #97DAEC
split-complementary
#D397EC #DAEC97 #97ECA8
monochromatic
#A730D9 #BD63E3 #D397EC #E9CBF5 #F4E5FA

Accessibility & contrast

On white

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

On black

9.41
#D397EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397EC
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397EC#FFFFFF#000000##000000
##D397EC1.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AAAEF
Deuteranopia (green-blind)
#98AFE9
Tritanopia (blue-blind)
#D2A2B7
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d397ec;
/* rgb */ color: rgb(211, 151, 236);
/* oklch */ color: oklch(76.4% 0.134 315.6);
Tailwind
colors: {
  custom: {
    50: '#e1b6f2',
    500: '#d397ec',
    950: '#000000',
  },
}
SCSS
$custom: #d397ec;
$custom-light: #e1b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d397ec",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 282.353,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.764,
    "c": 0.13386,
    "h": 315.6
  },
  "luminance": 0.42038
}

Semantic roles & 50–950 ramp

primary
#D397EC
secondary
#E0F2D9
accent
#D1144C
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #D397EC

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

Preview Lab → · Contrast checker → · Palette generator →

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