#D397F2#D397F2

#D397F2 is a light, vivid violet. Relative luminance 0.424; OKLCH L 76.7% C 0.141 H 313.6°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#D397F2
RGBrgb(211, 151, 242)
HSLhsl(280, 78%, 77%)
HSVhsv(280, 38%, 95%)
CMYKcmyk(12.8%, 37.6%, 0%, 5.1%)
CIE-LABlab(71.14, 38.39, -36.98)
CIE-LCHlch(71.14, 53.31, 316.07°)
OKLaboklab(76.66% 0.097 -0.1019)
OKLCHoklch(76.66% 0.141 313.6)
XYZxyz(53.9550, 42.3940, 89.3277)
Luminance0.4239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397F2 #B6F297
analogous
#A597F2 #D397F2 #F297E4
triadic
#D397F2 #F2D397 #97F2D3
tetradic
#D397F2 #F2A597 #B6F297 #97E4F2
square
#D397F2 #F2A597 #B6F297 #97E4F2
split-complementary
#D397F2 #E4F297 #97F2A5
monochromatic
#A52AE4 #BC61EB #D397F2 #EACDF9 #F3E4FC

Accessibility & contrast

On white

2.22
#D397F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.48
#D397F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397F2
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397F2#FFFFFF#000000##000000
##D397F21.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#87ABF5
Deuteranopia (green-blind)
#96B0EF
Tritanopia (blue-blind)
#D1A3B9
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d397f2;
/* rgb */ color: rgb(211, 151, 242);
/* oklch */ color: oklch(76.7% 0.141 313.6);
Tailwind
colors: {
  custom: {
    50: '#e2b6f6',
    500: '#d397f2',
    950: '#000000',
  },
}
SCSS
$custom: #d397f2;
$custom-light: #e2b6f6;
$custom-dark: #000000;
JSON
{
  "hex": "#d397f2",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 279.56,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.76664,
    "c": 0.14069,
    "h": 313.6
  },
  "luminance": 0.42393
}

Semantic roles & 50–950 ramp

primary
#D397F2
secondary
#E1F3D8
accent
#DA0B52
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #D397F2

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

Preview Lab → · Contrast checker → · Palette generator →

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