#D397FA#D397FA

#D397FA is a light, vivid violet. Relative luminance 0.429; OKLCH L 77.0% C 0.150 H 311.1°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#D397FA
RGBrgb(211, 151, 250)
HSLhsl(276, 91%, 79%)
HSVhsv(276, 40%, 98%)
CMYKcmyk(15.6%, 39.6%, 0%, 2%)
CIE-LABlab(71.48, 40.06, -40.82)
CIE-LCHlch(71.48, 57.19, 314.46°)
OKLaboklab(77.03% 0.0986 -0.1129)
OKLCHoklch(77.03% 0.15 311.1)
XYZxyz(55.1829, 42.8851, 95.7946)
Luminance0.4288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397FA #BEFA97
analogous
#A197FA #D397FA #FA97EF
triadic
#D397FA #FAD397 #97FAD3
tetradic
#D397FA #FAA197 #BEFA97 #97EFFA
square
#D397FA #FAA197 #BEFA97 #97EFFA
split-complementary
#D397FA #EFFA97 #97FAA1
monochromatic
#A222F4 #BA5DF7 #D397FA #ECD1FD #F3E2FE

Accessibility & contrast

On white

2.19
#D397FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.58
#D397FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397FA
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397FA#FFFFFF#000000##000000
##D397FA1.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#84ACFE
Deuteranopia (green-blind)
#92B0F7
Tritanopia (blue-blind)
#CFA5BD
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d397fa;
/* rgb */ color: rgb(211, 151, 250);
/* oklch */ color: oklch(77.0% 0.150 311.1);
Tailwind
colors: {
  custom: {
    50: '#e2b6fc',
    500: '#d397fa',
    950: '#000000',
  },
}
SCSS
$custom: #d397fa;
$custom-light: #e2b6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d397fa",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 276.364,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.77027,
    "c": 0.14992,
    "h": 311.1
  },
  "luminance": 0.42884
}

Semantic roles & 50–950 ramp

primary
#D397FA
secondary
#E2F6D5
accent
#E6005A
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151117
muted
#848085

Preview Lab

Preview with #D397FA

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

Preview Lab → · Contrast checker → · Palette generator →

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