#D178DC#D178DC

#D178DC is a light, vivid purple. Relative luminance 0.322; OKLCH L 70.6% C 0.168 H 323.0°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#D178DC
RGBrgb(209, 120, 220)
HSLhsl(293, 59%, 67%)
HSVhsv(293, 45%, 86%)
CMYKcmyk(5%, 45.5%, 0%, 13.7%)
CIE-LABlab(63.47, 49.80, -36.80)
CIE-LCHlch(63.47, 61.93, 323.54°)
OKLaboklab(70.56% 0.1346 -0.1013)
OKLCHoklch(70.56% 0.168 323)
XYZxyz(45.9279, 32.1575, 71.4840)
Luminance0.3216 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178DC #83DC78
analogous
#9F78DC #D178DC #DC78B5
triadic
#D178DC #DCD178 #78DCD1
tetradic
#D178DC #DC9F78 #83DC78 #78B5DC
square
#D178DC #DC9F78 #83DC78 #78B5DC
split-complementary
#D178DC #B5DC78 #78DC9F
monochromatic
#9F2DAD #C047CF #D178DC #E2A9E9 #F2D9F5

Accessibility & contrast

On white

2.83
#D178DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#D178DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178DC
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178DC#FFFFFF#000000##000000
##D178DC1.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B93DF
Deuteranopia (green-blind)
#859DD9
Tritanopia (blue-blind)
#D484A0
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d178dc;
/* rgb */ color: rgb(209, 120, 220);
/* oklch */ color: oklch(70.6% 0.168 323.0);
Tailwind
colors: {
  custom: {
    50: '#e1a1e7',
    500: '#d178dc',
    950: '#000000',
  },
}
SCSS
$custom: #d178dc;
$custom-light: #e1a1e7;
$custom-dark: #000000;
JSON
{
  "hex": "#d178dc",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 220
  },
  "hsl": {
    "h": 293.4,
    "s": 58.824,
    "l": 66.667
  },
  "oklch": {
    "l": 0.70557,
    "c": 0.1684,
    "h": 323
  },
  "luminance": 0.32156
}

Semantic roles & 50–950 ramp

primary
#D178DC
secondary
#CBE8C8
accent
#C61F31
background
#FEFAFE
surface
#FCF4FC
border
#D5CED5
text
#150F16
muted
#847F84

Preview Lab

Preview with #D178DC

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

Preview Lab → · Contrast checker → · Palette generator →

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