#D78CFB#D78CFB

#D78CFB is a light, vivid purple. Relative luminance 0.402; OKLCH L 75.7% C 0.171 H 314.0°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#D78CFB
RGBrgb(215, 140, 251)
HSLhsl(281, 93%, 77%)
HSVhsv(281, 44%, 98%)
CMYKcmyk(14.3%, 44.2%, 0%, 1.6%)
CIE-LABlab(69.59, 47.26, -44.29)
CIE-LCHlch(69.59, 64.77, 316.86°)
OKLaboklab(75.72% 0.1187 -0.1228)
OKLCHoklch(75.72% 0.171 314)
XYZxyz(54.8122, 40.1696, 96.1142)
Luminance0.4017 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D78CFB #B0FB8C
analogous
#A08CFB #D78CFB #FB8CE7
triadic
#D78CFB #FBD78C #8CFBD7
tetradic
#D78CFB #FBA08C #B0FB8C #8CE7FB
square
#D78CFB #FBA08C #B0FB8C #8CE7FB
split-complementary
#D78CFB #E7FB8C #8CFBA0
monochromatic
#AE16F7 #C251F9 #D78CFB #ECC7FD #F5E1FE

Accessibility & contrast

On white

2.32
#D78CFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.03
#D78CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D78CFB
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D78CFB#FFFFFF#000000##000000
##D78CFB1.002.329.039.03
#FFFFFF2.321.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A6FF
Deuteranopia (green-blind)
#8AACF8
Tritanopia (blue-blind)
#D49CB8
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #d78cfb;
/* rgb */ color: rgb(215, 140, 251);
/* oklch */ color: oklch(75.7% 0.171 314.0);
Tailwind
colors: {
  custom: {
    50: '#e5affd',
    500: '#d78cfb',
    950: '#000000',
  },
}
SCSS
$custom: #d78cfb;
$custom-light: #e5affd;
$custom-dark: #000000;
JSON
{
  "hex": "#d78cfb",
  "rgb": {
    "r": 215,
    "g": 140,
    "b": 251
  },
  "hsl": {
    "h": 280.541,
    "s": 93.277,
    "l": 76.667
  },
  "oklch": {
    "l": 0.75719,
    "c": 0.17077,
    "h": 314
  },
  "luminance": 0.40168
}

Semantic roles & 50–950 ramp

primary
#D78CFB
secondary
#E0F6D5
accent
#E6004A
background
#FEFAFF
surface
#FCF5FF
border
#D5CFD7
text
#161017
muted
#847F85

Preview Lab

Preview with #D78CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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