What is the HEX code for midnight purple?
The CSS color midnight purple in HEX format is #280137. Use this value directly in CSS, SVG, and most design tools.
How do I use midnight purple in CSS?
To apply midnight purple in CSS:
- Text color: color: #280137;
- Background: background-color: #280137;
- Border: border-color: #280137;
What are all the color format values for midnight purple?
| Format | Value |
|---|---|
| HEX | #280137 |
| RGB | rgb(40, 1, 55) |
| HSL | hsl(283.3, 96.4%, 11%) |
| CMYK | cmyk(27.3%, 98.2%, 0%, 78.4%) |
How do I convert midnight purple to HEX?
Select midnight purple from the color name list in our color converter. The HEX value — #280137 — appears instantly alongside HEX, RGB, HSL and CMYK.
What color family does midnight purple belong to?
midnight purple belongs to the purple color family. It is a dark, vivid color with HSL values: hue 283.3°, saturation 96.4%, lightness 11%.
How do I create lighter and darker shades of midnight purple?
Lighter variant (lightness 26%): #5f0282. Darker variant (lightness 5%): #120019. 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.