#D178EA#D178EA

#D178EA is a light, vivid purple. Relative luminance 0.329; OKLCH L 71.2% C 0.182 H 318.5°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#D178EA
RGBrgb(209, 120, 234)
HSLhsl(287, 73%, 69%)
HSVhsv(287, 49%, 92%)
CMYKcmyk(10.7%, 48.7%, 0%, 8.2%)
CIE-LABlab(64.10, 52.51, -43.60)
CIE-LCHlch(64.10, 68.25, 320.30°)
OKLaboklab(71.23% 0.1367 -0.1208)
OKLCHoklch(71.23% 0.182 318.5)
XYZxyz(47.8603, 32.9305, 81.6611)
Luminance0.3293 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178EA #91EA78
analogous
#9878EA #D178EA #EA78CA
triadic
#D178EA #EAD178 #78EAD1
tetradic
#D178EA #EA9878 #91EA78 #78CAEA
square
#D178EA #EA9878 #91EA78 #78CAEA
split-complementary
#D178EA #CAEA78 #78EA98
monochromatic
#A31FC8 #BF43E2 #D178EA #E3ADF2 #F5E2FA

Accessibility & contrast

On white

2.77
#D178EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#D178EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178EA
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178EA#FFFFFF#000000##000000
##D178EA1.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6495EE
Deuteranopia (green-blind)
#7E9EE7
Tritanopia (blue-blind)
#D188A6
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d178ea;
/* rgb */ color: rgb(209, 120, 234);
/* oklch */ color: oklch(71.2% 0.182 318.5);
Tailwind
colors: {
  custom: {
    50: '#e1a2f1',
    500: '#d178ea',
    950: '#000000',
  },
}
SCSS
$custom: #d178ea;
$custom-light: #e1a2f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d178ea",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 286.842,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.71233,
    "c": 0.18241,
    "h": 318.5
  },
  "luminance": 0.32929
}

Semantic roles & 50–950 ramp

primary
#D178EA
secondary
#D6EFCE
accent
#D5103B
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D178EA

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

Preview Lab → · Contrast checker → · Palette generator →

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