What is the RGB code for red?
The CSS color red in RGB format is rgb(255, 0, 0). 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: rgb(255, 0, 0);
- Background: background-color: rgb(255, 0, 0);
- Border: border-color: rgb(255, 0, 0);
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 RGB?
Select red from the color name list in our color converter. The RGB value — rgb(255, 0, 0) — 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 RGB used for?
RGB defines colors using three values from 0 to 255 — red, green and blue intensity. It is the native format for screens, monitors and web browsers.