#D178F6#D178F6

#D178F6 is a light, vivid purple. Relative luminance 0.336; OKLCH L 71.8% C 0.195 H 315.1°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#D178F6
RGBrgb(209, 120, 246)
HSLhsl(282, 88%, 72%)
HSVhsv(282, 51%, 96%)
CMYKcmyk(15%, 51.2%, 0%, 3.5%)
CIE-LABlab(64.68, 54.91, -49.32)
CIE-LCHlch(64.68, 73.81, 318.07°)
OKLaboklab(71.84% 0.138 -0.1374)
OKLCHoklch(71.84% 0.195 315.1)
XYZxyz(49.6429, 33.6435, 91.0497)
Luminance0.3364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178F6 #9DF678
analogous
#9278F6 #D178F6 #F678DC
triadic
#D178F6 #F6D178 #78F6D1
tetradic
#D178F6 #F69278 #9DF678 #78DCF6
square
#D178F6 #F69278 #9DF678 #78DCF6
split-complementary
#D178F6 #DCF678 #78F692
monochromatic
#A60FE4 #BD3FF2 #D178F6 #E5B1FA #F5E2FD

Accessibility & contrast

On white

2.72
#D178F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#D178F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178F6
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178F6#FFFFFF#000000##000000
##D178F61.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C98FA
Deuteranopia (green-blind)
#779FF3
Tritanopia (blue-blind)
#CF8CAC
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d178f6;
/* rgb */ color: rgb(209, 120, 246);
/* oklch */ color: oklch(71.8% 0.195 315.1);
Tailwind
colors: {
  custom: {
    50: '#e1a2f9',
    500: '#d178f6',
    950: '#000000',
  },
}
SCSS
$custom: #d178f6;
$custom-light: #e1a2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#d178f6",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 246
  },
  "hsl": {
    "h": 282.381,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.71844,
    "c": 0.19476,
    "h": 315.1
  },
  "luminance": 0.33642
}

Semantic roles & 50–950 ramp

primary
#D178F6
secondary
#DEF5D5
accent
#E40144
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D178F6

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

Preview Lab → · Contrast checker → · Palette generator →

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