White on red #ff0000: 4:1 contrast
Warning banners and delete buttons.
Your colours
#ffffff · rgb(255, 255, 255) · hsl(0, 0%, 100%)
#ff0000 · rgb(255, 0, 0) · hsl(0, 100%, 50%)
Try an example
Result
4:1
Passes only for large text and UI parts
Contrast ratio 4 to 1. Passes only for large text and UI parts.
Large text: book your visit today
Normal text: opening hours, prices and contact details need to be easy to read for everyone, including people on a phone in bright sunlight.
- Fail
AA, normal text
Needs 4.5:1 · Body text and most labels. The level most laws and policies ask for.
- Pass
AA, large text
Needs 3:1 · Text from 24px, or 18.66px and bold.
- Fail
AAA, normal text
Needs 7:1 · The enhanced level. Worth aiming for on long reading.
- Fail
AAA, large text
Needs 4.5:1 · Large text at the enhanced level.
- Pass
Buttons, icons and borders
Needs 3:1 · Parts of controls and graphics you need to see (WCAG 2.2, 1.4.11).
Fix it: the closest colours that pass
Same hue, smallest change. Pick one to try it in the preview above.
Change the text colour
Darker text: #161616
4.53:1 · keeps the same hue, moves 92 points of lightness
Or change the background
Darker background: #ed0000
4.56:1 · keeps the same hue, moves 4 points of lightness
How it looks with colour-blindness
About 1 in 12 men and 1 in 200 women have some form of colour-vision deficiency. These previews are an approximation, and the ratio is measured on the simulated colours.
Aa
Sample text
Protanopia
No red cones. Reds look dark and muddy.
6.39:1AAAa
Sample text
Deuteranopia
No green cones. The most common type.
3.21:1Below AAAa
Sample text
Tritanopia
No blue cones. Rare. Blues and yellows blur together.
3.99:1Below AAAa
Sample text
Greyscale
No colour at all. Only lightness is left.
4:1Below AA
The short answer
White on red #ff0000 has a contrast ratio of 4:1. That is below the 4.5:1 needed for normal text, so it fails AA for body copy. It does pass for large text (24px, or 18.66px bold) and for the visible parts of buttons and icons, which need 3:1.
- AA, normal text (needs 4.5:1)Fail
- AA, large text (needs 3:1)Pass
- AAA, normal text (needs 7:1)Fail
- AAA, large text (needs 4.5:1)Fail
- Buttons, icons and borders (needs 3:1)Pass
Colours that pass instead
These are the smallest changes that reach 4.5:1 and keep the same hue, so the look stays close to what you had.
- Text #1616164.53:1 on red #ff0000
- Background #ed00004.56:1 with white text
Questions about this pair
Is white on red #ff0000 accessible?
White on red #ff0000 has a contrast ratio of 4:1. That is below the 4.5:1 needed for normal text, so it fails AA for body copy. It does pass for large text (24px, or 18.66px bold) and for the visible parts of buttons and icons, which need 3:1.
Can I use white on red #ff0000 for body text?
No. Body text needs 4.5:1 for AA and this pair reaches 4:1. Changing the text to #161616 gets it to 4.53:1.
Can I use it for large headings, buttons or icons?
Yes. Large text and the visible parts of buttons, icons and borders need 3:1, and this pair has 4:1. Keep small text on other colours.
Other combinations people check
- White on black21:1 · Passes AAA
- Black on white21:1 · Passes AAA
- Dark grey #333333 on white12.63:1 · Passes AAA
- Grey #666666 on white5.74:1 · Passes AA
- Grey #767676 on white4.54:1 · Passes AA
- Grey #777777 on white4.48:1 · Passes AA large
Open the full contrast checker to test your own colours or a whole palette.
See how your whole site does
A free scan checks every page element against WCAG 2.2, colours included, and explains each fix in plain English.