Color Contrast Checker
Check the WCAG 2.2 contrast ratio of a text and background colour, with AA and AAA verdicts and the nearest passing colour.
Design & Accessibility
Generate colour palettes from a base colour and a harmony, or at random with locks, then export CSS, tokens, Tailwind or a PNG.
Your files and text are processed on your own device, inside this page. Nothing is uploaded to Dubinity or stored, and closing the tab discards it. How privacy works
Start from a base colour and pick a harmony - complementary, analogous, triadic, split complementary, tetradic or monochromatic - or press Randomise and lock the swatches you like. Harmonies are built in the OKLCH colour space, so rotated hues keep the same perceived lightness.
Each swatch shows its contrast against white and black, and a 50-950 scale, tints, shades or tones. Click a swatch to copy its hex code. Export CSS variables, DTCG JSON, Tailwind colours or a PNG image of the palette. Your last palette is kept in this browser.
Was this tool helpful?
Check the WCAG 2.2 contrast ratio of a text and background colour, with AA and AAA verdicts and the nearest passing colour.
Build a small design-token set - colours, type scale, spacing, radii and shadows - and export CSS variables, DTCG JSON or Tailwind.
Pull the dominant colours out of any picture and copy them as HEX, RGB, HSL, CSS variables or JSON.
Paste up to 12 colours and see the WCAG contrast ratio of every pair in one grid, filtered by AA or AAA.
Build a modular type scale from a base size and ratio, preview every step and export CSS, design tokens or Tailwind config.
Convert a colour between HEX, RGB, HSL, HSV, HWB, CMYK and OKLCH, with contrast against black and white.