At the default root font size of 16px, 167px is exactly 10.4375rem.
Calculation based on a root font-size of 16 pixels.
How to convert 167px to rem
To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 167px that is 167 ÷ 16 = 10.4375rem.
167px is a very large size, typically used for hero headings, containers and big layout dimensions.
167px at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 167px | 16.7rem |
| 12px | 167px | 13.9167rem |
| 14px | 167px | 11.9286rem |
| 15px | 167px | 11.1333rem |
| 16px | 167px | 10.4375rem |
| 18px | 167px | 9.2778rem |
| 20px | 167px | 8.35rem |
| 22px | 167px | 7.5909rem |
| 24px | 167px | 6.9583rem |
CSS examples
font-size: 10.4375rem; /* 167px */
padding: 10.4375rem;
margin-bottom: 10.4375rem;
width: 10.4375rem;The same values in pixels, if you need a fixed size:
font-size: 167px;
padding: 167px;Tailwind CSS equivalent
10.4375rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[10.4375rem] or text-[10.4375rem].
Nearby values
Frequently Asked Questions
167px equals 10.4375rem when the root font size is the browser default of 16px. The calculation is 167 ÷ 16 = 10.4375.
10.4375rem equals 167px at a 16px root font size (10.4375 × 16 = 167).
Yes. If the root font size is 18px, 167px equals 9.2778rem, and at 20px it equals 8.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.
