CSS Named Color

Copy-ready color values

HEX#800080
RGBrgb(128, 0, 128)
HSLhsl(300, 100%, 25%)
HSVhsv(300, 100%, 50%)
CMYK approx.cmyk(0, 100, 0, 50)

Color value table

FormatValueCopy
HEX#800080
RGBrgb(128, 0, 128)
HSLhsl(300, 100%, 25%)
HSVhsv(300, 100%, 50%)
CMYK approx.cmyk(0, 100, 0, 50)
CSS keywordpurple

Contrast and classification

DarkLightness9.42:1Contrast with white2.23:1Contrast with blackMagenta / PurpleColor family

Shade and tint preview

White 10%
#8D1A8D

White 30%
#A64DA6

White 70%
#D9B3D9

White 90%
#F2E6F2

Black 10%
#730073

Black 30%
#5A005A

Black 70%
#260026

Black 90%
#0D000D

Harmony palettes

Complementary

#7FFF7F
#9EFF9E

Analogous

#710080
#800F71

Triadic

#008080
#808000

Split complementary

#96FF96
#68D168

Using Purple

Purple works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.

CSS, SCSS, and Tailwind examples

:root {
  --color-purple: #800080;
}

.button-primary {
  background: var(--color-purple);
  color: #ffffff;
}

$purple: #800080;

// Tailwind arbitrary value
class="bg-[#800080] text-white"