What is the HEX code for purple?
The CSS color purple in HEX format is #800080. Use this value directly in CSS, SVG, and most design tools.
How do I use purple in CSS?
To apply purple in CSS:
- Text color: color: #800080;
- Background: background-color: #800080;
- Border: border-color: #800080;
What are all the color format values for purple?
| Format | Value |
|---|---|
| HEX | #800080 |
| RGB | rgb(128, 0, 128) |
| HSL | hsl(300, 100%, 25.1%) |
| CMYK | cmyk(0%, 100%, 0%, 49.8%) |
How do I convert purple to HEX?
Select purple from the color name list in our color converter. The HEX value — #800080 — appears instantly alongside HEX, RGB, HSL and CMYK.
What color family does purple belong to?
purple belongs to the pink color family. It is a dark, vivid color with HSL values: hue 300°, saturation 100%, lightness 25.1%.
How do I create lighter and darker shades of purple?
Lighter variant (lightness 40.1%): #cd00cd. Darker variant (lightness 10.100000000000001%): #340034. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.
What is HEX used for?
HEX color codes are used in CSS, HTML and design tools. They encode red, green and blue as two hexadecimal digits each (00–FF), forming a compact 6-character code like #ff0000.