#D397DD#D397DD

#D397DD is a light, moderate purple. Relative luminance 0.412; OKLCH L 75.8% C 0.117 H 321.6°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#D397DD
RGBrgb(211, 151, 221)
HSLhsl(291, 51%, 73%)
HSVhsv(291, 32%, 87%)
CMYKcmyk(4.5%, 31.7%, 0%, 13.3%)
CIE-LABlab(70.32, 34.18, -26.75)
CIE-LCHlch(70.32, 43.40, 321.96°)
OKLaboklab(75.77% 0.092 -0.0728)
OKLCHoklch(75.77% 0.117 321.6)
XYZxyz(50.9801, 41.2040, 73.6603)
Luminance0.4120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397DD #A1DD97
analogous
#B097DD #D397DD #DD97C4
triadic
#D397DD #DDD397 #97DDD3
tetradic
#D397DD #DDB097 #A1DD97 #97C4DD
square
#D397DD #DDB097 #A1DD97 #97C4DD
split-complementary
#D397DD #C4DD97 #97DDB0
monochromatic
#AA3DBC #BF69CE #D397DD #E7C5EC #F5E8F7

Accessibility & contrast

On white

2.27
#D397DD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.24
#D397DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397DD
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397DD#FFFFFF#000000##000000
##D397DD1.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#90A8E0
Deuteranopia (green-blind)
#9EAEDB
Tritanopia (blue-blind)
#D59EB0
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d397dd;
/* rgb */ color: rgb(211, 151, 221);
/* oklch */ color: oklch(75.8% 0.117 321.6);
Tailwind
colors: {
  custom: {
    50: '#e1b6e7',
    500: '#d397dd',
    950: '#000000',
  },
}
SCSS
$custom: #d397dd;
$custom-light: #e1b6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#d397dd",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 221
  },
  "hsl": {
    "h": 291.429,
    "s": 50.725,
    "l": 72.941
  },
  "oklch": {
    "l": 0.7577,
    "c": 0.11733,
    "h": 321.6
  },
  "luminance": 0.41203
}

Semantic roles & 50–950 ramp

primary
#D397DD
secondary
#DFEFDC
accent
#BE273D
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #D397DD

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

Preview Lab → · Contrast checker → · Palette generator →

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