#D397EF#D397EF

#D397EF is a light, vivid purple. Relative luminance 0.422; OKLCH L 76.5% C 0.137 H 314.6°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#D397EF
RGBrgb(211, 151, 239)
HSLhsl(281, 73%, 76%)
HSVhsv(281, 37%, 94%)
CMYKcmyk(11.7%, 36.8%, 0%, 6.3%)
CIE-LABlab(71.02, 37.77, -35.54)
CIE-LCHlch(71.02, 51.86, 316.75°)
OKLaboklab(76.53% 0.0963 -0.0978)
OKLCHoklch(76.53% 0.137 314.6)
XYZxyz(53.5081, 42.2152, 86.9742)
Luminance0.4221 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397EF #B3EF97
analogous
#A797EF #D397EF #EF97DF
triadic
#D397EF #EFD397 #97EFD3
tetradic
#D397EF #EFA797 #B3EF97 #97DFEF
square
#D397EF #EFA797 #B3EF97 #97DFEF
split-complementary
#D397EF #DFEF97 #97EFA7
monochromatic
#A62DDF #BD62E7 #D397EF #E9CCF7 #F4E4FB

Accessibility & contrast

On white

2.22
#D397EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.44
#D397EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397EF
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397EF#FFFFFF#000000##000000
##D397EF1.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#88AAF2
Deuteranopia (green-blind)
#97B0EC
Tritanopia (blue-blind)
#D1A3B8
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d397ef;
/* rgb */ color: rgb(211, 151, 239);
/* oklch */ color: oklch(76.5% 0.137 314.6);
Tailwind
colors: {
  custom: {
    50: '#e1b6f4',
    500: '#d397ef',
    950: '#000000',
  },
}
SCSS
$custom: #d397ef;
$custom-light: #e1b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d397ef",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 280.909,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.76531,
    "c": 0.13726,
    "h": 314.6
  },
  "luminance": 0.42214
}

Semantic roles & 50–950 ramp

primary
#D397EF
secondary
#E1F3D8
accent
#D5104F
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #D397EF

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

Preview Lab → · Contrast checker → · Palette generator →

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