Red hex code

The hex code for red is #FF0000, or rgb(255, 0, 0). CSS also accepts the keyword red.

#FF0000
HEX#FF0000
RGBrgb(255, 0, 0)
HSLhsl(0, 100%, 50%)
HSV / HSBhsv(0, 100%, 100%)
OKLCHoklch(62.8% 0.2577 29.23)
CMYKcmyk(0%, 100%, 100%, 0%)
Short HEX#F00
HEX, 50% opacity#FF000080
RGB, 50% opacityrgb(255 0 0 / 50%)
CSS namered
Defined inHTML 4.01 (one of the original 16 color names)

About red

red (#FF0000) is pure red: the red channel at its maximum and green and blue at zero. It is one of the 16 color names that HTML 4 defined.

Pure red has a fairly high luminance for such a strong color, so white text on it does not reach the 4.5:1 contrast that WCAG AA asks for body text. Darker reds such as firebrick (#B22222) and darkred (#8B0000) do.

Shades and tints of red

Red lands on the 600 step. The steps follow a lightness curve modeled on Tailwind CSS's default palette; build your own in the Tailwind color generator. For red mixed with white, black or gray in even steps, use the tint and shade generator.

50#FFF3F0100#FFE5DF200#FFCDC3300#FFAB9C400#FF7A67500#FF4A3A600#FF0000700#C90000800#A40000900#83150E950#4E0C07

Colors that go with red

Partner hues are picked on the OKLCH color wheel.

Complementary: the opposite hue

#FF0000#009CB2

Open in the palette generator · Compare the screen and painter's complements of red

Analogous: neighboring hues 30° either side

#FF0000#F50084#D06800

Open in the palette generator · See analogous and monochromatic colors of red on three wheels

Triadic: three hues 120° apart

#FF0000#00A836#5577FF

Open in the palette generator

Split complementary: the two hues beside the complement

#FF0000#00A28A#0092E2

Open in the palette generator

Text on red

White text on red: 4:1
Black text on red: 5.25:1
TextRatioAA normalAA largeAAA normal
White4:1FailPassFail
Black5.25:1PassPassFail

The ratio is the same either way round, so red text on a white background is also 4:1. Check other pairs in the color contrast checker.

Similar named colors

The CSS named colors closest to red, by deltaE OK distance.

orangered #FF4500crimson #DC143Ctomato #FF6347indianred #CD5C5Cchocolate #D2691Ecoral #FF7F50

See all 148 on the color names page.

Closest Tailwind CSS colors

red-500 v4: red-500, #FB2C36, deltaE OK 0.028

red-500 v3: red-500, #EF4444, deltaE OK 0.053

In Tailwind CSS v4 it is red-500 (#FB2C36), and in v3 red-500 (#EF4444). For the exact color, use an arbitrary value such as bg-[#ff0000]. A deltaE OK of around 0.02 is roughly the smallest difference most people notice side by side. Browse every shade on the Tailwind CSS colors page.

Red with color vision deficiency

An approximation of how red may look with protanopia, deuteranopia and tritanopia (simulated with Machado, Oliveira and Fernandes, 2009), and with achromatopsia, shown as a gray of the same luminance.

protanopia #6D5F00deuteranopia #A39000tritanopia #FF000Fachromatopsia #7F7F7F

Test a whole palette or image in the color blindness simulator.

Using red in code

.example {
  color: red;                 /* named color */
  background-color: #ff0000;  /* hex */
  border-color: rgb(255, 0, 0);
}

Frequently asked questions

What is the hex code for red?
#FF0000, or #F00 in short form. CSS also accepts the keyword red, which means the same color.
What is red in RGB?
rgb(255, 0, 0). In HSL it is hsl(0, 100%, 50%), and in OKLCH oklch(62.8% 0.2577 29.23).
What text color goes on red?
Black text has the higher contrast on #FF0000: 5.25:1, which meets AA for all text. White text reaches 4:1.
What is the closest Tailwind color to red?
In Tailwind CSS v4 it is red-500 (#FB2C36), and in v3 red-500 (#EF4444). For the exact color, use an arbitrary value such as bg-[#ff0000].
How do I make red transparent?
Add an alpha value. Half-transparent red is #FF000080 as 8-digit HEX (80 is 128 out of 255) or rgb(255 0 0 / 50%).