#D178EF#D178EF

#D178EF is a light, vivid purple. Relative luminance 0.332; OKLCH L 71.5% C 0.188 H 317.1°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#D178EF
RGBrgb(209, 120, 239)
HSLhsl(285, 79%, 70%)
HSVhsv(285, 50%, 94%)
CMYKcmyk(12.6%, 49.8%, 0%, 6.3%)
CIE-LABlab(64.34, 53.50, -46.00)
CIE-LCHlch(64.34, 70.55, 319.31°)
OKLaboklab(71.48% 0.1373 -0.1278)
OKLCHoklch(71.48% 0.188 317.1)
XYZxyz(48.5887, 33.2218, 85.4976)
Luminance0.3322 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178EF #96EF78
analogous
#9578EF #D178EF #EF78D1
triadic
#D178EF #EFD178 #78EFD1
tetradic
#D178EF #EF9578 #96EF78 #78D1EF
square
#D178EF #EF9578 #96EF78 #78D1EF
split-complementary
#D178EF #D1EF78 #78EF95
monochromatic
#A519D4 #BE41E9 #D178EF #E4AFF5 #F6E4FC

Accessibility & contrast

On white

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

On black

7.64
#D178EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178EF
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178EF#FFFFFF#000000##000000
##D178EF1.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6096F3
Deuteranopia (green-blind)
#7B9FEC
Tritanopia (blue-blind)
#D08AA9
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #d178ef;
/* rgb */ color: rgb(209, 120, 239);
/* oklch */ color: oklch(71.5% 0.188 317.1);
Tailwind
colors: {
  custom: {
    50: '#e1a2f5',
    500: '#d178ef',
    950: '#000000',
  },
}
SCSS
$custom: #d178ef;
$custom-light: #e1a2f5;
$custom-dark: #000000;
JSON
{
  "hex": "#d178ef",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 284.874,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.71484,
    "c": 0.18752,
    "h": 317.1
  },
  "luminance": 0.3322
}

Semantic roles & 50–950 ramp

primary
#D178EF
secondary
#D9F2D1
accent
#DB0A3F
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D178EF

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

Preview Lab → · Contrast checker → · Palette generator →

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