Pick any color and get HEX, RGB, HSL codes
Click the bar below to pick a color
Click ๐ to copy any value
Picking a color is easy; getting it into the format your project expects is the fiddly part. This tool gives you all three common CSS notations for the same color at once, so you can grab a HEX for a stylesheet, an RGB value for a script, or an HSL value for building a set of tints โ without converting anything by hand.
Everything runs entirely inside your browser, with no account and no upload.
HEX is the shorthand you'll see most often in CSS and design tools: six characters describing how much red, green, and blue go into the color. It's compact and universally understood, which makes it the default for most work. RGB describes the same three channels as numbers from 0 to 255, and its rgba() form adds an alpha value, so it's the natural choice when you need transparency.
HSL works differently, describing a color by hue, saturation, and lightness. That makes it far easier to reason about relationships between colors: keep the hue and saturation, change only the lightness, and you have a lighter or darker version of the same color. If you're building a palette of tints and shades for a design system, HSL will save you a lot of guesswork. All three describe the same color โ pick whichever fits the job.
Yes. They're three ways of writing the same value, so you can use whichever your project prefers without any visual difference.
Take the HSL value and raise the lightness percentage, leaving hue and saturation as they are. That keeps it recognisably the same color rather than drifting to a different one.
Use the RGB value in rgba() form and add a fourth number between 0 and 1 for opacity โ for example rgba(66, 133, 244, 0.5) for half transparent.
That depends on the contrast between the two colors, not on either one alone. Check the pair with our Contrast Checker before committing to it.