#D397E2#D397E2

#D397E2 is a light, vivid purple. Relative luminance 0.415; OKLCH L 76.0% C 0.123 H 319.5°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#D397E2
RGBrgb(211, 151, 226)
HSLhsl(288, 56%, 74%)
HSVhsv(288, 33%, 89%)
CMYKcmyk(6.6%, 33.2%, 0%, 11.4%)
CIE-LABlab(70.51, 35.16, -29.21)
CIE-LCHlch(70.51, 45.71, 320.29°)
OKLaboklab(75.98% 0.0933 -0.0798)
OKLCHoklch(75.98% 0.123 319.5)
XYZxyz(51.6562, 41.4745, 77.2210)
Luminance0.4147 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397E2 #A6E297
analogous
#AE97E2 #D397E2 #E297CC
triadic
#D397E2 #E2D397 #97E2D3
tetradic
#D397E2 #E2AE97 #A6E297 #97CCE2
square
#D397E2 #E2AE97 #A6E297 #97CCE2
split-complementary
#D397E2 #CCE297 #97E2AE
monochromatic
#AA38C7 #BF67D5 #D397E2 #E7C7EF #F5E7F8

Accessibility & contrast

On white

2.26
#D397E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#D397E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397E2
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397E2#FFFFFF#000000##000000
##D397E21.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA8E5
Deuteranopia (green-blind)
#9CAFE0
Tritanopia (blue-blind)
#D4A0B3
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d397e2;
/* rgb */ color: rgb(211, 151, 226);
/* oklch */ color: oklch(76.0% 0.123 319.5);
Tailwind
colors: {
  custom: {
    50: '#e1b6eb',
    500: '#d397e2',
    950: '#000000',
  },
}
SCSS
$custom: #d397e2;
$custom-light: #e1b6eb;
$custom-dark: #000000;
JSON
{
  "hex": "#d397e2",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 226
  },
  "hsl": {
    "h": 288,
    "s": 56.391,
    "l": 73.922
  },
  "oklch": {
    "l": 0.75975,
    "c": 0.12273,
    "h": 319.5
  },
  "luminance": 0.41473
}

Semantic roles & 50–950 ramp

primary
#D397E2
secondary
#DFF0DB
accent
#C42242
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #D397E2

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

Preview Lab → · Contrast checker → · Palette generator →

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