#D397DF#D397DF

#D397DF is a light, moderate purple. Relative luminance 0.413; OKLCH L 75.9% C 0.119 H 320.7°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#D397DF
RGBrgb(211, 151, 223)
HSLhsl(290, 53%, 73%)
HSVhsv(290, 32%, 87%)
CMYKcmyk(5.4%, 32.3%, 0%, 12.5%)
CIE-LABlab(70.39, 34.57, -27.73)
CIE-LCHlch(70.39, 44.32, 321.27°)
OKLaboklab(75.85% 0.0925 -0.0756)
OKLCHoklch(75.85% 0.119 320.7)
XYZxyz(51.2482, 41.3112, 75.0720)
Luminance0.4131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397DF #A3DF97
analogous
#AF97DF #D397DF #DF97C7
triadic
#D397DF #DFD397 #97DFD3
tetradic
#D397DF #DFAF97 #A3DF97 #97C7DF
square
#D397DF #DFAF97 #A3DF97 #97C7DF
split-complementary
#D397DF #C7DF97 #97DFAF
monochromatic
#AA3BC0 #BF68D1 #D397DF #E7C6ED #F5E8F8

Accessibility & contrast

On white

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

On black

9.26
#D397DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397DF
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397DF#FFFFFF#000000##000000
##D397DF1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FA8E2
Deuteranopia (green-blind)
#9DAEDD
Tritanopia (blue-blind)
#D59FB1
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d397df;
/* rgb */ color: rgb(211, 151, 223);
/* oklch */ color: oklch(75.9% 0.119 320.7);
Tailwind
colors: {
  custom: {
    50: '#e1b6e9',
    500: '#d397df',
    950: '#000000',
  },
}
SCSS
$custom: #d397df;
$custom-light: #e1b6e9;
$custom-dark: #000000;
JSON
{
  "hex": "#d397df",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 223
  },
  "hsl": {
    "h": 290,
    "s": 52.941,
    "l": 73.333
  },
  "oklch": {
    "l": 0.75851,
    "c": 0.11948,
    "h": 320.7
  },
  "luminance": 0.4131
}

Semantic roles & 50–950 ramp

primary
#D397DF
secondary
#DFEFDC
accent
#C0253F
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #D397DF

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

Preview Lab → · Contrast checker → · Palette generator →

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