Red color (#FF0000)
Red is one of the 148 CSS named colors. Use the keyword red
anywhere CSS accepts a color, or its hex code #FF0000, which is rgb(255, 0, 0) in RGB.
It is a medium, vivid warm color with a hue angle of 0° on the HSL color wheel and a perceived lightness of 63% in OKLCH. On a red background, black text gives the higher contrast at 5.25:1, which passes WCAG AA for normal text.
Red color codes
| CSS name | red |
|
|---|---|---|
| HEX | #FF0000 |
|
| HEX (8-digit) | #FF0000FF |
|
| RGB | rgb(255, 0, 0) |
|
| HSL | hsl(0, 100%, 50%) |
|
| HSV / HSB | hsv(0, 100%, 100%) |
|
| OKLCH | oklch(62.8% 0.2577 29.2) |
|
| CMYK | cmyk(0%, 100%, 100%, 0%) |
Contrast with white and black
WCAG 2 contrast ratios and APCA lightness contrast (Lc) for red used as text and as a background.
Tints and shades of red
Tints mix red with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.
Tints
Shades
Colors that go with red
Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.
Complementary
Analogous
Triadic
Split-Complementary
Red with color blindness
Approximately how red appears with each type of color vision deficiency. Test full designs with the color blindness simulator.
Using red in CSS
.element {
color: red;
background-color: #ff0000;
border-color: rgb(255 0 0 / 50%);
outline-color: oklch(62.8% 0.2577 29.2);
}Similar named colors
See all shades of red or browse every CSS color name.