100% free no uploads no sign-up

red color code

The hex code for red is #FF0000, which is rgb(255, 0, 0) in RGB and cmyk(0%, 100%, 100%, 0%) in CMYK. It's a medium, vivid red. It is a built-in CSS colour, so you can also write it as “red”.

#FF0000red
White text: 3.99:1 large text onlyBlack text: 5.25:1 ✓ AANearest name: red

Move the sliders to find a lighter, darker or softer red; the codes update as you go.

Red colour codes

HEX#FF0000
RGBrgb(255, 0, 0)
HSLhsl(0, 100%, 50%)
HSV / HSBhsv(0, 100%, 100%)
CMYKcmyk(0%, 100%, 100%, 0%)
Decimal16711680
CSS keywordred

About red

Red sits at a hue of 0° on the colour wheel, with 100% saturation and 50% lightness. That makes it a warm colour: warm colours feel energetic and inviting and appear to come forward on a page.

For text, black reads better on red. Red as text on a white background has a contrast ratio of 3.99:1, which fails the WCAG AA rule for body text (4.5:1) and passes the 3:1 rule for large text. On black it is 5.25:1, which passes AA for body text.

Tints and shades of red

Tints mix red with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.

#FFE6E6#FFCCCC#FFB3B3#FF9999#FF8080#FF6666#FF4D4D#FF3333#FF1A1A
red #FF0000
#E60000#CC0000#B30000#990000#800000#660000#4D0000#330000#1A0000

Colours that go with red

Complementary — opposite on the colour wheel: maximum contrast

#FF0000#00FFFF

Analogous — neighbours 30° either side: calm and natural

#FF0080#FF0000#FF8000

Triadic — three hues 120° apart: lively but balanced

#FF0000#00FF00#0000FF

Split complementary — the two neighbours of the complement: contrast with less tension

#FF0000#00FF80#0080FF

Tetradic — four hues 90° apart: rich, use one as the main colour

#FF0000#80FF00#00FFFF#8000FF

Red text contrast

CombinationRatioAA normal (4.5:1)AA large (3:1)AAA (7:1)
red on white3.99:1failpassfail
red on black5.25:1passpassfail

Check red against any other colour in the contrast checker.

How red looks with colour blindness

Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.

normal #FF0000protanopia #6D5F00deuteranopia #A39000tritanopia #FF000F

Use red in code

.red {
  color: red;
  background-color: #ff0000;
  border-color: rgb(255, 0, 0);
}

Frequently asked questions

What is the hex code for red?

Red is #FF0000 (lowercase #ff0000). It's the official value of the CSS keyword “red”.

What is red in RGB, HSL and CMYK?

RGB: rgb(255, 0, 0). HSL: hsl(0, 100%, 50%). CMYK: cmyk(0%, 100%, 100%, 0%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.

What colours go with red?

Its complementary colour is #00FFFF (close to cyan), which gives the strongest contrast. For a calmer look, use the analogous colours #FF0080 and #FF8000, or the triadic pair #00FF00 and #0000FF. Tints and shades of red itself always work together.

Is red a warm or cool colour?

Red has a hue of 0°, which makes it warm.

Should I use black or white text on red?

Black. Black text on red has a contrast ratio of 5.25:1 and white text has 3.99:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.

How do I use red in CSS?

Write color: red; or color: #ff0000; — both give the same colour. Named colours work in every browser.

Colours similar to red