#D178EE#D178EE

#D178EE is a light, vivid purple. Relative luminance 0.332; OKLCH L 71.4% C 0.186 H 317.3°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#D178EE
RGBrgb(209, 120, 238)
HSLhsl(285, 78%, 70%)
HSVhsv(285, 50%, 93%)
CMYKcmyk(12.2%, 49.6%, 0%, 6.7%)
CIE-LABlab(64.29, 53.30, -45.52)
CIE-LCHlch(64.29, 70.09, 319.50°)
OKLaboklab(71.43% 0.1371 -0.1264)
OKLCHoklch(71.43% 0.186 317.3)
XYZxyz(48.4414, 33.1629, 84.7217)
Luminance0.3316 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178EE #95EE78
analogous
#9678EE #D178EE #EE78D0
triadic
#D178EE #EED178 #78EED1
tetradic
#D178EE #EE9678 #95EE78 #78D0EE
square
#D178EE #EE9678 #95EE78 #78D0EE
split-complementary
#D178EE #D0EE78 #78EE96
monochromatic
#A41AD1 #BE42E7 #D178EE #E4AEF5 #F6E4FC

Accessibility & contrast

On white

2.75
#D178EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#D178EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178EE
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178EE#FFFFFF#000000##000000
##D178EE1.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6196F2
Deuteranopia (green-blind)
#7C9FEB
Tritanopia (blue-blind)
#D089A8
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #d178ee;
/* rgb */ color: rgb(209, 120, 238);
/* oklch */ color: oklch(71.4% 0.186 317.3);
Tailwind
colors: {
  custom: {
    50: '#e1a2f4',
    500: '#d178ee',
    950: '#000000',
  },
}
SCSS
$custom: #d178ee;
$custom-light: #e1a2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d178ee",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 238
  },
  "hsl": {
    "h": 285.254,
    "s": 77.632,
    "l": 70.196
  },
  "oklch": {
    "l": 0.71433,
    "c": 0.18649,
    "h": 317.3
  },
  "luminance": 0.33161
}

Semantic roles & 50–950 ramp

primary
#D178EE
secondary
#D9F1D1
accent
#DA0C3E
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D178EE

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

Preview Lab → · Contrast checker → · Palette generator →

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