#FF0000: pure red color codes, contrast and shades

By TechCompare · Updated · How we check

#FF0000 is rgb(255, 0, 0), the CSS color red and the red primary of sRGB. WCAG 2 picks black text on it at 5.25:1. White gets 4.00:1, enough only for large text.

#FF0000

Color Codes

  • HEX#FF0000
  • RGBrgb(255, 0, 0)
  • HSLhsl(0, 100%, 50%)
  • OKLCHoklch(62.8% 0.2577 29.23)

Text on #FF0000

White Text

Aa

The quick brown fox jumps over the lazy dog.

4.00:1APCA Lc -69.6

  • AA Normal (4.5:1)Fail
  • AA Large (3:1)Pass
  • AAA Normal (7:1)Fail
  • AAA Large (4.5:1)Fail
Check White Text in Contrast Checker

Black Text

Aa

The quick brown fox jumps over the lazy dog.

5.25:1APCA Lc 40.0

  • AA Normal (4.5:1)Pass
  • AA Large (3:1)Pass
  • AAA Normal (7:1)Fail
  • AAA Large (4.5:1)Pass
Check Black Text in Contrast Checker

WCAG 2 ratios are the same whichever color is the text, so they also hold for #FF0000 text on a white or black page. APCA is a newer method that isn't part of any WCAG standard, and a minus sign means light text on dark.

#FF0000 turns the red channel all the way up and leaves green and blue off. It's the reddest red sRGB can show, and in CSS it's simply red. Browsers use it too: the HTML spec colors a link red while you click it. The cards above give its codes and test white and black text on it. Below are 4 lighter and 4 darker shades.

Shades

Same hue and chroma in OKLCH, with even steps of lightness. Open any shade in the Color Picker.

  1. #FFEDE7
  2. #FFC5B9
  3. #FF9988
  4. #FF6351
  5. Base#FF0000
  6. #DB0000
  7. #B10000
  8. #890000
  9. #630000

Nearest Named Colors

  • CSS Name

    red

    #FF0000

    ExactΔE OK 0.000
  • Tailwind 4

    red-500

    oklch(63.7% 0.237 25.331)

    CloseΔE OK 0.028
  • Tailwind 3

    red-500

    #EF4444

    Not CloseΔE OK 0.053

About #FF0000

Red is where the two contrast methods split. WCAG 2 scores black text 5.25:1 and white text 4.00:1, so white passes only for large text: 24px and up, or about 18.66px bold. APCA, a newer method that isn't part of any WCAG standard, prefers white, at Lc -69.6 against Lc 40.0 for black.

The same number applies to red text on a white page. Error messages in pure red score 4.00:1 and fail AA for normal text. One step down the scale, #DB0000 still reads as a strong red and passes at 5.23:1.

Red and green are the pair people with the most common kinds of color blindness mix up. Pair a red error state with an icon or a word so it doesn't rely on color alone.

Verdict

Use #FF0000 for large alerts, icons, badges and fills with black text. For error text and buttons with white labels, switch to #DB0000.

The lighter steps lose contrast against white fast, so keep them for backgrounds like error banners, with dark text on top. Click a shade to open it in the Color Picker.

More Color scenarios

Hex to RGB
A hex color code is three RGB numbers written in base 16.
View details
RGB vs CMYK
Screens add light and print adds ink. See one color in both, and why a plain CMYK formula can't promise a print match.
View details
HSL color model
Hue, saturation and lightness, with three live sliders and a table of common colors in hex, RGB and HSL.
View details

Frequently asked questions

What color is #FF0000?
Pure red: rgb(255, 0, 0), hsl(0, 100%, 50%) or oklch(62.8% 0.2577 29.23). The CSS name is red, and #F00 is the same color.
Can I use #FF0000 for error text?
Only if it's large. On white it scores 4.00:1, which fails AA for normal text. #DB0000, one step darker, passes at 5.23:1 and still looks red.
Is #FF0000 the same as Tailwind's red-500?
No. Tailwind 3's red-500 is #EF4444, a softer coral red. Tailwind 4's red-500 is oklch(63.7% 0.237 25.331), closer at 0.028 away in OKLab, but still a different color.