Skip to content

Contact

Mexico City, Mexico
Available for remote and on-site projects.

Professional networks

LinkedIn · GitHub · Email
Applied engineering, measurable results.

Contrast 4.2:1: the detail we almost missed

· 2 min read · Samuel Torres

When the black background was fixed and the blue gradient showed behind the form, it seemed like the day was over. My HR colleague said it looked really good. People could submit their expense claims. But the email from migration had one more paragraph, at the end, about contrast, and that paragraph almost got lost in the celebration.

The form's small labels, "First Name", "Last Name" and the sample email one, are almost white: color #f1f1f5, 12 pixels, with a contrast between 12:1 and 17:1. They read well. But the weakest one is the gray label of the expense widget, "Date // Amount // Description": it gives 4.2:1 on the bluest area of the page, just below the recommended minimum of 4.5:1. Four point two against four point five. Three tenths. That was the whole problem, and we almost let it pass.

It is fixed in the widget's CSS in Jotform, changing its color from #aab0c6 to a lighter one, #d6dbea. One value on one line. Migration did not change it because it is on the JotForm side, and it was right not to touch it from the server: the widget's CSS is pasted in the widget itself, from the browser. But the fact that the change is one line does not make it less important. Even more: one-line details are the ones that get lost the most, because nobody sees them as work.

Contrast matters for a very concrete reason: the "Date // Amount // Description" label is the one that tells people what to type in the expense row. If that label does not read well on the blue background, people do not know what to put in each part of the row. And that row was exactly the one that would not let you type in the morning. Fixing the box and leaving the label unreadable is fixing half the problem. People submitting an expense claim with a deadline do not have time to guess what goes in each field.

Three tenths

There is a way of seeing contrast that I took from that day: it is not decoration, it is function. Text with low contrast is text that does not get read, and text that does not get read is an instruction that does not exist. The difference between 4.2:1 and 4.5:1 does not show in a screenshot, but it shows when someone in a hurry, on a phone, with low brightness, tries to submit their expense claim before the deadline.

That is why the detail was noted down and fixed, instead of staying in the email as a footnote. The day started with a 22-pixel row that nobody saw and ended with a label three tenths short that almost nobody sees. Both are the same thing: small details that decide whether people can use the form or not. The work does not end when the design looks good: it ends when every text in the form reads well, in the bluest area of the page, in the worst case. Get a quote on WhatsApp in 2 min

Samuel Torres Pichardo

Samuel Torres Pichardo
Software and cloud engineer in Mexico City, with about 3 years of professional experience.
About me · LinkedIn · GitHub · Contact

Got a project in mind?

Hire me: I'll help you build it.

Websites, online stores, custom systems and cloud. Tell me what you need and I'll tell you how I'd build it, what it costs and how long it takes.

  • Mexico City · remote

Menu

Español

[email protected]