Skip to main content

Color Converter

Convert colors between HEX, RGB, and HSL formats instantly — with a live color preview. Essential for web design and CSS.

Reviewed October 7, 2026 Runs in your browser — inputs are never stored

HEX

#3B82F6

RGB

rgb(59, 130, 246)

HSL

hsl(217, 91%, 60%)

This tool provides general unit conversions for everyday and educational use. For regulated, legal, or scientific applications, verify conversion factors against the applicable official standard.

About the Color Converter

The colour converter translates colours between HEX, RGB and HSL formats with a live preview. HEX and RGB describe the same red, green and blue channel values (0–255), while HSL describes hue, saturation and lightness, which is easier for adjusting shades. Web designers use all three in CSS.

How to use it

  1. 1Choose HEX or RGB input.
  2. 2Enter the colour value.
  3. 3Read the equivalent HEX, RGB and HSL values and check the preview.
  4. 4Copy, share or print the result with the buttons below it.

Worked example

#3B82F6 is rgb(59, 130, 246), which is about hsl(217°, 91%, 60%).

How it works

Color models

HEX: #RRGGBB — each pair is 00–FF (0–255).
RGB: Red, Green, Blue channels 0–255.
HSL: Hue (0–360°), Saturation (0–100%), Lightness (0–100%).

Common use cases

  • Converting brand colours for CSS
  • Creating lighter and darker shades
  • Matching colours between design tools

Frequently asked questions

A:FFFFFF = rgb(255, 255, 255) = white. #000000 = rgb(0,0,0) = black.

Reviewed for accuracy · Last updated October 7, 2026

Conversion factors are based on internationally defined SI units and standard metric/imperial equivalence tables.

CW

CalcWisee Editorial Team

Calculator development and formula review

CalcWisee is an independent site founded by Ayman. Every calculator is built from a published formula or official definition, tested against hand-worked examples before it goes live, and corrected promptly when a reader reports an issue to ayman@calcwisee.com.

Expertise: Financial mathematics, Health and fitness formulas, Applied mathematics, Unit conversion standards