How to fix placeholder text contrast in your website forms
Placeholder text is the grey hint inside a form field, such as "Your email". It counts as text, so it needs a contrast ratio of at least 4.5:1 against the field background, and the usual fix is to darken its colour in your theme settings or with one CSS rule.
You open your contact form and the hints inside the fields ("Name", "Email", "Phone") are so pale you can barely see them. Many designs do this on purpose to make the hint look different from typed text. The result is that some visitors cannot read what each field is for. This page explains how to check your own forms and how to fix them without needing to be a developer.
What the problem looks like
Placeholder text is the hint that sits inside an empty form field and disappears when you start typing. Browsers show it in a lighter colour by default, and many themes and page builders make it lighter still, often a pale grey on white.
The rule that applies is WCAG 1.4.3 (Contrast Minimum). Normal-sized text needs a contrast ratio of at least 4.5:1 against its background. Large text (roughly 24px, or 19px bold) needs 3:1. Placeholder text is not exempt just because it is a hint.
Typical signs:
- You have to lean in or turn up screen brightness to read the hints.
- The hints are noticeably paler than the rest of the page text.
- The form looks fine on your office monitor but washes out on a phone in daylight.
Why it matters
The people affected include visitors with low vision or colour vision differences, older visitors, and anyone using a phone outdoors or a dim screen. If they cannot read the hint, they may fill in the wrong thing or give up on the form.
For a business, a form that people abandon is a lost enquiry, booking or sale. Accessibility is also a legal and procurement concern in some countries and sectors, and contrast failures are among the easiest for others to spot and report.
There is a related point worth knowing. Light placeholders often go together with forms that use the placeholder as the only label. Once the visitor starts typing, the hint vanishes and they can no longer see what the field was for. Making the hint darker helps, but a visible label above the field is the better fix. See form inputs with no labels for that.
How to check your site for free
- Open the page with your form in Chrome or Edge.
- Right-click an empty field and choose Inspect.
- In the Styles panel, look for a rule containing
::placeholder. If you see one, note itscolorandopacity. If you do not, the browser default is being used. - Find the field's background colour (often on the same
inputrule asbackground-color). - Enter both colours in the free WebAIM Contrast Checker (webaim.org/resources/contrastchecker). It tells you the ratio and whether it passes.
A quicker visual test is to take a screenshot, convert it to greyscale in any image editor, and see whether the hints are still easy to read. This is only a rough guide, so confirm with the ratio.
Be careful with automated tools. Lighthouse (built into Chrome DevTools) and the free axe DevTools extension are good for general contrast problems, but they do not always test placeholder text, so a clean report does not prove your placeholders pass. Check them by hand as above.
Also remember that the field itself needs to be visible. WCAG 1.4.11 asks for at least 3:1 contrast for the border of an input, so a very pale border on a white page is a separate failure to look for.
How to fix it
The goal is a placeholder colour that reaches at least 4.5:1 against the field background. On a white background, a mid-dark grey such as #595959 gives a ratio of about 7:1, and #757575 is about 4.6:1, which is right at the limit. When in doubt, go darker.
If you can add custom CSS, this is the usual fix:
input::placeholder,
textarea::placeholder {
color: #595959;
opacity: 1;
}
The opacity: 1 line matters. Firefox applies a reduced opacity to placeholders by default, which makes any colour look lighter than you chose. Setting it to 1 means the colour you pick is the colour people see.
If your fields have a dark or coloured background, choose a placeholder colour that suits that background and test the pair in the contrast checker. Do not reuse the colour from a white form.
A good design habit is to keep the placeholder noticeably different from typed text without making it faint. You can do that by using a slightly lighter shade than the typed text, as long as it still passes 4.5:1. Better still, put the real label above the field and use the placeholder only for a short example, such as "name@example.com".
Common platforms
Where the setting lives depends on your theme or version, so treat these as the usual places to look:
- WordPress: Appearance, then Customize, then Additional CSS, is the common place to paste the rule. Some form plugins and themes also have their own field colour settings. See the WordPress guide.
- Shopify, Wix, Squarespace, Webflow: each has a custom CSS or code area, and some have field style settings in the editor. Look for form or input styling options first.
- Elementor and WooCommerce: form widgets often have a placeholder or field text colour control, and checkout fields are usually styled by the theme.
If your platform's style settings do not offer a placeholder colour, custom CSS is normally the way. If you are not comfortable editing it, send the snippet above to your developer.
How to confirm the fix worked
- Clear your cache or open the page in a private window, so you are not looking at an old stylesheet.
- Inspect a field again and confirm the
::placeholdercolour is the new one andopacityis 1. - Re-run the two colours through the contrast checker and confirm 4.5:1 or more.
- Check every form: contact, newsletter signup, search box, login, checkout and any popups. They are often styled separately.
- Look at the page in Firefox as well as Chrome and Safari, and on a phone.
How to stop it coming back
Placeholder contrast usually breaks again when a theme is updated, a new form is added, or a designer restyles the site. A few habits help:
- Keep your placeholder rule in one place, such as your theme's custom CSS, so it applies to every form.
- Add contrast to your checklist whenever a new form or page template goes live.
- Use visible labels on every field, so the hint is a bonus and not the only guide.
- Re-test after theme or plugin updates.
SiteMonday's accessibility audit in week 7 covers WCAG 2.2 checks like this one and ends with a written report and ranked fix list. It finds and explains the problem, and the fix itself is done by you or your developer. For text elsewhere on the page, see low text contrast.
Step by step for your platform
- Form placeholder text too light on WordPress
- Form placeholder text too light on Shopify
- Form placeholder text too light on Wix
- Form placeholder text too light on Squarespace
- Form placeholder text too light on Webflow
- Form placeholder text too light on Elementor
- Form placeholder text too light on WooCommerce
Questions
Does placeholder text really need to meet contrast rules?
Yes. WCAG treats it as text, so it needs at least 4.5:1 against the field background. Being a hint does not exempt it.
Can I just use a placeholder instead of a label?
It is not recommended. The hint disappears as soon as someone types, and some assistive technology handles it poorly. Use a visible label and keep the placeholder for a short example.
Why does my placeholder look lighter in Firefox?
Firefox applies reduced opacity to placeholders by default. Adding `opacity: 1` to your `::placeholder` rule makes the colour display as you set it.
What colour is safe for placeholder text?
On a white background, `#595959` passes comfortably and `#757575` just passes. Always test the actual pair of colours, especially on tinted or dark fields.
Will Lighthouse tell me if my placeholders fail?
Not reliably. Automated tools do not always test placeholder text, so check the colours by hand with a contrast checker.
Do I need a developer to fix this?
Often not. If your platform lets you add custom CSS, you can paste the short rule from this page. Otherwise ask your developer to add it.