Test a text or graphic color against Instagram, TikTok, YouTube, and X backgrounds in light and dark mode, then adjust it until it passes.
Preview · Instagram, light mode
Can you read this at a glance?
Smaller text like this needs enough contrast too.
Readability score
46/100
Contrast ratio
4.00:1
Result
Needs work
Large text (AA)
3:1 ✓ Pass
Normal text (AA)
4.5:1 ✗ Fail
Enhanced (AAA)
7:1 ✗ Fail
App or background
Theme
Fix this color
Adjust keeps your hue and changes only the lightness. The inverse flips each RGB channel of the background.
Checking Text Color Against Social Media Backgrounds
This checker compares a text or graphic color with the background of Instagram, TikTok, YouTube, or X, in light or dark mode, or with any background color you enter. It calculates the WCAG contrast ratio, converts it to a 0 to 100 readability score, and shows whether the pair clears the 3:1, 4.5:1, and 7:1 levels.
If a color falls short, one click changes its lightness until it meets the ratio you choose, keeping the same hue. Contrast measures lightness difference only, so it can't tell you whether a color suits your brand or stands out against a busy photo.
When to Test Your Colors Before Posting
Thumbnail text
Sample the color behind your title text, enter it as a custom background, and check the text color against it. Test the lightest and darkest parts of the image.
Infographics posted to X
Check your main color on both the light and dark backgrounds, since people see the same image in either mode.
Instagram quote cards and carousel covers
Test colored text on a colored card with a custom background, where two colors that look different can still have almost the same lightness.
Brand colors in both themes
Run a logo or accent color through Light and Dark for each app to see which mode needs a lighter or darker version.
How to Test a Color in Five Steps
- Pick an app and a theme, or choose Custom background to enter your own color.
- Enter your text or graphic color with the color picker or a hex code such as #FF5500.
- Read the contrast ratio and the three WCAG checks. This tool marks 4.5:1 as Pass.
- If the result says Needs work, click Adjust to 4.5:1 or Adjust to 7:1. The hue stays the same and only the lightness changes.
- Switch the theme and check again. The same color can pass in one mode and fail in the other.
Note: Hex codes can have 3 or 6 digits, with or without the # sign.
Limits of the Contrast Score
- Flat colors only: the tool compares two solid colors. Text over a photo, gradient, or video changes from area to area.
- The readability score is this tool's own scale (ratio ÷ 7 × 80, capped at 100), not a WCAG term. Use the contrast ratio and the pass levels to decide.
- The app backgrounds are fixed approximations. Apps update their interfaces, so use Custom background for an exact color.
- Contrast ignores hue. Two colors with different hues can have similar lightness and still be hard to read, especially for people with color vision deficiency.
Background Colors Used in This Checker
These are the fixed values your color is compared against. The pass mark is the same for every row.
| App | Light mode | Dark mode | Pass mark |
|---|---|---|---|
| #FFFFFF | #000000 | 4.5:1 | |
| TikTok | #FFFFFF | #121212 | 4.5:1 |
| YouTube | #FFFFFF | #0F0F0F | 4.5:1 |
| X | #FFFFFF | #000000 | 4.5:1 |
| Custom | Any hex code you enter | Same color | 4.5:1 |
How the ratio is calculated
The ratio is (L1 + 0.05) ÷ (L2 + 0.05), where L1 is the relative luminance of the lighter color and L2 is that of the darker one. It runs from 1:1 for identical colors to 21:1 for black on white.
The tool uses the sRGB relative luminance formula from WCAG 2.x. Background values are approximations and may differ from what an app shows today.
WCAG Levels: 3:1, 4.5:1, and 7:1 Explained
What the three levels in the results mean, and why a vivid color can still fail.
What each level means
WCAG 2.x sets 4.5:1 as the minimum (level AA) for normal-size text and 3:1 for large text, which means roughly 18 pt (24 px) or 14 pt bold and up. Level AAA asks for 7:1 on normal text and 4.5:1 on large text. This tool marks a color as Pass at 4.5:1 and also shows the 3:1 and 7:1 checks.
Why a bright color can still fail
Contrast depends on relative luminance, not on how vivid a color looks. Pure red (#FF0000) on white is about 4.0:1, which clears the large-text level but not 4.5:1. Pure red on black is about 5.3:1. Red on pure green (#00FF00) is about 2.9:1, even though the two hues are far apart.
What contrast doesn't measure
The ratio compares lightness only. It does not account for font weight, for text size on a small phone screen, for text sitting on a photo or video, or for how people with color vision deficiency see hue differences. Treat a pass as a minimum, then look at the real design on a phone.
Common Color Mistakes and How to Fix Them
Checking only one theme
You build a graphic while viewing a white feed. In dark mode, the same dark-blue text sits on near-black and becomes hard to read.
💡 See the solution▼
Light gray text on white
Gray such as #999999 looks soft and clean, but on white it is about 2.8:1, under even the 3:1 level for large text.
💡 See the solution▼
Relying on hue instead of lightness
Red text on a green card looks like strong contrast because the hues are opposites, but the ratio is only about 2.9:1.
💡 See the solution▼
Using the inverse as the final color
The inverse button gives a near-white color on dark backgrounds and a near-black one on light backgrounds. That maximizes contrast but may clash with your brand colors.
💡 See the solution▼
Questions About Colors, Ratios, and Privacy
Q.Does this checker send my colors to a server?
A. No. The calculation runs in your browser, and the colors you enter are not sent anywhere or saved by the tool. Reloading the page resets everything.
Q.What contrast ratio should I aim for?
A. For normal-size text, 4.5:1 (WCAG level AA) is the usual target, and this tool marks it as Pass. Large text needs 3:1. The stricter AAA level asks for 7:1 on normal text. Small text on a phone screen benefits from the higher end.
Q.How does Adjust to 4.5:1 work?
A. It keeps the hue and saturation of your color and moves its lightness one percent at a time, toward whichever of white or black contrasts more with the background, until the ratio is met. If that direction never reaches the ratio, it tries the other one. If neither works, it tells you no shade of that hue passes.
Q.Are the app background colors exact?
A. They are fixed values built into the tool: white for light mode, and #000000 (Instagram, X), #121212 (TikTok), and #0F0F0F (YouTube) for dark mode. Apps change their interfaces, so choose Custom background and enter a hex code sampled from a screenshot when you need an exact match.
Q.Can I check text placed over a photo or video?
A. Not directly. The tool compares two flat colors. Pick the color of the area behind your text, enter it as a custom background, and check against it. Test the lightest and darkest areas behind the text, because the worst spot decides how readable it is.
Q.What is the readability score?
A. It is this tool's own 0 to 100 scale: the contrast ratio divided by 7, times 80, capped at 100. A 4.5:1 ratio scores 51, 7:1 scores 80, and 8.75:1 or higher scores 100. It is not a WCAG measure, so use the ratio and the pass levels when you decide.
Your feedback
makes this tool better.
Tell us which features you'd like, what should be fixed, or which new tool you'd like to see. An engineer reads every submission and uses it to guide development.