Image, File and Developer Tools
Colour Picker
Pick a colour and instantly get its HEX, RGB and HSL values, ready to copy into your website, design or document.
Calculation History
Your recent calculations on this device. Stored only in your browser, never uploaded.
No calculations yet on this device.
How to Use
Choose a colour with the picker or type a HEX code, then press Show values. The result shows HEX, RGB and HSL, each ready to copy with the Copy result button.
Formula and Methodology
HEX is the six-digit code used in CSS, like #4ADE80. RGB is the same colour as red, green and blue values from 0 to 255. HSL describes it as hue from 0 to 360 degrees, saturation and lightness as percentages. All three describe the same colour.
Examples
Press "Try an example" in the calculator above to fill in these values.
- Color
- #4ade80
- Hex
Tips
HEX codes work in almost every design tool and website stylesheet: paste the code starting with # wherever a colour is asked for.
HSL is the easiest format for making variations: keep the hue and change the lightness to get lighter and darker shades of the same colour.
Frequently Asked Questions
A HEX code is six hexadecimal digits after a # sign: two for red, two for green and two for blue. #FF0000 is pure red, #00FF00 is pure green, #0000FF is pure blue and #FFFFFF is white.
RGB mixes red, green and blue light, which is how screens work. HSL describes the same colour as a hue on a colour wheel plus saturation and lightness, which matches how people think about colour — pick a hue, then make it brighter or duller.
Any of the three works in a stylesheet: color: #4ADE80; or color: rgb(74, 222, 128); or color: hsl(142, 69%, 58%);. They all produce the same colour.