🎨 Color Picker

Pick a color to instantly see its HEX, RGB, and HSL codes.

HEX
RGB
HSL

How to use

  1. Click the color selector and pick the color you want.
  2. The HEX, RGB, and HSL codes are shown automatically.
  3. Use the copy button to grab the format you need.

🎯 Use Cases

Example

Input
HEX #2554e0
Output
rgb(37, 84, 224)
hsl(225, 75%, 51%)

Picking the HEX code #2554e0 instantly converts the same color into its RGB (37, 84, 224) and HSL (225°, 75%, 51%) notations.

Color notations at a glance

HEX, RGB and HSL describe the same color in different ways — all interchangeable in CSS.

NotationFormatNotes
HEX#RRGGBBThree hex pairs — the most common in CSS
RGBrgb(37, 84, 224)Each channel 0–255 — additive display mixing
HSLhsl(225, 75%, 51%)Hue wheel (0–360°) — easiest for adjusting saturation/lightness
Alpha variantsrgba() / #RRGGBBAAAppend an alpha channel when you need transparency

FAQ

Can I extract a color from an image?
Currently only picking a color directly from the color selector (palette) is supported.
What does HSL mean?
It's a way of expressing color as Hue, Saturation, and Lightness — useful when you want to keep the hue while adjusting brightness or saturation.
Is the color I pick sent to a server?
No. It's converted entirely in your browser.
Can I make a transparent color?
This tool shows opaque colors. Append alpha to the RGB value — rgba(r,g,b,a) or 8-digit HEX #RRGGBBAA.
Are #f00 and #ff0000 different?
They are identical — 3-digit HEX doubles each digit, so #f00 = #ff0000.

🎨 Learn more: Converting Between HEX, RGB, and HSL Color Codes

The difference between the three formats

More Coding Tools

📘
JSON Formatter
Prettify, validate & minify JSON
🗓️
Timestamp Converter
Convert Unix timestamp ↔ date
🧩
JSON String Encoder
Convert text ↔ JSON string literal
✨
JS/CSS Formatter
Indent & tidy JS/CSS code
✂️
JS/CSS Minifier
Strip comments & whitespace
🧽
HTML Formatter
Indent HTML by tag structure
🧹
XML Formatter
Indent XML by tag structure
🗃️
SQL Formatter
Break SQL into clauses & indent
🔣
HTML Entity Encoder
Convert special chars ↔ HTML entities
📊
Excel to HTML Table
Convert spreadsheet data to HTML TABLE
⛓️
Link Extractor
Extract href/src links from HTML
🐘
PHP Syntax Checker
Check bracket/string pairing (practical checker)
🗄️
MySQL Syntax Checker
Check bracket/quote pairing (practical checker)
🔍
HTML5 Validator
Check tag pairing, duplicate id, missing alt
✍️
Online HTML Editor
Write & edit HTML visually