BestOnline.ToolsBestOnline.Tools
Submit product

Color Picker β€” HEX, RGB and HSL Converter

Pick a colour or enter HEX, RGB or HSL to get matching web colour codes. Copy HEX, RGB, rounded HSL or lowercase CSS HEX for your design or stylesheet.

HEX#3B82F6
RGBrgb(59, 130, 246)
HSLhsl(217, 91%, 60%)
CSS#3b82f6

HEX: three or six digits. RGB: whole numbers from 0 to 255. HSL: hue in degrees, saturation and lightness from 0 to 100%. Hue wraps at 360Β°. RGB channels and HSL output are rounded. Invalid input keeps the last valid colour visible.

πŸ”’100% Private β€” Your files never leave your device. All processing runs locally in your browser.

How It Works

Pick a colour or enter HEX, RGB or HSL to get matching web colour codes. Copy HEX, RGB, rounded HSL or lowercase CSS HEX for your design or stylesheet.

Use the colour picker for a visual starting point, or enter a known colour code. Three-digit HEX expands to six digits: #f00 becomes #FF0000. RGB takes red, green and blue as whole numbers from 0 to 255.

For HSL to HEX, enter hue in degrees and saturation and lightness as percentages. H 0, S 100 and L 50 produce red: #FF0000 and rgb(255, 0, 0). Hue repeats after a full 360Β° turn; saturation and lightness stay between 0 and 100.

Each output has its own copy button. HSL input becomes 8-bit RGB, and the HSL output is rounded to whole degrees and percentages. The CSS card gives a lowercase HEX value ready to use in a stylesheet. Colour conversion runs in your browser.

Features

  • βœ“Visual colour picker and preview
  • βœ“Three- and six-digit HEX input
  • βœ“RGB channels from 0 to 255
  • βœ“Numeric HSL input with decimal values
  • βœ“HEX, RGB, rounded HSL and CSS HEX output
  • βœ“A copy button for each format

How to Use This Tool

  1. Choose a colour or enter HEX, RGB or HSL values.
  2. Check the preview and correct any incomplete or invalid values.
  3. Read the equivalent HEX, RGB and rounded HSL codes.
  4. Copy the format you need for your design or stylesheet.

Perfect For

  • β†’Convert HEX colours to RGB for a design tool
  • β†’Convert RGB channels to HEX for CSS
  • β†’Convert HSL values to HEX without a separate calculator
  • β†’Copy a consistent colour code for a stylesheet

Frequently Asked Questions

Yes. For example, #f00 becomes #FF0000. The # is optional on typed HEX input.

More Developer and data tools

All Developer and data tools β†’