Direct answer
Enter three numbers between 0 and 255 (with or without rgb() syntax). Each becomes a 2-digit hex pair.
Ad
RGB input
HEX output
About RGB → HEX
CSS, Tailwind config, design tokens — all want hex. If your design tool spits out RGB or you're reading a color from a JavaScript canvas, conversion is a one-step shrink.
Ad
Frequently asked questions
My RGB values are 0-1 floats — what do I do?
Multiply each by 255 and round before converting. So rgb(1, 0.42, 0.21) → rgb(255, 107, 54) → #FF6B36.