RGB to HEX Converter
Convert RGB color to HEX online for free — paste rgb(255,128,0) and get the hex code plus HSL and contrast ratios. No upload.
| HEX | #3F51B5 |
|---|---|
| RGB | rgb(63, 81, 181) |
| HSL | hsl(231, 48%, 48%) |
| Contrast vs black | 3.06:1AA large |
| Contrast vs white | 6.87:1AA |
About RGB to HEX Converter
Paste an rgb() value like rgb(255,128,0) and get the #FF8000 hex code instantly — plus the HSL equivalent, a live swatch and WCAG contrast ratios against black and white.
The converter accepts hex and hsl() input too, so any direction works from the same field. Everything converts locally in your browser.