PX to REM, HEX to RGB & Color Converter Online Free
Front-end work is full of small conversions: pixels to rem for flexible text sizes, a HEX color from a design file into RGB, a brand color into HSL. PDFFlowState has three free tools for these, working in your browser with no sign-up.
PX to REM Converter
PX to REM Converter turns CSS pixels into REM using your root font size.
How it works: rem = px ÷ root font size. Browsers usually default the root font size to 16px, so:
| Pixels | REM (16px root) |
|---|---|
| 12px | 0.75rem |
| 14px | 0.875rem |
| 16px | 1rem |
| 18px | 1.125rem |
| 24px | 1.5rem |
| 32px | 2rem |
Why use rem? Rem sizes scale with the user's font settings, which helps accessibility and makes responsive design easier. If your site sets a different root font size, enter it in the tool so the numbers match.
HEX to RGB
HEX to RGB turns color codes into RGB values.
A HEX code has three pairs of digits for red, green and blue. For example, #FF5733 is red 255, green 87, blue 51, written rgb(255, 87, 51).
Color Converter
Color Converter converts between HEX, RGB, HSL, CMYK and HSV.
- HEX and RGB: the usual formats for screens and CSS.
- HSL: hue, saturation and lightness, handy for making lighter or darker shades.
- HSV: hue, saturation and value, common in color pickers.
- CMYK: cyan, magenta, yellow and black, used for print.
Screens and printers show color differently, so a CMYK result is a close guide, not an exact match for print.
How to use the tools
- Open the tool on phone or desktop.
- Enter your value: pixels and root size, a HEX code, or a color in any supported format.
- Copy the result into your CSS or design tool.
Tips
- Keep your root font size in mind. Changing it changes every rem value.
- Check contrast between text and background colors so your design stays readable.
- Shorten HEX codes like
#FFFFFFto#FFFwhen the pairs repeat. - Related tools: Unit Converter for inches and centimeters, and Image Effects for adjusting pictures.
Frequently asked questions
Are these tools free? Yes. All three are free and need no sign-up.
How do I convert px to rem? Divide the pixel value by the root font size. With a 16px root, 24px is 1.5rem.
What is the default root font size? Browsers usually use 16px unless a site changes it.
Can I convert RGB to HEX? Use Color Converter, which converts between HEX, RGB, HSL, CMYK and HSV.
Convert your values now
Browse all the developer tools on PDFFlowState.