Red Hex Code #FF0000
Red is a medium, vivid color with the hex code #FF0000. In RGB it is 255, 0, 0, and in HSL it is 0°, 100%, 50%. It is one of the 148 named colors in CSS, so you can write “red” instead of the hex code.
- HEX
- #FF0000
- RGB
- rgb(255, 0, 0)
- HSL
- hsl(0, 100%, 50%)
- HSV
- hsv(0°, 100%, 100%)
- CMYK
- cmyk(0%, 100%, 100%, 0%)
- CSS name
- red
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Red
On a white background Red has a contrast ratio of 4.00:1 (AA Large), and on black 5.25:1 (AA). Black text is the better choice on top of it.
It sits on the warm side of the color wheel, a range that tends to feel energetic and appears to advance toward the viewer.
Red draws attention and signals urgency, which is why it is common for alerts, errors and sale tags. Because people strongly associate it with warnings, use it sparingly for anything that is not an alert.
Good to know: Red (#ff0000) is the red channel at full intensity with green and blue at zero, one of the three RGB primaries. Pure red is very intense on screen, so interfaces often use a slightly deeper or tinted red such as crimson (#dc143c) instead.
Shades and tints of Red
Tints mix Red with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Color harmonies for Red
These schemes are calculated from Red on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.
On the artist’s RYB wheel, the complement of Red is #00FF00, close to the named color Lime.
Red contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Red scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 4.00:1 | ✕ Fail | ✓ Pass | ✕ Fail | ✕ Fail |
| Black (#000000) | 5.25:1 | ✓ Pass | ✓ Pass | ✕ Fail | ✓ Pass |
Red and color blindness
These are approximate previews of how Red can look with the main types of color vision deficiency.
Red changes noticeably.
Red changes noticeably.
Red looks almost the same.
Red changes noticeably.
Gradients with Red
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Red to a lighter tint
background: linear-gradient(135deg, #ff0000 0%, #ff9999 100%); Red to its analogous neighbour
background: linear-gradient(135deg, #ff0000 0%, #ff8000 100%); Red to its complement
background: linear-gradient(135deg, #ff0000 0%, #00ffff 100%); Colors similar to Red
How each close match differs from Red.
Use Red in code
.element {
color: #ff0000;
background-color: #ff0000;
border-color: red; /* red is a valid CSS color name */
} :root {
--color-red: #ff0000;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#ff0000] text-[#ff0000] border-[#ff0000]"></div>
/* Tailwind v4 theme color */
@theme {
--color-red: #ff0000;
} Red questions
What is the hex code for Red?
The hex code for Red is #FF0000. In RGB that is rgb(255, 0, 0), and in HSL it is hsl(0, 100%, 50%).
What is the complementary color of Red?
On the RGB (screen) color wheel, the complement of Red is #00FFFF, which is close to Cyan. On the artist’s RYB wheel it is #00FF00, close to Lime.
Should I use white or black text on Red?
Black text. It has a contrast ratio of 5.25:1 against Red, which is WCAG AA. The other option scores 4.00:1.
Is Red accessible as a text color on white?
Only for large text. Red on white scores 4.00:1, which passes WCAG AA for large text (3:1) but not for normal text (4.5:1).
What are darker and lighter shades of Red?
Mixing Red with black gives #CC0000, #990000, #660000, #330000 (20% to 80% black). Mixing it with white gives #FF3333, #FF6666, #FF9999, #FFCCCC (20% to 80% white).