Color Converter
Convert colors between HEX, RGB and HSL formats with a live swatch.
Convert values between pixels, rem and em with a configurable base font size.
Relative CSS units make interfaces easier to scale, but conversions depend on a base font size. This tool shows the calculation and the final value.
Start with a small sample, check the output, then paste the full text when the result looks right. For important production data, review the output before saving or sharing it.
Understand the difference between fixed and relative CSS units before converting design values.
Read guideBrowsers commonly use 16px, but your root or parent font size may be different. Enter the value used by your project.
No. Rem uses the root font size, while em uses the current element context. This calculator uses the entered base for either relative unit.