CSS named color

Red #FF0000

red rgb(255, 0, 0)

Red is a vivid red with the hex code #FF0000, which converts to rgb(255, 0, 0). Open #FF0000 in the converter to tweak it.

Red color values

HEX#FF0000
HEX (shorthand)#F00
RGBrgb(255, 0, 0)
RGBArgba(255, 0, 0, 1)
8-digit HEX#FF0000FF
HSLhsl(0, 100%, 50%)
HSV / HSB0°, 100%, 100%
CMYK0%, 100%, 100%, 0%
RGB 0–11, 0, 0
Decimal16711680
CSS keywordred

How #FF0000 converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: FF → 255, 00 → 0, 00 → 0. That gives rgb(255, 0, 0). The step-by-step guide explains the math.

Shades of Red

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of Red

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of Red on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

Complementary

Analogous

Split-complementary

Triadic

Tetradic (square)

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White Red 3.99:1AA Large only
Black Red 5.25:1AA

Use black text on a red background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use Red in CSS

.element {
  color: red;                         /* keyword */
  background-color: #FF0000;            /* hex */
  border-color: rgb(255 0 0 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #FF000080 is Red at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for Red?

The CSS named color red is #FF0000 in hexadecimal. In CSS you can write color: red; or color: #FF0000; — both produce the same pixel.

What is Red in RGB?

Red is rgb(255, 0, 0): red 255, green 0, blue 0 on the 0–255 scale. As normalized 0–1 floats that is (1, 0, 0).

Is white or black text more readable on Red?

Black text is more readable. White on #FF0000 has a contrast ratio of 3.99:1 (AA Large only), black on #FF0000 has 5.25:1 (AA). WCAG AA needs 4.5:1 for normal text.

Copied!