KickSolve • Free • Private

Color Converter: HEX, RGB & HSL

Type a color in any format and see it in all the others at once. Add transparency, pick a color from your screen, explore shades and copy the CSS with one click.

HEX, RGB, HSL, HSV and CMYKTransparency supportNever uploaded
#4F46E5
#RRGGBB or #RRGGBBAA
red, green, blue 0 to 255
hue 0 to 360, saturation, lightness

More formats

Read only. Handy for design tools and print.

hue, saturation, value
cyan, magenta, yellow, key

Shades and tints

Same hue and saturation, from light to dark. Click one to use it.

How to use Color Converter on KickSolve

Three quick steps, no account needed.

Enter or pick a colorType HEX, RGB or HSL, use the color picker, or pick a color from your screen.
See every formatThe other formats update instantly, including HSV and CMYK.
Copy the value you needCopy HEX, rgb() or hsl() and paste it into your CSS or design tool.

Why choose KickSolve

Built for speed, privacy and clean results.

Private by designColors are converted in your browser. Nothing is sent anywhere.
Live in every formatEdit HEX, RGB or HSL and the others follow as you type.
Flexible inputPaste #fff, rgb(79 70 229), 79, 70, 229 or hsl(243 75% 59%) and it just works.
Copy-ready CSSChoose comma or modern space syntax, and uppercase or lowercase HEX.

What you can do with Color Converter

Everything this tool offers.

HEX to RGBTurn #4F46E5 into rgb(79, 70, 229).
RGB to HEXGet a clean HEX code from red, green and blue values.
HEX to HSLFind hue, saturation and lightness for easy tweaking.
HSL to RGBConvert hsl() values for tools that only take RGB.
Transparency8-digit HEX, rgba() and hsla() with an opacity slider.
HSV and CMYKSee HSB/HSV values and approximate print CMYK.
Screen eyedropperPick any color on your screen in supported browsers.
Shades and tintsNine lightness steps of the same hue, one click to use.

About Color Converter on KickSolve

What the formats mean and how the conversion works.

What are HEX, RGB and HSL?

All three describe the same colors on a screen. RGB mixes red, green and blue light, each from 0 to 255. HEX is the same three numbers written in base 16, so #4F46E5 means red 4F, green 46 and blue E5. HSL describes a color by hue (the angle on the color wheel from 0 to 360), saturation (how vivid it is) and lightness (how light or dark it is).

Every HEX pair is a hexadecimal number. To see how one converts, try the Hex to Decimal Converter, or go the other way with Decimal to Hex.

Which format should I use?

Use HEX for brand colors and design handoff because it is short and understood everywhere. Use RGB when you need transparency or work with canvas and image data. Use HSL when you build themes: you can darken a color by lowering one number, or make a hover state by changing only the lightness.

How the conversion works

HEX to RGB splits the code into three pairs and converts each from base 16. RGB to HSL scales each channel to the range 0 to 1, finds the largest and smallest, then takes lightness from their average, saturation from how far apart they are, and hue from which channel is largest. HSL, HSV and CMYK are shown as whole numbers, so converting back can differ by one step. HEX and RGB are exact.

Transparency

Set the opacity below 100% and the tool writes an 8-digit HEX such as #4F46E5CC, plus rgba() and hsla(). Modern CSS also accepts the space-separated form rgb(79 70 229 / 80%), which you can switch on in the settings.

RGB versus CMYK

Screens make color with light (RGB) while printers use ink (CMYK). The CMYK values here are the simple mathematical conversion, so a print shop that uses a color profile will give slightly different results.

Before you use a color for text, test it with the Contrast Checker. To blend two colors into a background, try the Gradient Generator.

Common colors in HEX, RGB and HSL

Quick reference values.

ColorHEXRGBHSL
Black#000000rgb(0, 0, 0)hsl(0, 0%, 0%)
White#FFFFFFrgb(255, 255, 255)hsl(0, 0%, 100%)
Red#FF0000rgb(255, 0, 0)hsl(0, 100%, 50%)
Lime#00FF00rgb(0, 255, 0)hsl(120, 100%, 50%)
Blue#0000FFrgb(0, 0, 255)hsl(240, 100%, 50%)
Yellow#FFFF00rgb(255, 255, 0)hsl(60, 100%, 50%)
Cyan#00FFFFrgb(0, 255, 255)hsl(180, 100%, 50%)
Magenta#FF00FFrgb(255, 0, 255)hsl(300, 100%, 50%)
Gray#808080rgb(128, 128, 128)hsl(0, 0%, 50%)
Orange#FFA500rgb(255, 165, 0)hsl(39, 100%, 50%)
Indigo (picker default)#4F46E5rgb(79, 70, 229)hsl(243, 75%, 59%)

Frequently asked questions

Quick answers.

How do I convert HEX to RGB?

Paste the HEX code into the HEX box and the RGB box fills in at once. For example, #FF8800 becomes rgb(255, 136, 0). By hand, convert each pair of digits from base 16 to a number from 0 to 255.

How do I convert RGB to HEX?

Type the values into the RGB box, either as rgb(79, 70, 229) or just 79, 70, 229. The HEX box shows #4F46E5. Each number becomes two base-16 digits.

What is HSL and why would I use it?

HSL stands for hue, saturation and lightness. It is easier to adjust by hand than RGB: change lightness for lighter or darker shades, or saturation for a more muted color, without touching the hue.

Does it support 3-digit and 8-digit HEX?

Yes. #FA0 is read as #FFAA00. HEX with 4 or 8 digits includes opacity, so #FFAA0088 sets the opacity slider to about 53%.

Can I paste a color in a different format?

Yes. The HEX box accepts codes with or without the #. The RGB box accepts rgb(), rgba() or plain numbers, and the HSL box accepts hsl(), hsla() or plain numbers, including the modern space and slash syntax.

Why does a value change by one when I convert back and forth?

HSL, HSV and CMYK are rounded to whole numbers, so a round trip can shift a value by one step. HEX and RGB are exact whole numbers and never drift.

What is the difference between RGB and CMYK?

RGB is for screens and adds light, CMYK is for print and uses ink. The CMYK values shown are a simple conversion, and a printer using an ICC color profile can give slightly different results.

Is my data uploaded?

No. All conversions happen in your browser, and nothing you type is sent to a server.

More free tools from KickSolve

Related tools.