Skip to main content
Developer, Web & Image Tools

Colour Picker + HEX / RGB / HSL Converter

Interactive color palette picker with real-time conversion between HEX, RGB, RGBA, and HSL color values.

What is the Colour Picker + HEX / RGB / HSL Converter?

The Colour Picker & HEX / RGB / HSL Converter is a color analysis and translation tool for UI/UX designers, front-end web developers, and digital graphic artists. Featuring an interactive visual color spectrum palette and alpha transparency sliders, it translates any selected color across HEX, RGB, RGBA, HSL, and HSLA formats in real time with one-click copying for CSS.

Different design and development environments favor distinct color models: graphic designers in Figma frequently specify HEX codes (e.g. #4F46E5), modern CSS variables leverage HSL for programmatic palette tints and shades, and canvas rendering contexts use RGB/RGBA. Having an instant cross-model converter eliminates manual guesswork.

How to Use the Colour Picker + HEX / RGB / HSL Converter

  1. Pick or Type Color: Use the interactive visual palette picker or paste a color code into any format field (HEX, RGB, or HSL).
  2. Adjust Alpha Transparency: Slide the opacity controller to test transparent RGBA / HSLA variations.
  3. Inspect All Conversions: All color code fields synchronize immediately in real time.
  4. Copy CSS Code: Click copy on your desired format to paste directly into your stylesheet.

Formula & How It Works

Color models convert through normalized RGB coordinates (0 to 1):

HEX to RGB:
R = parseInt(hex.substring(1, 3), 16)
G = parseInt(hex.substring(3, 5), 16)
B = parseInt(hex.substring(5, 7), 16)

RGB to HSL:
Let r = R/255, g = G/255, b = B/255
max = Math.max(r, g, b), min = Math.min(r, g, b)
L = (max + min) / 2
If max === min: H = S = 0 (Achromatic grey)
Else:
  d = max - min
  S = L > 0.5 ? d / (2 - max - min) : d / (max + min)
  H = (max === r ? (g - b)/d + (g < b ? 6 : 0) :
       max === g ? (b - r)/d + 2 : (r - g)/d + 4) * 60

Worked Example: ToolsLand brand primary indigo: HEX #4F46E5 converts to RGB rgb(79, 70, 229) and HSL hsl(243, 75%, 59%).

Practical Worked Examples

Color NameHEX CodeRGB ValueHSL Value
ToolsLand Indigo#4F46E5rgb(79, 70, 229)hsl(243, 75%, 59%)
Amber Accent#F59E0Brgb(245, 158, 11)hsl(38, 92%, 50%)
Slate Dark#0F172Argb(15, 23, 42)hsl(222, 47%, 11%)
Pure White#FFFFFFrgb(255, 255, 255)hsl(0, 0%, 100%)

Common Everyday & Professional Use Cases

Extracting color codes from brand style guides, creating semi-transparent CSS overlay backgrounds with RGBA, establishing consistent design system color tokens, and testing WCAG accessibility color contrasts.

Frequently Asked Questions about Colour Picker + HEX / RGB / HSL Converter

HSL (Hue, Saturation, Lightness) is far more intuitive for humans: you can create hover states or color variations simply by tweaking the Lightness percentage without altering the base Hue.
Modern CSS supports 8-digit HEX codes (e.g. #4F46E580), where the final two characters represent alpha opacity in hexadecimal (from 00 = 0% to FF = 100%).
Yes! The input fields intelligently parse full CSS function strings and extract the raw numbers automatically.
Hue represents the angle on the 360-degree color wheel: 0&deg; is Red, 120&deg; is Green, 240&deg; is Blue, and 360&deg; cycles back to Red.
Yes, 100% free with no registration required.
Explore More

Related Free Online Tools

All Developer, Web & Image Tools →

JSON Formatter & Validator

Format, beautify, minify, and validate JSON data structures with clear syntax error indicators.

Base64 Encode / Decode

Encode text and binary strings into Base64 ASCII format and decode Base64 strings back to plain text.

URL Encode / Decode

Percent-encode special characters for safe URL transmission and decode encoded URI query strings.

Hash Generator

Generate cryptographic hashes including MD5, SHA-1, SHA-256, and SHA-512 simultaneously from any text input.

Helpful Guides & Mathematical Tutorials