Color Converter

Convert between HEX, RGB, and HSL color formats

HEX

#10b981

RGB

rgb(16, 185, 129)

HSL

hsl(160, 84%, 39%)

About This Tool

Color formats are essential in web development, graphic design, and digital media. HEX (#RRGGBB) is the most common format in CSS and HTML. RGB (red, green, blue) represents colors as three values from 0 to 255 and is used in programming, canvas operations, and image processing. HSL (hue, saturation, lightness) is more intuitive for human perception and is preferred when you need to create color variations, adjust brightness, or generate color palettes. Our free online color converter lets you instantly convert between HEX, RGB, and HSL formats. It also includes a visual color picker so you can select colors directly and see all format conversions in real time.

How to Use

  1. Enter a color value in any supported format: HEX (e.g., #3b82f6), RGB (e.g., rgb(59, 130, 246)), or HSL (e.g., hsl(217, 91%, 60%)). The tool will automatically detect the format.
  2. The converted values in all three formats will be displayed instantly. Copy any format to your clipboard with a single click for use in your CSS, JavaScript, or design tool.
  3. Use the built-in color picker to visually select a color. As you adjust the picker, all format values update in real time, making it easy to find the exact shade you need.
  4. Explore related colors and shades displayed alongside your selected color to help build cohesive color palettes for your projects.

Frequently Asked Questions

HEX and RGB represent the same color information differently. HEX uses a 6-digit hexadecimal notation (#RRGGBB) where each pair of characters represents the red, green, and blue components (00-FF). RGB uses decimal values from 0 to 255 for each channel, written as rgb(R, G, B). They are fully interchangeable, and our tool converts between them instantly.
HSL is most useful when you need to create color variations programmatically. For example, to create a lighter or darker version of a color, you simply adjust the lightness value. To create a more or less vivid version, adjust the saturation. This is much more intuitive than calculating new RGB or HEX values. HSL is also great for generating dynamic color themes in CSS custom properties.
Yes. You can input colors with alpha values using RGBA (e.g., rgba(59, 130, 246, 0.5)) or HSLA (e.g., hsla(217, 91%, 60%, 0.5)) format. The alpha value represents opacity from 0 (fully transparent) to 1 (fully opaque). The converter will display the alpha value across all supported formats.
This tool supports HEX (#RRGGBB), RGB (rgb(r, g, b)), HSL (hsl(h, s%, l%)), and CMYK (cmyk(c, m, y, k)) color formats. You can convert between any of these formats instantly, making it easy to work with different design tools and CSS frameworks.

Examples

Convert Brand Color

Convert your brand's HEX color to RGB for CSS usage

#3B82F6 → rgb(59, 130, 246)

Create Color Variations

Use HSL to create lighter and darker shades of a color

hsl(217, 91%, 60%) → hsl(217, 91%, 80%) for lighter shade

Design System Colors

Convert colors between formats for design tools and code

rgba(255, 99, 71, 0.8) → #FF6347 with 80% opacity
Advertisement