Online Color Picker
Choose any color visually, fine-tune hue and opacity, and copy its HEX, RGB or HSL code with one click. Everything runs in your browser.
How to Use the Color Picker
- Pick a shade: drag inside the large color area. Left to right changes saturation; top to bottom changes brightness.
- Change the hue: move the Hue slider to switch between reds, greens, blues and everything in between.
- Set opacity: lower the Opacity slider to create a transparent color. The tool switches to RGBA, HSLA and 8-digit HEX automatically.
- Type a value: paste an existing code into the HEX, RGB or HSL field to load it.
- Copy: click Copy next to the format you need.
Keyboard users can focus the color area and use the arrow keys (hold Shift for bigger steps).
Supported Color Formats
| Format | Example | Best for |
|---|---|---|
| HEX | #6C5CE7 | CSS, design tools, brand guides |
| HEX + alpha | #6C5CE780 | Transparent colors in modern CSS |
| RGB / RGBA | rgb(108, 92, 231) | Code that needs channel values or transparency |
| HSL / HSLA | hsl(247, 75%, 63%) | Creating lighter, darker or muted variations |
Practical Examples
- Brand button:
background: #6C5CE7;with a darker hover such ashsl(247, 75%, 55%). - Image overlay:
rgba(17, 24, 39, 0.5)darkens a photo so white text stays readable. - Soft background: very light tints like
#F8FAFCkeep pages calm and readable.
Tips for Choosing Colors
- Adjust lightness in HSL to build a consistent set of tints and shades from one brand color.
- Always check text against its background with the Color Contrast Checker.
- Use pure black and pure white sparingly; slightly tinted neutrals usually look more polished.
Related Learning Guides
Frequently Asked Questions
What is the difference between HEX and RGB?
Both describe the same red, green and blue values. HEX writes them as hexadecimal pairs (#6C5CE7), while RGB writes them as decimal numbers from 0 to 255 (rgb(108, 92, 231)).
How do I get a transparent color?
Lower the Opacity slider. The tool outputs RGBA, HSLA and an 8-digit HEX code that include the transparency value.
Can I paste a color code from another app?
Yes. Paste a HEX, RGB or HSL value into the matching field and the picker updates instantly. Invalid values show a clear error message.
Does the picker work on mobile?
Yes. You can drag on the color area with your finger, and all buttons are sized for touch screens.
Is my data stored anywhere?
No. The color picker runs entirely in your browser and does not send or save your colors.