CSS Named Color
Copy-ready color values
HEX
#800080RGB
rgb(128, 0, 128)HSL
hsl(300, 100%, 25%)HSV
hsv(300, 100%, 50%)CMYK approx.
cmyk(0, 100, 0, 50)Color value table
| Format | Value | Copy |
|---|---|---|
| HEX | #800080 | |
| RGB | rgb(128, 0, 128) | |
| HSL | hsl(300, 100%, 25%) | |
| HSV | hsv(300, 100%, 50%) | |
| CMYK approx. | cmyk(0, 100, 0, 50) | |
| CSS keyword | purple |
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#9EFF9EAnalogous
#710080#800F71Triadic
#008080#808000Split complementary
#96FF96#68D168Using 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"