How to Check Button Border Contrast Against Its Background
Check the colors on both sides of a button border, compare the relevant adjacent pairs, and consider whether the border is needed to identify…
A PRACTICAL REFERENCE / 01—08
A compact desk for developers and creators working with structured data, encoding and color. Make a change, inspect the result, and keep moving.
Local rule processing · Your input stays in this browser.
| Input | Rule to remember |
|---|---|
| JSON numbers | JavaScript numbers can lose integer precision beyond ±9,007,199,254,740,991. |
| URL components | Encode components separately; encoding a whole URL changes its separators. |
| Timestamps | Choose seconds or milliseconds explicitly; no unit is inferred. |
| Contrast | Ratios use relative luminance; check the actual text and background colors. |
Practical articles from the library, newest first.
Check the colors on both sides of a button border, compare the relevant adjacent pairs, and consider whether the border is needed to identify…
Choose a link color by checking it against the background where it appears, then use an underline or another visible cue so readers can…
Check the actual text and background colors together, compare the reported contrast ratio with the applicable WCAG threshold, and revise the pair if necessary.…
Turn a favorite color into a practical palette by exploring complementary, analogous, and monochromatic directions, assigning each color a role, and checking the combinations…
Use a color picker that can sample your image, choose a pixel that represents the area you want, and copy a color value your…