red red #ff0000
red is #ff0000 in hexadecimal, rgb(255, 0, 0) in decimal and hsl(0, 100, 50) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.
HEX · RGB · HSL
| HEX | #ff0000 |
| RGB | rgb(255, 0, 0) |
| HSL | hsl(0, 100%, 50%) |
Harmonies
Complementary
Analogous
#ff0080#ff8000Split complementary
#00ff80#0080ffTints & shades
Accessibility
| vs #ffffff | 4:1 |
| vs #000000 | 5.25:1 |
| Suggested text color | #000000 · 5.25:1 · WCAG AA |
Similar named colors
FAQ
What is the HEX code for red?
red is #ff0000 in hex, rgb(255, 0, 0) in decimal and hsl(0, 100%, 50%) in HSL. In CSS you can write either color: red; or color: #ff0000; — they are equivalent.
What colors go with red?
The complementary #00ffff gives the strongest contrast, the analogous pair #ff0080 / #ff8000 is the safest, and the triad #00ff00 / #0000ff adds more tension. All three are derived from the 0° hue of #ff0000.
Does #ff0000 read better on white or black?
Its contrast is 4:1 against white and 5.25:1 against black. Use #000000 text on it — that gives 5.25:1, which meets WCAG AA.
Is a named color different from a hex color?
No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.