#D178ED#D178ED

#D178ED is a light, vivid purple. Relative luminance 0.331; OKLCH L 71.4% C 0.185 H 317.6°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#D178ED
RGBrgb(209, 120, 237)
HSLhsl(286, 76%, 70%)
HSVhsv(286, 49%, 93%)
CMYKcmyk(11.8%, 49.4%, 0%, 7.1%)
CIE-LABlab(64.25, 53.10, -45.04)
CIE-LCHlch(64.25, 69.63, 319.70°)
OKLaboklab(71.38% 0.137 -0.125)
OKLCHoklch(71.38% 0.185 317.6)
XYZxyz(48.2949, 33.1043, 83.9501)
Luminance0.3310 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178ED #94ED78
analogous
#9678ED #D178ED #ED78CF
triadic
#D178ED #EDD178 #78EDD1
tetradic
#D178ED #ED9678 #94ED78 #78CFED
square
#D178ED #ED9678 #94ED78 #78CFED
split-complementary
#D178ED #CFED78 #78ED96
monochromatic
#A41CCF #BF42E6 #D178ED #E3AEF4 #F6E4FB

Accessibility & contrast

On white

2.76
#D178ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.62
#D178ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178ED
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178ED#FFFFFF#000000##000000
##D178ED1.002.767.627.62
#FFFFFF2.761.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6296F1
Deuteranopia (green-blind)
#7C9FEA
Tritanopia (blue-blind)
#D189A8
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #d178ed;
/* rgb */ color: rgb(209, 120, 237);
/* oklch */ color: oklch(71.4% 0.185 317.6);
Tailwind
colors: {
  custom: {
    50: '#e1a2f3',
    500: '#d178ed',
    950: '#000000',
  },
}
SCSS
$custom: #d178ed;
$custom-light: #e1a2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#d178ed",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 237
  },
  "hsl": {
    "h": 285.641,
    "s": 76.471,
    "l": 70
  },
  "oklch": {
    "l": 0.71383,
    "c": 0.18547,
    "h": 317.6
  },
  "luminance": 0.33103
}

Semantic roles & 50–950 ramp

primary
#D178ED
secondary
#D8F1D0
accent
#D90D3E
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D178ED

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

Preview Lab → · Contrast checker → · Palette generator →

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