#D778F2#D778F2

#D778F2 is a light, vivid purple. Relative luminance 0.343; OKLCH L 72.3% C 0.193 H 318.4°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#D778F2
RGBrgb(215, 120, 242)
HSLhsl(287, 82%, 71%)
HSVhsv(287, 50%, 95%)
CMYKcmyk(11.2%, 50.4%, 0%, 5.1%)
CIE-LABlab(65.19, 55.70, -46.26)
CIE-LCHlch(65.19, 72.41, 320.29°)
OKLaboklab(72.32% 0.1446 -0.1284)
OKLCHoklch(72.32% 0.193 318.4)
XYZxyz(50.7656, 34.2927, 87.9322)
Luminance0.3429 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D778F2 #93F278
analogous
#9A78F2 #D778F2 #F278D0
triadic
#D778F2 #F2D778 #78F2D7
tetradic
#D778F2 #F29A78 #93F278 #78D0F2
square
#D778F2 #F29A78 #93F278 #78D0F2
split-complementary
#D778F2 #D0F278 #78F29A
monochromatic
#AF15DB #C640ED #D778F2 #E8B0F7 #F7E3FC

Accessibility & contrast

On white

2.67
#D778F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#D778F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D778F2
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D778F2#FFFFFF#000000##000000
##D778F21.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6198F6
Deuteranopia (green-blind)
#7EA1EF
Tritanopia (blue-blind)
#D78AAA
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d778f2;
/* rgb */ color: rgb(215, 120, 242);
/* oklch */ color: oklch(72.3% 0.193 318.4);
Tailwind
colors: {
  custom: {
    50: '#e6a2f7',
    500: '#d778f2',
    950: '#000000',
  },
}
SCSS
$custom: #d778f2;
$custom-light: #e6a2f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d778f2",
  "rgb": {
    "r": 215,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 286.721,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.72316,
    "c": 0.19335,
    "h": 318.4
  },
  "luminance": 0.34291
}

Semantic roles & 50–950 ramp

primary
#D778F2
secondary
#DAF3D3
accent
#DF0737
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D778F2

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

Preview Lab → · Contrast checker → · Palette generator →

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