Red #FF0000

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.

Aa Sample text
Red text on white
3.99:1 WCAG Lc 64.1 APCA AA large text only
Aa Sample text
Red text on black
5.25:1 WCAG Lc -37.5 APCA Passes AA
Aa Sample text
White text on red
3.99:1 WCAG Lc -69.6 APCA AA large text only
Aa Sample text
Black text on red
5.25:1 WCAG Lc 40 APCA Passes AA

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.

Related tools