#D178E8#D178E8

#D178E8 is a light, vivid purple. Relative luminance 0.328; OKLCH L 71.1% C 0.180 H 319.1°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#D178E8
RGBrgb(209, 120, 232)
HSLhsl(288, 71%, 69%)
HSVhsv(288, 48%, 91%)
CMYKcmyk(9.9%, 48.3%, 0%, 9%)
CIE-LABlab(64.01, 52.11, -42.64)
CIE-LCHlch(64.01, 67.33, 320.71°)
OKLaboklab(71.13% 0.1364 -0.118)
OKLCHoklch(71.13% 0.18 319.1)
XYZxyz(47.5746, 32.8162, 80.1564)
Luminance0.3281 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178E8 #8FE878
analogous
#9978E8 #D178E8 #E878C7
triadic
#D178E8 #E8D178 #78E8D1
tetradic
#D178E8 #E89978 #8FE878 #78C7E8
square
#D178E8 #E89978 #8FE878 #78C7E8
split-complementary
#D178E8 #C7E878 #78E899
monochromatic
#A321C4 #BF44DF #D178E8 #E3ACF1 #F5E1FA

Accessibility & contrast

On white

2.78
#D178E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#D178E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178E8
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178E8#FFFFFF#000000##000000
##D178E81.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6595EC
Deuteranopia (green-blind)
#7F9EE5
Tritanopia (blue-blind)
#D287A5
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d178e8;
/* rgb */ color: rgb(209, 120, 232);
/* oklch */ color: oklch(71.1% 0.180 319.1);
Tailwind
colors: {
  custom: {
    50: '#e1a2f0',
    500: '#d178e8',
    950: '#000000',
  },
}
SCSS
$custom: #d178e8;
$custom-light: #e1a2f0;
$custom-dark: #000000;
JSON
{
  "hex": "#d178e8",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 232
  },
  "hsl": {
    "h": 287.679,
    "s": 70.886,
    "l": 69.02
  },
  "oklch": {
    "l": 0.71134,
    "c": 0.18038,
    "h": 319.1
  },
  "luminance": 0.32814
}

Semantic roles & 50–950 ramp

primary
#D178E8
secondary
#D4EECD
accent
#D3133A
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#160F16
muted
#847F84

Preview Lab

Preview with #D178E8

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

Preview Lab → · Contrast checker → · Palette generator →

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