Menu

Check WCAG Contrast on a CSS Gradient in the Browser, Without Uploading Anything
📰

Check WCAG Contrast on a CSS Gradient in the Browser, Without Uploading Anything

DEV Community: css·OnePassApps·13 days ago
#H9gX6WXw
#devtocss#devto#dev#gradient#colour
Reading 0:00
15s threshold

The number you need, and the gradient you will paste

Checking a colour pair for contrast is a two-minute job that most online checkers make into a form-filling job: you pick your colours, and somewhere else on the page you upload the design, or the image, or the whole stylesheet, to get the answer.

The Colour Studio's Contrast & gradient tab does the arithmetic in the tab itself, and it hands you back two things you can use: the WCAG verdicts for your text/background pair, and a ready-to-paste linear-gradient() declaration for the background you were about to write by hand.

What the tab actually contains

The Colour Studio is the OnePassApps tab for colour work. It carries four tool tabs on one page: Picker, Contrast, Palettes, Image . The page sets the terms in one line: "Pick, convert, compare and sample colours on this device. Your values and selected images stay in this browser tab."

The Contrast tab is two panels:

01 Text and background - "Text / foreground colour" and "Background colour".…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.