CATEGORY

Free Online Color Tools

Color tools handle the conversions and checks that come up constantly in design and front-end work — translating a HEX code from a design file into RGB for code, confirming a text/background pair actually meets accessibility standards, or building a gradient without hand-writing CSS syntax.

These tools are for web designers, front-end developers and accessibility reviewers, and for anyone matching a brand color or checking a new monitor.

They run in your browser, and nothing is uploaded. That includes photos you open in the Image Color Picker, which are read on your device.

Start here

All color tools

◐

HEX to RGB Converter

Convert HEX to RGB and HSL, and RGB to HEX.

💧

Color Picker From Image

Click a pixel in a photo to get its HEX/RGB value.

AA

Contrast Checker

Check WCAG text contrast ratios.

◢

Gradient Generator

Build a CSS gradient visually.

🎨

Color Palette Generator

Harmonious palettes with a contrast check.

▦

Dead Pixel Test

Full-screen colors to find dead pixels.

#

Hex Color Codes

Hex, RGB and HSL color chart.

How to choose

Color work usually follows the same path: find a color, put it in the format your code needs, check that it's readable, then use it. Each step has its own tool.

Find it

If the color lives in a photo, logo or screenshot, open it in the Image Color Picker and click a pixel to get its HEX and RGB values. Images wider than 640 pixels are scaled down before sampling, so on a large photo one sampled pixel can blend several neighbors. For an exact brand value, use the code from the design file.

Translate it

The Color Converter turns HEX into RGB and HSL and back without changing the color. HSL is the handiest format for a lighter or darker shade of the same hue, because you only change the lightness number.

Check it

Run every text and background pair through the Contrast Checker before it ships. WCAG 2 level AA asks for at least 4.5:1 for normal text and 3:1 for large text. Level AAA raises those to 7:1 and 4.5:1. Close grays are where people get caught out: on white, #767676 scores about 4.54:1 and passes AA, while #777777 scores about 4.48:1 and fails. Your eye won't tell those apart, but the formula will.

Use it

The Gradient Generator builds linear or radial CSS gradients and gives a Tailwind CSS v4 version too. If text sits on a gradient, check contrast against both its lightest and darkest stops, since the text has to pass across the whole range.

Check the screen itself

If a color looks wrong in only one spot, the problem may be the display, not the code. The Dead Pixel Test fills the screen with solid black, white, red, green and blue so stuck or dead pixels stand out.

A quick guide to color formats

Most color problems on the web are really format problems. The same color can be written several ways, and each one has a job:

All three are standard CSS and supported by every modern browser. The Color Converter translates between them without changing the color itself.

Guides

Frequently asked questions

How is the contrast ratio calculated?

Using the WCAG relative luminance formula on both colors, producing a ratio between 1:1 and 21:1 — the same method browsers and accessibility auditing tools use.

What contrast ratio do I need to pass WCAG AA?

At least 4.5:1 for normal text, or 3:1 for large text (18pt+, or 14pt+ bold).

Can I copy the generated CSS directly into my stylesheet?

Yes — the Gradient Generator outputs ready-to-paste CSS background syntax.

What contrast ratio does WCAG AAA require?

At least 7:1 for normal text and 4.5:1 for large text, under WCAG 2 success criterion 1.4.6, Contrast (Enhanced).

Are images uploaded when I use the Image Color Picker?

No. The image is drawn onto a canvas and sampled in your browser. Images wider than 640 pixels are scaled down first, and nothing is sent to a server.

Related categories

Image Tools Developer Tools