Tailwind Color Converter
Paste any color and find the closest Tailwind CSS class instantly. Supports hex, rgb and hsl.
rgb(168, 85, 247)hsl(271, 91%, 65%)
Your color
purple-500
Closest: purple-500
Distance: 0.0 — Almost exact!
Tailwind CSS
/* Closest Tailwind match for #a855f7 */
/* Background */
<div class="bg-purple-500">...</div>
/* Text */
<p class="text-purple-500">...</p>
/* Border */
<div class="border border-purple-500">...</div>
/* With opacity */
<div class="bg-purple-500/50">...</div>Explore more Goodies
Other free tools from Eguth Studio you might enjoy.