What is the HEX code for violet?
The CSS color violet in HEX format is #ee82ee. Use this value directly in CSS, SVG, and most design tools.
How do I use violet in CSS?
To apply violet in CSS:
- Text color: color: #ee82ee;
- Background: background-color: #ee82ee;
- Border: border-color: #ee82ee;
What are all the color format values for violet?
| Format | Value |
|---|---|
| HEX | #ee82ee |
| RGB | rgb(238, 130, 238) |
| HSL | hsl(300, 76.1%, 72.2%) |
| CMYK | cmyk(0%, 45.4%, 0%, 6.7%) |
How do I convert violet to HEX?
Select violet from the color name list in our color converter. The HEX value — #ee82ee — appears instantly alongside HEX, RGB, HSL and CMYK.
What color family does violet belong to?
violet belongs to the pink color family. It is a light, vivid color with HSL values: hue 300°, saturation 76.1%, lightness 72.2%.
How do I create lighter and darker shades of violet?
Lighter variant (lightness 87.2%): #f7c6f7. Darker variant (lightness 57.2%): #e53fe5. 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.