Color Picker

Pick a color and get its HEX, RGB and HSL codes.

About this tool

Web designers and developers need exact color codes to keep a brand consistent. This color picker lets you choose any color visually and shows its HEX, RGB and HSL values, ready to copy into CSS or a design tool.

Click the color box to open your system color chooser, then pick a shade. The three codes update as you move. HEX is the six digit code used most often on the web, RGB gives the red, green and blue amounts from 0 to 255, and HSL gives hue, saturation and lightness.

When choosing text and background colors, make sure there is enough contrast so that people with low vision can read the text. A contrast ratio of at least 4.5 to 1 is recommended for normal text.

FAQ

What is HEX?

A six digit code such as #2B7CFF that describes a color for web pages.

Can I use these codes in CSS?

Yes, all three formats are valid in CSS.

More tools