#D397DC#D397DC

#D397DC is a light, moderate purple. Relative luminance 0.411; OKLCH L 75.7% C 0.116 H 322.1°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#D397DC
RGBrgb(211, 151, 220)
HSLhsl(292, 50%, 73%)
HSVhsv(292, 31%, 86%)
CMYKcmyk(4.1%, 31.4%, 0%, 13.7%)
CIE-LABlab(70.28, 33.99, -26.25)
CIE-LCHlch(70.28, 42.95, 322.32°)
OKLaboklab(75.73% 0.0917 -0.0714)
OKLCHoklch(75.73% 0.116 322.1)
XYZxyz(50.8473, 41.1509, 72.9607)
Luminance0.4115 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397DC #A0DC97
analogous
#B097DC #D397DC #DC97C2
triadic
#D397DC #DCD397 #97DCD3
tetradic
#D397DC #DCB097 #A0DC97 #97C2DC
square
#D397DC #DCB097 #A0DC97 #97C2DC
split-complementary
#D397DC #C2DC97 #97DCB0
monochromatic
#AA3FBA #C069CD #D397DC #E6C5EB #F5E8F7

Accessibility & contrast

On white

2.28
#D397DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#D397DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397DC
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397DC#FFFFFF#000000##000000
##D397DC1.002.289.239.23
#FFFFFF2.281.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d397dc;
/* rgb */ color: rgb(211, 151, 220);
/* oklch */ color: oklch(75.7% 0.116 322.1);
Tailwind
colors: {
  custom: {
    50: '#e1b6e7',
    500: '#d397dc',
    950: '#000000',
  },
}
SCSS
$custom: #d397dc;
$custom-light: #e1b6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#d397dc",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 292.174,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.75729,
    "c": 0.11626,
    "h": 322.1
  },
  "luminance": 0.41149
}

Semantic roles & 50–950 ramp

primary
#D397DC
secondary
#DFEEDD
accent
#BD293C
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #D397DC

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

Preview Lab → · Contrast checker → · Palette generator →

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