Skip to contentHydramill Utilities

Color palette generator, contrast checker and palette from image

Pick a colour and get matching palettes (complementary, analogous, triadic, shades), check WCAG contrast, copy HEX, RGB and HSL, or extract the main colours of a picture. Runs in your browser.

100 % in your browser: your files and text never leave your device and nothing is uploaded.

Harmonies

  • #9A0C10
  • #9A4F0C
  • #9A960C

Contrast checker

Large text sampleSmall text sample: the quick brown fox jumps over the lazy dog.
  • 12.63:1Contrast ratio
  • PassNormal text AA
  • PassNormal text AAA
  • PassLarge text AA
  • PassLarge text AAA
  • PassInterface parts AA

Palette from an image

How it works

Pick a base colour with the picker or type a HEX code, then choose a colour scheme to get matching colours; press any value to copy it. The contrast checker compares a text colour against a background using the WCAG formula: normal text needs 4.5:1 for level AA and 7:1 for AAA, large text (18 pt, or 14 pt bold) needs 3:1 and 4.5:1, and interface parts such as icons and borders need 3:1. To get the colours of a picture, drop it in the last box: it is shrunk on your device and the six most common colours are found with the median cut method. The picture is never uploaded.

How to use it

  1. Pick a Base colour with the colour picker or type a HEX code such as #9a4f0c. If the code is not valid, a message asks for a valid HEX.
  2. Open Scheme and choose Complementary, Analogous, Triadic, Tetradic (square), Split complementary, Shades or Tints. The matching colours appear under Harmonies.
  3. Press any colour value to copy its HEX, RGB or HSL code.
  4. Under Contrast checker, set Text colour and Background. Use Swap to flip them. The Contrast ratio and a Pass or Fail for each WCAG level are shown.
  5. To get the main colours of a picture, drop it in Palette from an image. The six most common colours are listed and can be copied.

Worked example

Take the base colour #9a4f0c, a brown orange. A Complementary scheme gives it and the blue on the opposite side of the colour wheel, at a hue of about 208 degrees. In the contrast checker, grey #767676 text on a white background gives a ratio of 4.54:1. That Passes AA for normal text (4.5:1) and for large text, but Fails AAA for normal text, which needs 7:1. A lighter grey such as #999999 would fail normal text AA.

Frequently asked questions

Are my colours or pictures uploaded?

No. Everything is calculated in your browser. A picture you drop to extract colours is shrunk and analysed on your device and never sent anywhere.

What do AA and AAA mean?

They are WCAG accessibility levels for text contrast. AA needs 4.5:1 for normal text and 3:1 for large text (18 pt, or 14 pt bold). AAA needs 7:1 and 4.5:1. Interface parts such as icons and input borders need 3:1.

What is the difference between the schemes?

Complementary uses opposite colours on the wheel (180 degrees apart). Analogous uses neighbours (30 degrees each side). Triadic and Tetradic use three or four evenly spaced colours, and Split complementary uses the colours at 150 and 210 degrees. Shades mix the base with black and Tints with white.

Can I use the colours in CSS or in a design tool?

Yes. Copy the HEX, RGB or HSL value and paste it where you need it. They are plain colour codes with no licence limits.

How does the palette from an image work?

The picture is shrunk on your device and its most common colours are found with the median cut method. For more control, such as a choice from 5 to 8 colours and CSS variables, use the Color palette from image page.