Colour
Convert a colour between hex, RGB, HSL and oklch, and check the contrast against WCAG thresholds.
Normal text — 16px regular.
Large text — 24px bold.
Large text means 24px regular or 18.66px bold and up; everything smaller is judged as normal text. Accepts hex, rgb(), hsl() and the common colour keywords.
Two jobs that always happen together: getting the colour into the format the code wants, and confirming the text on it is readable. Contrast is the part that gets skipped, and it is the part with a legal dimension.
Enter a colour in any notation and get the rest, along with a contrast ratio against a chosen background and a clear pass or fail for AA and AAA at both normal and large text sizes. oklch is included because it is how modern palettes are built — lightness behaves the way your eye expects it to.
What people open it for
- Checking whether body text passes WCAG AA on a background
- Converting a brand hex into HSL or oklch for a design system
- Finding a lighter shade that still meets contrast requirements
In the terminal
tools color
Every utility is also a command in the desktop's shell.