⭐ 0

RGB to HEX Converter

Convert any color between HEX, RGB, HSL and CMYK notation with a live preview swatch — right in your browser.

Processed entirely in your browser — nothing you enter here is ever uploaded.

Processing... 0%

Result

About this tool

This page opens the color converter with RGB preselected as the input format — enter rgb(59, 130, 246) or just the bare triplet 59, 130, 246 and run it to get the matching #rrggbb code.

HEX is the most compact and universal color notation: one #rrggbb token works in every CSS property, SVG attribute, design tool and brand style guide, which makes it the standard way to hand a color from a mockup to code.

Beyond this pair, the full tool also returns HSL and CMYK for the same input, offers a native color picker and previews the color on a swatch — all computed locally in your browser with nothing uploaded.

Example. #ff0000 converts to rgb(255, 0, 0), hsl(0, 100%, 50%) and cmyk(0%, 100%, 100%, 0%).

Limit. The notations are HEX, RGB, HSL and CMYK; Lab and LCH are not in this converter.