conversion color hex rgb hsl converter

Color Converter (HEX, RGB, HSL)

Convert colors between HEX, RGB, HSL, and HSV formats. Free color converter with live preview, copy to clipboard, and color picker.

Preview

All Formats

HEX#3b82f6
RGBrgb(59, 130, 246)
RGBArgba(59, 130, 246, 1.00)
HSLhsl(217, 91%, 60%)
HSLAhsla(217, 91%, 60%, 1.00)
HSVhsv(217, 76%, 96%)

Adjust RGB Values

59
130
246
1.00

About Color Converter

Convert colors between HEX, RGB, HSL, and HSV formats with live preview. Perfect for web developers, designers, and anyone working with colors.

Key Features

  • Multiple Formats: HEX, RGB, RGBA, HSL, HSLA, HSV
  • Live Preview: See your color in real-time
  • Color Picker: Visual color selection
  • Copy All Formats: One-click copying of any format
  • Alpha Channel: Support for transparency/opacity
  • Named Colors: Recognize common CSS color names

Common Use Cases

  • Convert design colors to code
  • Match colors across different formats
  • Adjust color opacity
  • Find color codes from visual picker
  • Convert between CSS color formats

Supported Formats

HEX (Hexadecimal):

  • 6 digits: #FF5733 (RGB)
  • 8 digits: #FF5733FF (RGBA with alpha)
  • 3 digits: #F53 (shorthand for #FF5533)

RGB (Red, Green, Blue):

  • Format: rgb(255, 87, 51)
  • RGBA: rgba(255, 87, 51, 1)
  • Values: 0-255 for each channel

HSL (Hue, Saturation, Lightness):

  • Format: hsl(9, 100%, 60%)
  • HSLA: hsla(9, 100%, 60%, 1)
  • Hue: 0-360°, Saturation: 0-100%, Lightness: 0-100%

HSV (Hue, Saturation, Value):

  • Similar to HSL but different brightness model
  • Common in design software

FAQ

What’s the difference between HSL and HSV? HSL (Lightness) and HSV (Value/Brightness) are different ways to represent colors. HSL is more common in web development.

How do I add transparency? Use RGBA or HSLA formats. The alpha channel (0-1) controls transparency: 0 = fully transparent, 1 = fully opaque.

Why use HSL instead of RGB? HSL is more intuitive for adjusting colors - you can easily change brightness or saturation while keeping the hue constant.

What’s the # symbol in HEX colors? The hash (#) is a CSS requirement for hex colors. Some systems use hex without it.

Related Tools