When working with Tailwind CSS, matching custom colors to Tailwind’s built-in palette can be tedious. Manually comparing hex codes is time-consuming, and eyeballing colors isn’t precise.
That’s where the Hex ↔ Tailwind Color Converter comes in!
🔹 Input: Enter a hex color code (e.g., #3B82F6 or 3B82F6). 🔹 Output: Get the closest Tailwind className (e.g., bg-blue-500).
#F87171 → bg-red-400
#10B981 → bg-emerald-500
🔹 Input: Enter a Tailwind color className (e.g., blue-500 or text-red-300). 🔹 Output: Get the exact hex value (e.g., #3B82F6).
bg-yellow-300 → #FCD34D
text-purple-600 → #9333EA