HTML Color Picker Tool
Visually select any color and instantly get the HTML, CSS HEX, and RGB codes.
Select a Color
Click the circle above to open the visual color wheel.
Color Codes
Why use a visual color picker?
If you are designing a website, building an app, or just putting together a digital presentation, getting your colors exactly right is incredibly important for your branding. But unless you are a computer, you probably don't know exactly what hex code corresponds to a "soft, muted sunset orange."
That's what this HTML Color Picker is for. Instead of guessing codes or pulling up massive, memory-heavy design software like Photoshop just to grab a color, you can click the visual color wheel above. You can drag your mouse around to visually find the exact shade you are looking for. Once you land on it, the tool automatically calculates the exact mathematical codes you need for web development.
Where do I use these color codes?
The tool provides two different outputs for the color you selected:
- HEX Code (e.g., #3B82F6): This is the most common format used in web development. If you are writing CSS to change the background of a button or the color of some text, you will almost always use the HEX code. It's compact and universally supported by every web browser on the planet.
- RGB Code (e.g., rgb(59, 130, 246)): RGB stands for Red, Green, and Blue. This is the exact same color, just written in a different format. Developers often use RGB when they need to add transparency to a color (which they do by adding an "alpha" value to make it RGBA).
How do I find a color from an image?
While this tool lets you pick colors visually from a spectrum, sometimes you want to extract a specific color from a photo or a logo. If you're on a modern operating system (like Mac or Windows), you can actually use their built-in screen capture tools. On a Mac, the "Digital Color Meter" app is built-in and lets you hover your mouse over any pixel on your screen to get the RGB values, which you can then plug into our RGB to HEX converter tool to get your web-ready code.
Alternatively, many modern web browsers (like Google Chrome) have a tiny eyedropper tool built right into their native color selector. Depending on your browser, clicking the color circle at the top of this page might actually open a popup that includes an eyedropper icon, allowing you to click anywhere on your screen to steal that exact color!