Color Picker
Pick colors and get HEX, RGB, HSL codes
Runs in your browser
HEX
#3B82F6RGB
rgb(59, 130, 246)HSL
hsl(217, 91%, 60%)Quick Colors
What is a color picker?
A colour picker gives you the code for a colour you choose by eye. This one uses your browser's built-in colour input, which covers all 16,777,216 colours of 24-bit RGB, and shows the result as HEX (such as #3B82F6), rgb() and hsl(), the notations defined in the W3C CSS Color Module. The conversion runs in your browser, and 20 preset swatches give you quick starting points.
Use cases
- Pick a brand colour and copy its HEX code into a CSS variable, a Figma style or a slide template
- Copy rgb() values to build a semi-transparent overlay with an alpha channel
- Use the hsl() value to make lighter or darker shades by changing only the lightness
- Get the same colour in HEX, RGB and HSL when a library, app or style guide accepts only one notation
When to use?
Use it when you need an exact colour code to paste into code or design files. It does not measure contrast: WCAG 2.2 asks for at least 4.5:1 between body text and its background, and 3:1 for large text and interface parts, so check text colours with a contrast checker. Colours also look different on uncalibrated screens and in print, which uses CMYK.
Examples
A brand blue
Input
#1A6CF5
Output
- HEX
- #1A6CF5
- RGB
- rgb(26, 108, 245)
- HSL
- hsl(218, 92%, 53%)
A warm accent color
Input
#F4A261
Output
- HEX
- #F4A261
- RGB
- rgb(244, 162, 97)
- HSL
- hsl(27, 87%, 67%)
Questions and answers
What is the difference between HEX, RGB and HSL?
They describe the same color in different ways. HEX is the compact form used in CSS, RGB lists the red, green and blue values from 0 to 255, and HSL uses hue, saturation and lightness, which makes lighter or darker shades easy to create.
How do I copy a color code?
Pick a color, then use the copy button next to the HEX, RGB or HSL value you need.
Why can converting back from HSL give a slightly different color?
HSL values are rounded to whole numbers, so converting them back to HEX can be off by one step.
Does this tool check WCAG contrast?
No. It gives you colour codes but not contrast ratios. WCAG 2.2 success criterion 1.4.3 requires 4.5:1 for normal text and 3:1 for large text; black on white is the maximum, 21:1.
What do 3-digit and 8-digit HEX codes mean?
#F80 is shorthand for #FF8800: each digit is doubled. An 8-digit code such as #FF880080 adds opacity in the last two digits. This tool always shows the full 6-digit form.
Sources and standards
Related tools
All ToolsQR Code Generator
Generate QR codes from text or URLs
GeneratorFavicon Downloader
Enter a website URL to find and download all its favicons and app icons
ExtractorPassport Photo Maker
Remove background, auto-frame, and export passport or ID photos by country
PhotoRecessed Lighting Calculator
Calculate position and layout for recessed lights in your room
Calculator