What is the HEX code for royal purple?
The CSS color royal purple in HEX format is #4b006e. Use this value directly in CSS, SVG, and most design tools.
How do I use royal purple in CSS?
To apply royal purple in CSS:
- Text color: color: #4b006e;
- Background: background-color: #4b006e;
- Border: border-color: #4b006e;
What are all the color format values for royal purple?
| Format | Value |
|---|---|
| HEX | #4b006e |
| RGB | rgb(75, 0, 110) |
| HSL | hsl(280.9, 100%, 21.6%) |
| CMYK | cmyk(31.8%, 100%, 0%, 56.9%) |
How do I convert royal purple to HEX?
Select royal purple from the color name list in our color converter. The HEX value — #4b006e — appears instantly alongside HEX, RGB, HSL and CMYK.
What color family does royal purple belong to?
royal purple belongs to the purple color family. It is a dark, vivid color with HSL values: hue 280.9°, saturation 100%, lightness 21.6%.
How do I create lighter and darker shades of royal purple?
Lighter variant (lightness 36.6%): #7f00bb. Darker variant (lightness 6.600000000000001%): #170022. 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.