Color Picker - Pick Any Color and Get HEX, RGB and HSL Codes

Every design tool wants a different color format: CSS takes HEX, design systems prefer RGB, and sliders make more sense in HSL. This picker gives you all three at once - pick a shade with the wheel or eyedropper and copy the exact code for HEX, RGB, HSL or even a ready-to-paste CSS variable.

It also shows contrast information against white and black, so you know immediately whether your text will be readable on the background you chose. Everything runs locally in your browser.

Last updated: 27 November 2026.

HEX vs RGB vs HSL

FormatExampleBest for
HEX#2563ebCSS, Tailwind, design tokens
RGBrgb(37, 99, 235)Canvas, image editors, OpenGL
HSLhsl(221, 83%, 53%)Adjusting lightness without shifting hue
CSS variable--primary: #2563ebTheming a stylesheet

How to pick a color and copy its code

  1. Open the Color Picker and click the color wheel, or use the eyedropper to sample a pixel on your screen.
  2. Fine-tune with the lightness and saturation sliders until the shade looks right.
  3. Copy the format you need - HEX, RGB, HSL or the CSS variable line.
  4. Paste it into your stylesheet, design file or theme settings.

Why designers keep a color picker open

Color picker FAQ - codes, contrast and formats

What does the # symbol mean in a HEX code?

It simply introduces the six hexadecimal digits that follow, one pair each for red, green and blue.

Which format should I use in CSS?

HEX is the most common; RGB and HSL both work. HSL is handy when you want to tweak only the brightness.

How do I know if text is readable on my color?

Check the contrast ratio shown - a value of 4.5 or higher passes normal-text accessibility guidelines.

Can I sample a colour from an image on my screen?

Yes. Use the eyedropper control to pick the exact pixel colour.

Does the picker save my recent colours?

Session-only swatches stay in the browser tab; nothing is sent to a server.

Is it free to use?

Yes - unlimited picking and copying, no account required.

Related Text & Dev