#D397FC#D397FC

#D397FC is a light, vivid violet. Relative luminance 0.430; OKLCH L 77.1% C 0.152 H 310.5°. Best body text is #000000 at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#D397FC
RGBrgb(211, 151, 252)
HSLhsl(276, 94%, 79%)
HSVhsv(276, 40%, 99%)
CMYKcmyk(16.3%, 40.1%, 0%, 1.2%)
CIE-LABlab(71.56, 40.49, -41.77)
CIE-LCHlch(71.56, 58.17, 314.10°)
OKLaboklab(77.12% 0.099 -0.1157)
OKLCHoklch(77.12% 0.152 310.5)
XYZxyz(55.4981, 43.0112, 97.4549)
Luminance0.4301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D397FC #C0FC97
analogous
#A197FC #D397FC #FC97F2
triadic
#D397FC #FCD397 #97FCD3
tetradic
#D397FC #FCA197 #C0FC97 #97F2FC
square
#D397FC #FCA197 #C0FC97 #97F2FC
split-complementary
#D397FC #F2FC97 #97FCA1
monochromatic
#A120F9 #BA5CFA #D397FC #ECD2FE #F2E1FE

Accessibility & contrast

On white

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

On black

9.60
#D397FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D397FC
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D397FC#FFFFFF#000000##000000
##D397FC1.002.199.609.60
#FFFFFF2.191.0021.0021.00
#0000009.6021.001.001.00
##0000009.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ACFF
Deuteranopia (green-blind)
#91B0F9
Tritanopia (blue-blind)
#CEA6BE
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d397fc;
/* rgb */ color: rgb(211, 151, 252);
/* oklch */ color: oklch(77.1% 0.152 310.5);
Tailwind
colors: {
  custom: {
    50: '#e2b6fd',
    500: '#d397fc',
    950: '#000000',
  },
}
SCSS
$custom: #d397fc;
$custom-light: #e2b6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d397fc",
  "rgb": {
    "r": 211,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 275.644,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.7712,
    "c": 0.15224,
    "h": 310.5
  },
  "luminance": 0.4301
}

Semantic roles & 50–950 ramp

primary
#D397FC
secondary
#E2F6D5
accent
#E6005D
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151118
muted
#848086

Preview Lab

Preview with #D397FC

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

Preview Lab → · Contrast checker → · Palette generator →

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