#D397FF#D397FF

#D397FF is a light, vivid violet. Relative luminance 0.432; OKLCH L 77.3% C 0.156 H 309.7°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#D397FF
RGBrgb(211, 151, 255)
HSLhsl(275, 100%, 80%)
HSVhsv(275, 41%, 100%)
CMYKcmyk(17.3%, 40.8%, 0%, 0%)
CIE-LABlab(71.69, 41.13, -43.20)
CIE-LCHlch(71.69, 59.64, 313.59°)
OKLaboklab(77.26% 0.0995 -0.1198)
OKLCHoklch(77.26% 0.156 309.7)
XYZxyz(55.9773, 43.2029, 99.9785)
Luminance0.4320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397FF #C3FF97
analogous
#9F97FF #D397FF #FF97F7
triadic
#D397FF #FFD397 #97FFD3
tetradic
#D397FF #FF9F97 #C3FF97 #97F7FF
square
#D397FF #FF9F97 #C3FF97 #97F7FF
split-complementary
#D397FF #F7FF97 #97FF9F
monochromatic
#9F1DFF #B95AFF #D397FF #EDD4FF #F2E0FF

Accessibility & contrast

On white

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

On black

9.64
#D397FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397FF
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397FF#FFFFFF#000000##000000
##D397FF1.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ADFF
Deuteranopia (green-blind)
#90B1FC
Tritanopia (blue-blind)
#CEA7BF
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d397ff;
/* rgb */ color: rgb(211, 151, 255);
/* oklch */ color: oklch(77.3% 0.156 309.7);
Tailwind
colors: {
  custom: {
    50: '#e2b6ff',
    500: '#d397ff',
    950: '#000000',
  },
}
SCSS
$custom: #d397ff;
$custom-light: #e2b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d397ff",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 274.615,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.7726,
    "c": 0.15574,
    "h": 309.7
  },
  "luminance": 0.43202
}

Semantic roles & 50–950 ramp

primary
#D397FF
secondary
#E3F7D4
accent
#E60061
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151118
muted
#848086

Preview Lab

Preview with #D397FF

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

Preview Lab → · Contrast checker → · Palette generator →

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