Here is a scenario every frontend developer knows:
The designer hands you a Figma file. The primary color is #3498db.
Great. You put it in your CSS.
But then, you need to use that same color for a button background with 50% opacity.
The Problem π
You can't just type opacity: 0.5 on the button, because that will fade the text inside it too.
You need to use background-color: rgba(...).
But waitβwhat is #3498db in RGB numbers? You can't calculate that in your head.
The Solution π οΈ
You need a quick way to swap between formats without opening Photoshop or searching Google for a heavy ad-filled site.
I added a Hex to RGB Converter to the PaPiv Suite to solve this specific pain point.
-
Hex to RGB: Convert
#ff0000torgb(255, 0, 0). - RGB to Hex: Go the other way instantly.
- Preview: See the color live before you copy it.
Why RGB is sometimes better:
While Hex is shorter, RGB allows for the "Alpha" channel (transparency).
rgba(52, 152, 219, 0.5) gives you that perfect semi-transparent background without affecting child elements.
Stop guessing numbers.
Top comments (0)