#D78AFA#D78AFA

#D78AFA is a light, vivid purple. Relative luminance 0.395; OKLCH L 75.4% C 0.173 H 314.5°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#D78AFA
RGBrgb(215, 138, 250)
HSLhsl(281, 92%, 76%)
HSVhsv(281, 45%, 98%)
CMYKcmyk(14%, 44.8%, 0%, 2%)
CIE-LABlab(69.13, 48.10, -44.46)
CIE-LCHlch(69.13, 65.50, 317.25°)
OKLaboklab(75.36% 0.1213 -0.1233)
OKLCHoklch(75.36% 0.173 314.5)
XYZxyz(54.3654, 39.5275, 95.1896)
Luminance0.3953 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D78AFA #ADFA8A
analogous
#9F8AFA #D78AFA #FA8AE5
triadic
#D78AFA #FAD78A #8AFAD7
tetradic
#D78AFA #FA9F8A #ADFA8A #8AE5FA
square
#D78AFA #FA9F8A #ADFA8A #8AE5FA
split-complementary
#D78AFA #E5FA8A #8AFA9F
monochromatic
#AF15F5 #C34FF7 #D78AFA #EBC5FD #F5E2FE

Accessibility & contrast

On white

2.36
#D78AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#D78AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D78AFA
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D78AFA#FFFFFF#000000##000000
##D78AFA1.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A4FE
Deuteranopia (green-blind)
#89ABF7
Tritanopia (blue-blind)
#D59AB6
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #d78afa;
/* rgb */ color: rgb(215, 138, 250);
/* oklch */ color: oklch(75.4% 0.173 314.5);
Tailwind
colors: {
  custom: {
    50: '#e5aefc',
    500: '#d78afa',
    950: '#000000',
  },
}
SCSS
$custom: #d78afa;
$custom-light: #e5aefc;
$custom-dark: #000000;
JSON
{
  "hex": "#d78afa",
  "rgb": {
    "r": 215,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 281.25,
    "s": 91.803,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75362,
    "c": 0.17293,
    "h": 314.5
  },
  "luminance": 0.39526
}

Semantic roles & 50–950 ramp

primary
#D78AFA
secondary
#DFF6D5
accent
#E60048
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D78AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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