frontendhack-logo
27px = 1.6875rem

At the default root font size of 16px, 27px is exactly 1.6875rem.

Calculation based on a root font-size of 16 pixels.

How to convert 27px to rem

To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 27px that is 27 ÷ 16 = 1.6875rem.

27px is a medium size, common for body text, subheadings, buttons and standard spacing.

27px at different root font sizes

Root font sizeInputResult
10px27px2.7rem
12px27px2.25rem
14px27px1.9286rem
15px27px1.8rem
16px27px1.6875rem
18px27px1.5rem
20px27px1.35rem
22px27px1.2273rem
24px27px1.125rem

CSS examples

font-size: 1.6875rem; /* 27px */
padding: 1.6875rem;
margin-bottom: 1.6875rem;
width: 1.6875rem;

The same values in pixels, if you need a fixed size:

font-size: 27px;
padding: 27px;

Tailwind CSS equivalent

1.6875rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[1.6875rem] or text-[1.6875rem].

Nearby values

PixelsREM
27px1.6875rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

27px equals 1.6875rem when the root font size is the browser default of 16px. The calculation is 27 ÷ 16 = 1.6875.

1.6875rem equals 27px at a 16px root font size (1.6875 × 16 = 27).

Yes. If the root font size is 18px, 27px equals 1.5rem, and at 20px it equals 1.35rem. The pixel value itself never changes, only the rem equivalent. Use the base font size field above to try any value.

Prefer rem for font sizes, spacing and layout so they respect the user's browser font settings and scale for accessibility. Use px for details that should never scale, such as 1px borders or fixed icon sizes.