Skip to main content

Color picker

Pick, build, and combine colors for your web design. Values convert automatically between HEX, RGB, and HSL.
Preview
Current color in context
Sky blue
Pick a color
Adjust hue, saturation, and lightness
210°
70%
50%
Color values
Copy the color values in different formats
Current color
Sky blue
HEX
#2680D9
RGB
rgb(38, 128, 217)
HSL
hsl(210, 70%, 50%)
R
38
G
128
B
217
Color palettes
Harmonious color combinations generated from your color

Different lightness steps of your color. Useful for hover effects, shadows, and gradations.

Find and convert a color code

  1. Enter a HEX value, either six digits (e.g. #3B82F6) or the short form (e.g. #fff). You can leave out the #.
  2. Or set the color with the color field or with the sliders for hue, saturation, and lightness. "Random" picks a new color for you.
  3. On the right you can read HEX, RGB, and HSL, plus the individual RGB channels. You can copy each value with one click.

Under "Show more formats" you get two ready-made snippets for your code, a CSS variable and a Tailwind entry. The color name above the values is a rough label based on hue, saturation, and lightness, not a standardized name.

Which color palettes you get

The color picker calculates five palettes from your color. You can copy any color in them with one click.

PaletteWhat you get
Lightness stepsTen steps from 95% to 5% lightness, with the same hue and saturation
ComplementaryOne color 180° further around the color wheel
AnalogousTwo colors, 30° to the left and right of yours
TriadicTwo colors at 120° and 240°
SplitTwo colors at 150° and 210°

Except for the lightness steps, every palette keeps the saturation and lightness of your base color.

Check color contrast right away

In the "Accessibility" tab, the color you picked counts as the text color. You only choose the background color, with the HEX field, the color field, or the "White" and "Black" buttons.

The tool shows the contrast ratio and rates it separately for normal and large text. For normal text, AA needs 4.5:1 and AAA needs 7:1. For large text, 3:1 is enough for AA and 4.5:1 for AAA. A text preview in three sizes shows how the combination looks. If you want to check more than one combination, use the contrast checker.

What the color picker can't do

  • The tool has no eyedropper that picks colors from images or from your screen. You need to know or set the color code yourself.
  • The field accepts three- and six-digit HEX values, but no transparency (no alpha channel).
  • The sliders and the HSL display work with whole numbers. If you enter a HEX value, HEX, RGB, contrast, and copied values show exactly that value. Only the HSL numbers and the palettes calculated from them are rounded to whole numbers and can differ slightly. If you move a slider, the tool calculates from HSL again.

Frequently asked questions

Everything about colors and the color picker
What is the difference between HEX, RGB, and HSL?
HEX writes a color as a hexadecimal code (e.g. #FF5733). RGB gives the red, green, and blue values from 0 to 255. HSL gives hue, saturation, and lightness. All three describe the same color in different formats. HEX is the most common in web design.
What are complementary colors?
Complementary colors sit opposite each other on the color wheel, 180° apart. They give the strongest contrast and are often used for calls to action or accents. Examples: blue and orange, red and cyan.
What is an analogous color palette?
Analogous colors sit next to each other on the color wheel. This tool uses 30° to the left and right of your color. They tend to look harmonious together and suit calm, uniform designs.
What do hue, saturation, and lightness mean?
Hue is the base tone of a color, from 0 to 360° around the color wheel. Saturation says how intense the color is (0% is gray, 100% is fully saturated). Lightness says how light or dark it looks (0% is black, 100% is white).
How do I build a color palette for my website?
Start with a primary color, such as your brand color, then add complementary or analogous colors as accents. Add neutral tones (gray, white, black) for text and backgrounds. Check every text and background pair for enough contrast.
Can I check contrast with the color picker?
Yes. In the "Accessibility" tab, your color counts as the text color and you only choose the background color. The tool shows the contrast ratio and rates it against WCAG, separately for normal and large text. The tool has no eyedropper for colors from images and no transparency (alpha channel).
Is the color picker free, and is my color sent anywhere?
Yes, it is free and needs no sign-up. The conversions and palettes are calculated in your browser, and the tool does not send your colors to a server. You can create as many colors and palettes as you like and copy every value.

Related tools

All tools

Changelog

Latest updates and improvements to the Color picker
v1.4.0

November 20, 2026

Exact HEX values

  • • Fixed: a HEX value you enter is now used unchanged for the display, RGB, the contrast check, and copying. Before, it came back through rounded HSL values and could be off by a few steps
  • • The FAQ mentions the built-in WCAG contrast check and that the tool has neither an eyedropper nor transparency
v1.3.0

November 18, 2026

Short HEX codes

  • • The HEX field now also accepts three-digit values such as #fff or f80 (the same as #ffffff and #ff8800)
  • • Transparency (alpha channel with 4 or 8 digits) is still not supported
v1.2.0

November 17, 2026

Guide and related tools

  • • Added a guide with instructions and use cases below the tool
  • • Added related tools at the end of the page
Show older versions
v1.1.0

December 28, 2025

Accessibility check and color palettes

  • • Added a WCAG contrast checker (AA and AAA)
  • • Added automatic contrast ratio calculation
  • • Added suggestions when the contrast is too low
  • • Added a text-on-background preview
  • • Improved color palette generation
v1.0.0

December 8, 2025

Launch

  • • Interactive sliders for hue, saturation, and lightness
  • • Automatic conversion between HEX, RGB, and HSL
  • • Complementary and analogous colors
  • • Lightness variations (shades and tints)
  • • One-click copying of all color values
  • • Random color generation