#D178E9#D178E9

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

Color values

HEX#D178E9
RGBrgb(209, 120, 233)
HSLhsl(287, 72%, 69%)
HSVhsv(287, 48%, 91%)
CMYKcmyk(10.3%, 48.5%, 0%, 8.6%)
CIE-LABlab(64.06, 52.31, -43.12)
CIE-LCHlch(64.06, 67.79, 320.50°)
OKLaboklab(71.18% 0.1365 -0.1194)
OKLCHoklch(71.18% 0.181 318.8)
XYZxyz(47.7170, 32.8732, 80.9066)
Luminance0.3287 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178E9 #90E978
analogous
#9978E9 #D178E9 #E978C9
triadic
#D178E9 #E9D178 #78E9D1
tetradic
#D178E9 #E99978 #90E978 #78C9E9
square
#D178E9 #E99978 #90E978 #78C9E9
split-complementary
#D178E9 #C9E978 #78E999
monochromatic
#A320C6 #BF43E0 #D178E9 #E3ADF2 #F5E1FA

Accessibility & contrast

On white

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

On black

7.57
#D178E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178E9
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178E9#FFFFFF#000000##000000
##D178E91.002.777.577.57
#FFFFFF2.771.0021.0021.00
#0000007.5721.001.001.00
##0000007.5721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d178e9;
/* rgb */ color: rgb(209, 120, 233);
/* oklch */ color: oklch(71.2% 0.181 318.8);
Tailwind
colors: {
  custom: {
    50: '#e1a2f0',
    500: '#d178e9',
    950: '#000000',
  },
}
SCSS
$custom: #d178e9;
$custom-light: #e1a2f0;
$custom-dark: #000000;
JSON
{
  "hex": "#d178e9",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 233
  },
  "hsl": {
    "h": 287.257,
    "s": 71.975,
    "l": 69.216
  },
  "oklch": {
    "l": 0.71183,
    "c": 0.18139,
    "h": 318.8
  },
  "luminance": 0.32871
}

Semantic roles & 50–950 ramp

primary
#D178E9
secondary
#D5EFCE
accent
#D4113B
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#160F16
muted
#847F84

Preview Lab

Preview with #D178E9

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

Preview Lab → · Contrast checker → · Palette generator →

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