HEX to RGB Converter
Convert HEX color to RGB online for free — paste a hex code and get rgb() values 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 HEX to RGB Converter
Paste a hex color like #FF8000 and get the rgb(255,128,0) value instantly — plus the HSL equivalent, a live swatch and WCAG contrast ratios against black and white text.
The converter accepts rgb() and hsl() input too, so any direction works from the same field. Everything converts locally in your browser.