#D397FE#D397FE

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

Color values

HEX#D397FE
RGBrgb(211, 151, 254)
HSLhsl(275, 98%, 79%)
HSVhsv(275, 41%, 100%)
CMYKcmyk(16.9%, 40.6%, 0%, 0.4%)
CIE-LABlab(71.65, 40.91, -42.72)
CIE-LCHlch(71.65, 59.15, 313.76°)
OKLaboklab(77.21% 0.0993 -0.1184)
OKLCHoklch(77.21% 0.155 310)
XYZxyz(55.8167, 43.1387, 99.1329)
Luminance0.4314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397FE #C2FE97
analogous
#A097FE #D397FE #FE97F6
triadic
#D397FE #FED397 #97FED3
tetradic
#D397FE #FEA097 #C2FE97 #97F6FE
square
#D397FE #FEA097 #C2FE97 #97F6FE
split-complementary
#D397FE #F6FE97 #97FEA0
monochromatic
#A01EFD #B95AFD #D397FE #EDD4FF #F2E1FF

Accessibility & contrast

On white

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

On black

9.63
#D397FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397FE
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397FE#FFFFFF#000000##000000
##D397FE1.002.189.639.63
#FFFFFF2.181.0021.0021.00
#0000009.6321.001.001.00
##0000009.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ADFF
Deuteranopia (green-blind)
#90B1FB
Tritanopia (blue-blind)
#CEA6BF
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d397fe;
/* rgb */ color: rgb(211, 151, 254);
/* oklch */ color: oklch(77.2% 0.155 310.0);
Tailwind
colors: {
  custom: {
    50: '#e2b6ff',
    500: '#d397fe',
    950: '#000000',
  },
}
SCSS
$custom: #d397fe;
$custom-light: #e2b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d397fe",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 274.951,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.77214,
    "c": 0.15458,
    "h": 310
  },
  "luminance": 0.43138
}

Semantic roles & 50–950 ramp

primary
#D397FE
secondary
#E3F7D4
accent
#E60060
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151118
muted
#848086

Preview Lab

Preview with #D397FE

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

Preview Lab → · Contrast checker → · Palette generator →

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