ToolerCat / Color Converter / RGB to HEX Converter

RGB to HEX Converter

Instant, exact, in your browser — with every other format and a palette.

Try:

Check contrast → · CSS color names →

How it works

Convert each channel 0–255 to two hex digits and join them: 52 → 34, 120 → 78, 246 → F6 → #3478F6.

Check readability

Test the color as text on a background with the color contrast checker.

Other conversions

HEX to RGB · HEX to HSL · HSL to HEX · RGB to CMYK · CMYK to RGB · HEX to OKLCH · OKLCH to HEX · CSS color names