Color Picker – Compare Colors and Copy HEX, RGB or HSL

Pick a color visually or fine-tune the RGB and HSL sliders. See the result immediately and copy color codes for websites, graphics or brand palettes.

Screen eyedropper is not supported here. Use the color control above or pick a color from an image.

Enter a 3-, 4-, 6- or 8-digit HEX code, with or without #. The RGB and HSL controls keep the last valid color if the text is invalid. Press Esc to restore the last valid input.

Transparency and background preview

An 8-digit HEX puts alpha last. The background changes the final visible color; the original RGB stays unchanged.

HEX8 uses 256 alpha levels; a typed 0.5 becomes 80 (128/255 ≈ 50.2%) when exported as HEX8.

White
Black
Export code (keep alpha)

Compare before and after

Set the current color as your reference. Adjust RGB, HSL or HEX and compare without losing the original shade.

Before
After

RGB channels
HSL channels

Copy the selected color

Click Copy beside a format. HEX, RGB, HSL and OKLCH are CSS-ready. HSV and approximate CMYK are reference values.

Screen sampling requires HTTPS and browser support; it opens only after you click the button and can be canceled with Esc. Unsupported devices can use the built-in picker or image upload.

How to pick a color

  1. Use the visual color selector or paste a HEX value. The selected color appears in the large preview.
  2. Move Red, Green and Blue sliders for precise channel editing, or use Hue, Saturation and Lightness to change the overall color character.
  3. Copy the HEX, RGB or HSL code you need. If you plan to place text on a color background, verify contrast for the actual foreground/background pair.

RGB sliders versus HSL sliders

RGB controls the individual red, green and blue light channels from 0 to 255. HSL lets you adjust hue (0–360°), saturation (0–100%) and lightness (0–100%). Either set of controls updates the same underlying 8-bit sRGB color. When changing HSL, rounding to 8-bit channels can slightly change the values shown by the sliders.

For formula-based conversions including HSV and CMYK, open the Color Converter. To see lighter and darker variations, explore the #2A6DF4 color profile. Browse 72 ready-to-use color palettes when you need a coordinated set.

Choosing colors for a website or logo

Start with a readable text/background pair, then choose one prominent accent. Try the same accent on both light and dark surroundings; avoid assuming that bright colors always work for small text. The on-screen preview represents an sRGB color and does not guarantee matching results from a printer or an uncalibrated display.

Your selected color is processed locally in the browser. This tool does not upload your chosen color.

Want to see how hues work together? Try the interactive Color Wheel to create a coordinated palette.

Check text readability with the WCAG color contrast checker before using a palette as an interface background.

Have a photo? Pick HEX and RGB colors directly from an image.