Skip to content

Red

Red is a medium, vivid color from the red family. Hex code #FF0000.

Red#FF0000

Color codes

  • CSS namered
  • HEX#FF0000
  • RGBrgb(255 0 0)
  • HSLhsl(0 100% 50%)
  • HSB / HSVhsb(0, 100%, 100%)
  • OKLCHoklch(62.8% 0.258 29.2)
  • CMYKcmyk(0%, 100%, 100%, 0%)

White text

3.99:1 · passes WCAG AA for large text only

Black text

5.25:1 · passes WCAG AA

Shades

50#FEEEEB
100#FDC5BC
200#FD998A
300#FB6453
400#ED2419
500#C30804
600#960B06
700#6E0201
800#460201

Complementary

#FF0000
#2499A9

Analogous

#FF0000
#EC2B85
#C4711F

Triadic

#FF0000
#18A34B
#5C7DF8

About this color

Red in CSS and design

Red is a medium, vivid color from the red family. Red is one of the 16 basic color keywords, which go back to HTML 4, long before CSS had 148 named colors.

Use it in CSS by name or by any of its codes; these all give the same color:

color: red;
color: #FF0000;
color: rgb(255 0 0);
color: hsl(0 100% 50%);

For text on red, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.

Frequently asked questions

What is the hex code for red?

#FF0000. In CSS you can also use the keyword red, which works in every browser.

What is red in RGB and HSL?

In RGB it is rgb(255 0 0), in HSL hsl(0 100% 50%). For print, cmyk(0%, 100%, 100%, 0%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

Should I use black or white text on red?

Black text works better: it has a contrast ratio of 5.25:1 and passes WCAG AA. White text reaches 3.99:1.

Which colors go with red?

Its complementary color is #2499A9, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #EC2B85 and #C4711F. The palette generator builds more combinations.