#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.
Color Codes
- HEX
#FF0000 - RGB
rgb(255, 0, 0) - HSL
hsl(0, 100%, 50%) - OKLCH
oklch(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
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
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.
Nearest Named Colors
CSS Name
red
#FF0000
ExactΔE OK 0.000Tailwind 4
red-500
oklch(63.7% 0.237 25.331)
CloseΔE OK 0.028Tailwind 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
Related guides
Frequently asked questions
What color is #FF0000?
Can I use #FF0000 for error text?
Is #FF0000 the same as Tailwind's red-500?
Related tools
Contrast Checker
Check color contrast ratios for WCAG AA/AAA accessibility compliance.
Use toolJSON Formatter
Validate, format, and minify JSON. Browse it as a tree, run JSONPath queries, compare two documents, or validate against a JSON Schema.
Use toolAspect Ratio Visualizer
Visually compare width differences between 16:9, 21:9, and 32:9 monitors.
Use tool