#D396EC#D396EC

#D396EC is a light, vivid purple. Relative luminance 0.417; OKLCH L 76.2% C 0.136 H 315.7°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#D396EC
RGBrgb(211, 150, 236)
HSLhsl(283, 69%, 76%)
HSVhsv(283, 36%, 93%)
CMYKcmyk(10.6%, 36.4%, 0%, 7.5%)
CIE-LABlab(70.68, 37.70, -34.43)
CIE-LCHlch(70.68, 51.05, 317.60°)
OKLaboklab(76.23% 0.0971 -0.0946)
OKLCHoklch(76.23% 0.136 315.7)
XYZxyz(52.9083, 41.7189, 84.6060)
Luminance0.4172 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D396EC #AFEC96
analogous
#A896EC #D396EC #EC96DA
triadic
#D396EC #ECD396 #96ECD3
tetradic
#D396EC #ECA896 #AFEC96 #96DAEC
square
#D396EC #ECA896 #AFEC96 #96DAEC
split-complementary
#D396EC #DAEC96 #96ECA8
monochromatic
#A82ED9 #BD62E3 #D396EC #E9CAF5 #F4E5FA

Accessibility & contrast

On white

2.25
#D396EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.34
#D396EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D396EC
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D396EC#FFFFFF#000000##000000
##D396EC1.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A9EF
Deuteranopia (green-blind)
#97AFE9
Tritanopia (blue-blind)
#D2A1B6
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d396ec;
/* rgb */ color: rgb(211, 150, 236);
/* oklch */ color: oklch(76.2% 0.136 315.7);
Tailwind
colors: {
  custom: {
    50: '#e1b6f2',
    500: '#d396ec',
    950: '#000000',
  },
}
SCSS
$custom: #d396ec;
$custom-light: #e1b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d396ec",
  "rgb": {
    "r": 211,
    "g": 150,
    "b": 236
  },
  "hsl": {
    "h": 282.558,
    "s": 69.355,
    "l": 75.686
  },
  "oklch": {
    "l": 0.76232,
    "c": 0.13558,
    "h": 315.7
  },
  "luminance": 0.41718
}

Semantic roles & 50–950 ramp

primary
#D396EC
secondary
#E0F2D9
accent
#D1144B
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #D396EC

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

Preview Lab → · Contrast checker → · Palette generator →

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