Color Picker & Palette Generator

Pick a color or type a HEX code to get its HEX, RGB and HSL values, a five-step shade scale and complementary, analogous, triadic and split-complementary color schemes.

Shades same hue, from darker to lighter

Complementary opposite on the color wheel

Analogous neighbors, 30° either side

Triadic three colors, 120° apart

Split-complementary the two neighbors of the complement

Pick or paste

Use the color picker, or type or paste a 3- or 6-digit HEX code, and every value updates instantly.

Shades and harmonies

A lightness scale of the same hue, plus four classic color-wheel schemes calculated from your color.

One-click copy

Copy buttons and keyboard-friendly swatches, with a visible confirmation each time.

How to Use the Color Picker

  1. Click the large color square to open your system's color picker, or type a HEX code such as #1E88E5 or the short form #1E8 into the HEX field. You can also paste a code copied from another app.
  2. The RGB and HSL values, the shade scale and the color schemes update immediately.
  3. Click Copy next to a value, or click any swatch, to copy its code. A short message confirms what was copied. Swatches are buttons, so you can also reach them with the Tab key and press Enter.
Screenshot of the Preslo Color Picker & Palette tool, free and running in a web browser
Color Picker & Palette on Preslo (Image Tools) — free, private and no sign-up needed.

HEX, RGB and HSL Explained

HEX writes a color as three pairs of hexadecimal digits for red, green and blue, from 00 (none) to FF (full). #FF0000 is pure red and #FFFFFF is white. This tool always shows HEX in capitals for consistency; CSS accepts both upper- and lower-case.

RGB gives the same three amounts as decimal numbers from 0 to 255, for example rgb(255, 0, 0). It is common in design software and in code that manipulates colors.

HSL stands for hue, saturation and lightness. Hue is the position on the color wheel in degrees (0 is red, 120 green, 240 blue); saturation is how vivid the color is; lightness runs from 0% (black) to 100% (white). HSL is the easiest format to adjust by hand: to make a lighter version of a color, increase only the lightness.

All three formats describe the same sRGB color and work in every modern browser. The HSL values shown are rounded to whole numbers, so converting them back may differ from the HEX value by one step.

How the Shade Scale Is Made

The shade row keeps the hue and saturation of your color and changes only the lightness. The two darker shades sit at 45% and 72% of your color's lightness; the two lighter shades cover 35% and 70% of the remaining distance to white. Because every step is a share of the remaining distance, the scale always runs from darkest to lightest, even for very dark or very light colors. Use these shades for hover states, borders, backgrounds and text that belong to the same color family.

Color Harmonies

The schemes below the shades are calculated by rotating the hue around the color wheel while keeping saturation and lightness the same:

  • Complementary (180°): the opposite color. Strong contrast, ideal for a call-to-action button against a main brand color.
  • Analogous (±30°): neighboring colors. Calm and harmonious, good for backgrounds and illustrations.
  • Triadic (120° apart): three evenly spaced colors. Lively and balanced when one color dominates and the others are accents.
  • Split-complementary (150° and 210°): the two neighbors of the complement. Contrast that is easier to balance than a pure complementary pair.

Greys, black and white have no hue, so rotating the hue does not change them. When you pick such a color, the tool points this out.

Tips for Using Colors

  • Check contrast. For readable body text, aim for a contrast ratio of at least 4.5:1 between text and background, as recommended by the WCAG accessibility guidelines.
  • Use one main color. Let one hue dominate and use the harmonies sparingly as accents.
  • Test in light and dark mode. A color that works on white may look too bright on a dark background.
  • Build gradients from analogous colors or two shades of the same hue with the CSS Gradient Generator.

Runs in Your Browser

All calculations happen on your device. Nothing you pick or type is sent to a server, and no account is needed.

Frequently asked questions

What are HEX, RGB and HSL?

They are three ways to write the same color. HEX is a six-digit hexadecimal code, RGB lists red, green and blue values from 0 to 255, and HSL uses hue, saturation and lightness.

Can I enter a color code instead of picking one?

Yes. Type or paste a HEX code into the HEX field, with or without the # sign, in 3-digit or 6-digit form. Invalid codes are highlighted and ignored until they are complete.

How is the palette generated?

The shade row keeps your color's hue and saturation and changes only its lightness. The complementary, analogous, triadic and split-complementary schemes rotate the hue around the color wheel by fixed angles.

Why do the harmony colors all look the same?

You have probably picked a grey, black or white. These have no hue, so rotating the hue does not change them. Choose a more saturated color to see distinct harmonies.

How do I copy a color code?

Click the Copy button next to a value, or click any swatch. A message at the bottom of the screen confirms what was copied.

Which format should I use in CSS?

All three work in CSS. HEX is the most common and compact, while HSL is handy when you want to tweak lightness or saturation by hand.

Is the color picker free?

Yes. It is free, unlimited and needs no account.

Related tools