Red Color Code (#ff0000)

Red is #ff0000 in hex and rgb(255, 0, 0) — a medium red. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Red
#ff0000
CSS namered
Hex#ff0000
RGBrgb(255, 0, 0)
HSLhsl(0 100% 50%)
HWBhwb(0 0% 0%)
CMYK0%, 100%, 100%, 0%

Tints and shades

Color harmonies

About Red

Red (red) is a medium, vivid red with the hex code #ff0000, or rgb(255, 0, 0). In HSL it sits at a hue of 0°, 100% saturation and 50% lightness. It is one of the 148 named colors every browser understands, so you can write color: red; instead of the hex value.

Using Red for text and backgrounds

PairingContrast ratioWCAG
Red text on white4.00 : 1AA large text only
Red text on black5.25 : 1AA

On a red background, use black text (5.25 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: red;               /* or #ff0000 */
  background-color: #ff0000;
  border: 1px solid rgb(255 0 0 / 50%);
}

Similar named colors

Orange Red (#ff4500), Crimson (#dc143c), Fire Brick (#b22222), Brown (#a52a2a), Dark Red (#8b0000), Chocolate (#d2691e).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for red?
#ff0000 — that is rgb(255, 0, 0) and hsl(0, 100%, 50%). In CSS you can also just write red.
Is red text readable on white?
Its contrast ratio on white is 4.00 : 1, which passes only for large text (WCAG AA large).
What colors go well with red?
Its complementary color is #00ffff; analogous colors #ff0080 and #ff8000 sit next to it on the color wheel.