Colour
/colourCommand
PremiumType /colour #2f6b4f, then Tab, for it in RGB and HSL. /contrast #fff on #c86b3c checks WCAG contrast and suggests the nearest shade that passes.
In use
You type
The button text fails: /contrast #fff on #c86b3ctab.
You get
The button text fails: 3.7:1, AA for large text only; #fff on #b55f33 would pass AA.
You type
Forest green /colour #2f6b4ftab
You get
Forest green rgb(47 107 79), hsl(152 39% 30%)
You type
:root { --accent: /color rebeccapurple in hextab; }
You get
:root { --accent: #663399; }
/color works as well as /colour. Contrast is measured as WCAG 2 does: AA asks 4.5:1 of body text and 3:1 of large text (18 pt, or 14 pt bold), and AAA asks 7:1. Ratios are rounded down, so one that reads 4.5:1 passes AA.
Also try
/colour #2f6b4f/colour rebeccapurple/colour rgb(200 107 60) in hex/colour hsl(270 50% 40%) in hex/contrast #fff on #c86b3c/contrast #767676 on white/contrast navy on #f5f5dc
- How you reach it
- /colour, in any app
- Network
- None. It works on your Mac.
- Version
- 1.0.0, by Little Keebo