Developer Tools

Hex to RGB Color Converter

Convert hex colors to RGB, RGBA and HSL instantly - two-way converter with live color picker plus a 9-step brand palette generator.

Or start from RGB values
HEX
#2563EB
RGB
rgb(37, 99, 235)
RGBA
rgba(37, 99, 235, 1.00)
HSL
hsl(221, 83%, 53%)

Brand palette from this color

Nine steps from white through your color to black: tints on the left, shades on the right. Click any swatch to copy its HEX.

🔒 Privacy: conversion happens entirely in your browser. Nothing is uploaded or stored.

More developer tools

How this calculator works

A hex to RGB converter translates between the two ways screens describe color. HEX is the compact form you see in CSS and design tools: six digits where each pair sets the red, green and blue channel on a 0 to 255 scale, so #2563eb means red 37, green 99, blue 235. Type any hex code into the tool above, or pick a color visually, and every format updates live. The RGB numeric inputs work in reverse too, so a value copied from a design tool can be turned straight back into its hex code.

The RGBA output adds the alpha channel, the opacity of the color from 0 (fully transparent) to 100 percent (fully opaque). The slider previews the transparency on the swatch and the snippet updates, for example rgba(37, 99, 235, 0.50) for a half-transparent blue. HSL is the third notation: hue as a 0 to 360 degree angle on the color wheel, saturation and lightness as percentages. Designers reach for HSL when they need to nudge a color lighter or more vivid without changing its family, because those adjustments map directly to the S and L numbers.

The palette generator turns any starting color into a usable brand scale. Nine steps run from white through your color to black: the left half mixes your color with white for tints, the right half mixes it with black for shades. Click any swatch to copy its hex code for hover states, borders, backgrounds and text. Like every tool here, the conversion runs entirely in your browser, nothing you type is uploaded or stored, and there is no account or limit.

Frequently asked questions

How do I convert hex to RGB?
Each pair of hex digits becomes one 0 to 255 channel: #2563eb converts to rgb(37, 99, 235) because 25 in hex is 37, 63 is 99 and eb is 235. Type the code into the tool and all formats update instantly.
How do I convert RGB back to hex?
Use the RGB numeric inputs on the page: enter the red, green and blue values from 0 to 255 and the hex code updates live. For example rgb(37, 99, 235) converts back to #2563eb.
What is the difference between HEX, RGB and HSL?
They are three notations for the same color. HEX (#2563eb) is the compact form used in CSS and design tools. RGB (rgb(37, 99, 235)) spells out the red, green and blue channels and is easier to read at a glance. HSL (hsl(221, 83%, 53%)) describes hue, saturation and lightness, which makes it the easiest for adjusting how vivid or dark a color is.
What does the RGBA alpha value mean?
Alpha is opacity: 100% is fully opaque, 0% is fully transparent. The slider on the page previews the transparency on the swatch, so rgba(37, 99, 235, 0.50) renders as a half-transparent blue over whatever sits behind it.
How does the brand palette generator work?
It mixes your starting color with white to produce five tints on the left and with black to produce four shades on the right, nine steps total. Click any swatch to copy its hex code for buttons, hover states, backgrounds and borders.
Is my color data uploaded anywhere?
No. The conversion math runs entirely in your browser with JavaScript. Nothing you type is sent to a server, logged or stored.
Disclaimer: Results are estimates for planning purposes only and are not financial advice. Actual loan terms, taxes and investment returns vary. Consult a qualified professional before making financial decisions.