Shades to explore
Purple colour code
#800080Purple (#800080) is a medium-dark, vivid shade in the purple family. Its HSL lightness is 25% and saturation is 100%.
#800080rgb(128, 0, 128)hsl(300, 100%, 25%)Text contrast
With white: 9.42:1 · With black: 2.23:1
Normal text needs 4.5:1 for AA; large text needs 3:1.
Use Purple in CSS
Copy this background and text pairing into your stylesheet.
.colour-purple {
background-color: #800080;
color: #FFFFFF;
}Use the HEX value for a consistent digital reference. Descriptive colour names can vary between collections and are not always valid CSS keywords. This code does not identify a paint, fabric or print specification.
Using Purple
Try it as an accent in an illustration, invitation or creative presentation.
9.42:1 · AAA for normal text
This pairing uses #FFFFFF text on #800080. Results apply to solid colours; recheck contrast if you add transparency, imagery or effects.
Which purple HEX code should you use?
This page uses #800080: equal red and blue channel values of 128, with no green. “Purple” also describes a broad family of lighter, bluer and pinker shades. If you are matching a logo or screenshot, keep its sampled HEX code instead of replacing it with this named reference.
For a simple interface, try this purple as a solid button background with the white text pairing above. Use a pale neutral surface around it so the button remains distinct. Check the actual hover and focus treatments separately; changing opacity also changes the pair you tested.