#D397FD#D397FD

#D397FD is a light, vivid violet. Relative luminance 0.431; OKLCH L 77.2% C 0.153 H 310.3°. Best body text is #000000 at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#D397FD
RGBrgb(211, 151, 253)
HSLhsl(275, 96%, 79%)
HSVhsv(275, 40%, 99%)
CMYKcmyk(16.6%, 40.3%, 0%, 0.8%)
CIE-LABlab(71.61, 40.70, -42.25)
CIE-LCHlch(71.61, 58.66, 313.93°)
OKLaboklab(77.17% 0.0992 -0.1171)
OKLCHoklch(77.17% 0.153 310.3)
XYZxyz(55.6570, 43.0748, 98.2917)
Luminance0.4307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397FD #C1FD97
analogous
#A097FD #D397FD #FD97F4
triadic
#D397FD #FDD397 #97FDD3
tetradic
#D397FD #FDA097 #C1FD97 #97F4FD
square
#D397FD #FDA097 #C1FD97 #97F4FD
split-complementary
#D397FD #F4FD97 #97FDA0
monochromatic
#A01FFB #BA5BFC #D397FD #ECD3FE #F2E1FE

Accessibility & contrast

On white

2.18
#D397FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.61
#D397FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397FD
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397FD#FFFFFF#000000##000000
##D397FD1.002.189.619.61
#FFFFFF2.181.0021.0021.00
#0000009.6121.001.001.00
##0000009.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ADFF
Deuteranopia (green-blind)
#91B1FA
Tritanopia (blue-blind)
#CEA6BE
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d397fd;
/* rgb */ color: rgb(211, 151, 253);
/* oklch */ color: oklch(77.2% 0.153 310.3);
Tailwind
colors: {
  custom: {
    50: '#e2b6fe',
    500: '#d397fd',
    950: '#000000',
  },
}
SCSS
$custom: #d397fd;
$custom-light: #e2b6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d397fd",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 275.294,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.77167,
    "c": 0.15341,
    "h": 310.3
  },
  "luminance": 0.43074
}

Semantic roles & 50–950 ramp

primary
#D397FD
secondary
#E2F7D4
accent
#E6005F
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151118
muted
#848086

Preview Lab

Preview with #D397FD

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

Preview Lab → · Contrast checker → · Palette generator →

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