What is the HEX code for red?
The CSS color red in HEX format is #ff0000. Use this value directly in CSS, SVG, and most design tools.
How do I use red in CSS?
To apply red in CSS:
- Text color: color: #ff0000;
- Background: background-color: #ff0000;
- Border: border-color: #ff0000;
What are all the color format values for red?
| Format | Value |
|---|---|
| HEX | #ff0000 |
| RGB | rgb(255, 0, 0) |
| HSL | hsl(0, 100%, 50%) |
| CMYK | cmyk(0%, 100%, 100%, 0%) |
How do I convert red to HEX?
Select red from the color name list in our color converter. The HEX value — #ff0000 — appears instantly alongside HEX, RGB, HSL and CMYK.
What color family does red belong to?
red belongs to the red color family. It is a medium, vivid color with HSL values: hue 0°, saturation 100%, lightness 50%.
How do I create lighter and darker shades of red?
Lighter variant (lightness 65%): #ff4d4d. Darker variant (lightness 35%): #b30000. 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.