Measured guide
Brand color contrast check: fix text that fails 4.5:1

Short answer
A color is safe for text when its contrast ratio against the background is at least 4.5:1, or 3:1 for large text. The teal #1BA39C reads 3.10:1 on white, so it fails, while the shade #16847E reads 4.53:1 and passes. Of 12 brand colors tested, 9 failed 4.5:1 on white and 3 failed on black, and all 9 white failures passed once you darkened them in 1% steps. Encoding and phone scaling moved the ratio by up to 14% in the test, so aim near 5.2:1 and not exactly 4.5:1.
Key takeaways
- Paste one hex color into the Koldflux palette tool and it prints the ratio on white and on black. In the run it matched the script in 28 of 28 readings.
- Of 12 common brand colors, 9 fail 4.5:1 on white and 3 fail on black. No color in the set failed on both, because white and black sit at opposite ends of the scale.
- The nearest passing shade keeps your hue and only gets darker: 2% darker for pink, 24% for coral and 46% for yellow. You do not need a new color, only a deeper version of the one you have.
- An encode alone moved the ratio measured on the letter pixels by as much as -13.0%; an encode followed by a phone-size scale moved it between -6.0% and +13.8%. By arithmetic, 5.2:1 less 13% is still 4.5:1; no color at exactly 5.2:1 was encoded.
How do I check a text and background pair?
Start with the number. That is what the rules ask for. WCAG 2.2, the web accessibility standard, asks for a contrast ratio of at least 4.5:1 for text, and at least 3:1 for large-scale text, which it defines as 18 point or 14 point bold. It is a web standard, not a video rule, so on this page it is a yardstick. It gives you one number you can test and compare, and you can run the same test on any color you pick.
For a color against white or black, open the Koldflux palette tool, type the hex code into the color field and read the line under the swatch. It prints your color as contrast 3.10:1 on white, 6.77:1 on black. For a pair where neither color is white or black, the tool cannot test it, because it only compares one color with white and black. Use the formula below, which is the one the tool uses, and you can do it in any spreadsheet.
- Text under the large-text size, such as captions and lower thirds: 4.5:1 or more.
- Large text, such as a thumbnail headline, and shapes you must see, such as a button outline or a bar: 3:1 or more.
- Text that is part of a logo or a brand name has no requirement in WCAG 2.2, so the logo itself can keep a color that fails.
The tool was checked against a script on 14 inputs: the 12 colors below plus pure black and pure white. The two agreed in 28 of 28 readings, to two decimals, and the two controls read exactly 21.00 and 1.00. White on white is 1.00:1 and black on white is 21.00:1, so the scale runs from 1 to 21. That is all there is to it.
channel = v / 12.92 if v <= 0.04045
channel = ((v + 0.055) / 1.055) ^ 2.4 otherwise
L = 0.2126 * R + 0.7152 * G + 0.0722 * B
ratio = (L_lighter + 0.05) / (L_darker + 0.05)Which common brand colors pass on white and on black?
A color that looks strong on your mood board often fails as text. Often, not every time. The set is 12 colors that creators commonly pick for a brand: a coral, an orange, a yellow, a lime, a green, a teal, a sky blue, a blue, an indigo, a purple, a pink and a gray. The table gives the ratio of each as text on a white background and on a black one, so you can see at once which of your own picks sit near the same values and which sit far from them. Read it row by row. Slowly.
The split is clean, and you can see it at a glance. All the light and mid-tone colors fail on white and pass on black, and the three darker ones, blue, indigo and purple, do the reverse. On black, every color in the set passes 3:1 for large text. On white, only 6 of the 12 reach 3:1.
| Color | Hex | On white | On black | Result for 4.5:1 text |
|---|---|---|---|---|
| Coral | #FF6F61 | 2.73:1 | 7.70:1 | Fails on white |
| Orange | #F5821F | 2.59:1 | 8.10:1 | Fails on white |
| Yellow | #FFD600 | 1.41:1 | 14.87:1 | Fails on white |
| Lime | #8BC34A | 2.10:1 | 10.00:1 | Fails on white |
| Green | #2E9E5B | 3.41:1 | 6.16:1 | Fails on white |
| Teal | #1BA39C | 3.10:1 | 6.77:1 | Fails on white |
| Sky blue | #3FA9F5 | 2.56:1 | 8.21:1 | Fails on white |
| Blue | #2563EB | 5.17:1 | 4.06:1 | Fails on black |
| Indigo | #4F46E5 | 6.29:1 | 3.34:1 | Fails on black |
| Purple | #8E44AD | 5.87:1 | 3.58:1 | Fails on black |
| Pink | #E91E63 | 4.35:1 | 4.83:1 | Fails on white, by 0.15 |
| Gray | #9CA3AF | 2.54:1 | 8.27:1 | Fails on white |
Calculated November 22, 2026 and read back from the live palette tool. These are the ratios for the flat color. On a video frame the letters are anti-aliased, which the next sections cover.
A caption in one of the nine colors that fail on white can still work if you give it a dark outline or a dark box, because then the text sits on black, not on white. That is the case where the on-black column is the one that matters.

What happens when the background is a color, not white or black?
Your lower thirds and caption boxes are probably a brand color, and that is the pair the palette tool cannot test. Eight pairs went through the script, which uses the same formula. Two pairs that look bold, white on teal and white on pink, fail 4.5:1.
Dark text on a light brand color is the safer move. Try it first. Navy #0B1F3A on yellow read 11.70:1, and on lime it read 7.87:1. Two pairs failed even the 3:1 limit: sky blue text on indigo, and yellow on orange. Two saturated colors are a risk. A real one. If you pair them, check the pair before you build a template around it, because you will reuse that template on every video.
| Text | Background | Ratio | At 4.5:1 | At 3:1 |
|---|---|---|---|---|
| #FFFFFF | #2563EB (blue) | 5.17:1 | Pass | Pass |
| #FFFFFF | #1BA39C (teal) | 3.10:1 | Fail | Pass |
| #FFFFFF | #E91E63 (pink) | 4.35:1 | Fail | Pass |
| #0B1F3A (navy) | #FFD600 (yellow) | 11.70:1 | Pass | Pass |
| #0B1F3A (navy) | #8BC34A (lime) | 7.87:1 | Pass | Pass |
| #FF6F61 (coral) | #0B1F3A (navy) | 6.06:1 | Pass | Pass |
| #3FA9F5 (sky blue) | #4F46E5 (indigo) | 2.46:1 | Fail | Fail |
| #FFD600 (yellow) | #F5821F (orange) | 1.84:1 | Fail | Fail |
Calculated November 22, 2026 by the test script linked in the sources. The pairs were picked by hand, not surveyed from what creators use.
How do I swap a failing color for the nearest passing one?
Keep your hue. Move the lightness. Mix each failing color toward black in 1% steps and stop at the first step that reads 4.5:1 or more. That gives you the nearest passing shade. It keeps the color recognisable: your coral becomes a brick coral, and your yellow becomes an olive gold.
The palette tool shows shade swatches in 10% steps, which are coarser. They pass later than they need to, and overshoot 4.5:1 by up to 0.8, so the table lists both. The mix matched the tool swatches in 108 of 108 cells (12 colors, 9 steps each). Typing all 12 resulting colors back into the tool, the 9 fixes and the 3 that needed none, gave 4.5:1 or more every time. The last column adds a margin, explained in the next section.
| Color | Before | Nearest pass at 4.5:1 | Tool swatch (10% steps) | Darken for 3:1 (large text) | Aim for 5.2:1 |
|---|---|---|---|---|---|
| Coral | 2.73:1 | 24% darker, #C2544A, 4.51:1 | 30%, #B34E44, 5.13:1 | 5%, #F2695C | 31%, #B04D43, 5.26:1 |
| Orange | 2.59:1 | 26% darker, #B56017, 4.52:1 | 30%, #AC5B16, 4.93:1 | 8%, #E1781D | 32%, #A75815, 5.19:1 |
| Yellow | 1.41:1 | 46% darker, #8A7400, 4.59:1 | 50%, #806B00, 5.22:1 | 32%, #AD9200 | 50%, #806B00, 5.22:1 |
| Lime | 2.10:1 | 34% darker, #5C8131, 4.53:1 | 40%, #53752C, 5.32:1 | 17%, #73A23D | 40%, #53752C, 5.32:1 |
| Green | 3.41:1 | 15% darker, #27864D, 4.56:1 | 20%, #257E49, 5.05:1 | Already passes | 22%, #247B47, 5.25:1 |
| Teal | 3.10:1 | 19% darker, #16847E, 4.53:1 | 20%, #16827D, 4.64:1 | Already passes | 26%, #147973, 5.23:1 |
| Sky blue | 2.56:1 | 27% darker, #2E7BB3, 4.56:1 | 30%, #2C76AC, 4.89:1 | 8%, #3A9BE1 | 33%, #2A71A4, 5.25:1 |
| Pink | 4.35:1 | 2% darker, #E41D61, 4.52:1 | 10%, #D21B59, 5.20:1 | Already passes | 10%, #D21B59, 5.20:1 |
| Gray | 2.54:1 | 27% darker, #727780, 4.50:1 | 30%, #6D727B, 4.84:1 | 9%, #8E949F | 33%, #696D75, 5.19:1 |
Mixes and tool readings from November 22, 2026. Blue, indigo and purple already pass on white, so they are not in the table. If your background is black, they are the ones to lighten instead, and the same method works in the other direction. Only the darkening direction was tested, so check the lightened color in the tool before you use it.
Here is how you read it: if you only have time for one step, use the tool swatch column, because you can copy that hex from the tool. If you want the smallest change, use the 1% column, and if you want a margin, use the last one. Look at pink. It shows the difference best, because 2% darker is enough to pass and the nearest tool swatch is five times as dark.

Does encoding or a phone screen change the ratio?
Yes. A little, and in both directions, so you should not treat 4.5:1 as a safe line. A color you set at 4.5:1 is not 4.5:1 once a video encoder and a downscale have touched the letters. Each of the 12 colors was rendered as bold text in a 1080x1920 frame, encoded as H.264 and scaled to 390 px wide, then the letter pixels were measured. Only the inside of each stroke counts, because the soft edge pixels are a blend of the text color and the background by construction, so they were left out of the measurement.
Small text and stronger compression shifted the ratio more. With text 96 px tall and a moderate encode, the ratio stayed within -0.6% to +4.9% of the nominal value. With 36 px text and a heavy encode, it ranged from -6.0% to +13.8%. On encode alone, the worst case was -13.0%, with 36 px text on black at the heavy setting. That is why a margin of about 15% makes sense: 5.2:1 is 15% above 4.5:1, and 5.2 less 13% is 4.52. That last step is arithmetic, not a measured color.
| Text size | Background | Encode (crf) | Shift, encode then scale | Shift, encode only |
|---|---|---|---|---|
| 96 px | White | 30 | +1.7% to +4.9% | +0.2% to +2.3% |
| 96 px | Black | 30 | -0.6% to +2.0% | -3.1% to -1.2% |
| 36 px | White | 30 | +3.0% to +12.5% | +1.4% to +6.5% |
| 36 px | Black | 30 | +1.4% to +8.9% | -6.7% to -1.8% |
| 36 px | White | 40 | -1.4% to +13.8% | -2.9% to +9.7% |
| 36 px | Black | 40 | -6.0% to +7.1% | -13.0% to -5.8% |
Measured November 22, 2026, with ffmpeg 6.1.1 and libx264 at crf 30 and crf 40, on flat backgrounds. Each row covers the 12 colors, and the shifts are the smallest and largest of the 12 relative to the nominal ratio. The controls held: black and white stayed at 21.00:1, and a color against itself stayed at 1.00:1.
The encode command is below. You can run it on a frame you export from your own design. An odd width or height, such as 1079x1919 or 1080x1919, fails with width not divisible by 2 or height not divisible by 2 and leaves an empty out.mp4 behind, which is the encoder refusing the size and not a problem with the color. The command log lists the run on the test frame, a heavier crf 40 run and the odd-size failure.
ffmpeg -y -v error -loop 1 -i frame.png -t 1 -r 30 -vf "scale=out_color_matrix=bt709:out_range=tv,format=yuv420p" -c:v libx264 -preset medium -crf 30 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv out.mp4Limits and what was not tested
- No physical phone and no real editor. The phone view is a scale to 390 px wide, a proxy for a screen and not a screen.
- One encoder, libx264, at two quality settings, on flat backgrounds. A platform that recompresses your upload, or footage that moves behind the text, may move the ratio more than measured here.
- Bold text only. Thin fonts have less stroke interior, so if you use a thin face, add more margin than 5.2:1 suggests.
- Colored backgrounds are script-only on this page: the palette tool takes one color and compares it with white and black.
- No color vision test, no screen reader and no accessibility audit. A contrast ratio is one number, and it cannot say whether a person with low vision can read the text.
- The 12 colors were picked by hand. Your brand colors will differ, so test yours in the tool.
Do it in your browser
Free Koldflux tool, no account needed.
Questions people ask
What contrast ratio do I need for video captions?
Use 4.5:1 as the minimum for captions and lower thirds, and aim for about 5.2:1 to leave a margin for encoding, scaling on a phone and the soft edge of anti-aliased letters. The margin comes from the largest drop in our test and is not a guarantee. WCAG 2.2 asks for 4.5:1 for normal text and 3:1 for large text. It is a web standard, so on video it is a yardstick and not a rule.
Is white text on a teal or pink background readable?
No, not by the 4.5:1 measure. White on #1BA39C teal read 3.10:1 and white on #E91E63 pink read 4.35:1 in the test. Both pass 3:1, so they can work for large headline text. Small captions are another matter.
Can I use the palette tool to check two brand colors against each other?
No. The Koldflux palette tool compares one color with white and with black. For two colors that are neither, use the formula on this page or the script linked in the sources. Both give the same number the tool gives for white and black.
Does my logo have to pass the contrast check?
Not under WCAG 2.2, which says text that is part of a logo or a brand name has no contrast requirement. The check applies to text you add around the logo, such as captions and lower thirds.
How do I find the nearest passing shade by hand?
Mix the color toward black one percent at a time, test the ratio after each step, and stop at the first step that reads 4.5:1 or more. The palette tool shows 9 shades in 10% steps, which is a faster start but coarser. The test script does the 1% search for any hex you give it.
Why does the ratio on my video differ from the tool?
The tool reads the flat color. A video frame is compressed and scaled, and the letters are anti-aliased. In the test the ratio of the stroke interior moved by up to 13.8% after encoding and scaling, which is why we aim near 5.2:1.
Related
More guides on this topic
Sources and how we checked
- Web Content Accessibility Guidelines (WCAG) 2.2, Success Criterion 1.4.3 Contrast (Minimum): "contrast ratio of at least 4.5:1", large-scale text "at least 3:1" (W3C) (checked 2026-11-22)
- WCAG 2.2, Success Criterion 1.4.11 Non-text Contrast: graphical objects and interface components need 3:1 (W3C) (checked 2026-11-22)
- WCAG 2.2 definitions: relative luminance and contrast ratio (W3C) (checked 2026-11-22)
- Test run log, November 22, 2026 (Koldflux, plain text) (checked 2026-11-22)
- The test script as it ran on the Koldflux server; it has server paths and expects the 12-color file, so read it, do not run it as is (Koldflux, shell) (checked 2026-11-22)
- The contrast and encode script (Koldflux, Python) (checked 2026-11-22)
- The WCAG formula code (Koldflux, Python) (checked 2026-11-22)
- The pixel measurement code (Koldflux, Python) (checked 2026-11-22)
- The palette tool reader (Koldflux, Node) (checked 2026-11-22)
- The check of the fixed colors in the tool (Koldflux, Python) (checked 2026-11-22)
- The 12 test colors (Koldflux, tab-separated text) (checked 2026-11-22)
- The command log, with the edge cases (Koldflux, plain text) (checked 2026-11-22)
Every number comes from a run on 2026-11-22. Contrast came from the WCAG 2.2 relative luminance formula in a Python script, read the same ratios back from the live Koldflux palette tool with a browser script, and measured encoded text with ffmpeg 6.1.1 (libx264 at crf 30 and 40, bt709 limited range, bicubic scaling to 390 px wide) on the inside of the letter strokes. Every script and log is named in the sources. Each shell command ran on a test frame and on one edge input.