PX to REM Converter

Convert pixels to rem instantly (16px root default). Free CSS unit converter with formula and FAQ.

—

How the nearest RAL match is calculated

Your colour is compared against all 217 RAL Classic colours and the closest one is returned, using a weighted RGB distance (the "redmean" approximation) which weights the channels closer to how the eye perceives them than a plain Euclidean distance would. Everything runs in your browser.

Important: RAL colours are not RGB values

RAL Classic colours are defined by physical paint samples, not by screen values. The hex values used here are the widely used screen approximations from Wikipedia's List of RAL colours, and the same RAL code can look noticeably different when printed on different substrates. Use this converter for on-screen reference only — for paint mixing, printing or production work, always confirm against a physical RAL fan deck.

See the full RAL Classic chart (all 217 colours) →

How it works

rem = px ÷ 16 — 16px is the browser default root font size (1rem = 16px)

Examples

InputOutput
16 px1 rem
32 px2 rem
14 px0.875 rem

Frequently Asked Questions

What is a rem in CSS?

rem (root em) is a unit relative to the root element's font size. Most browsers default to 16px, so 1rem = 16px unless the site overrides it.

Why use rem instead of px?

rem scales with the user's font-size preferences, which improves accessibility. Pixel values ignore user settings.

What if my site uses a different root size?

If your CSS sets html{font-size:62.5%} (10px root), divide by 10 instead. Use our REM to PX converter with a custom root value.

Related Tools

REM to PX ConverterPX to PT ConverterPT to PX ConverterPX to EM ConverterEM to PX Converter