Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

A free Tailwind to HEX converter that translates Tailwind CSS color classes like bg-red-500 into HEX, RGB, and HSL codes for design tools and brand docs.
Enter a Tailwind color class such as bg-blue-500, text-slate-900, or border-rose-300 to get its exact HEX value.
Supports arbitrary colors too, like bg-[#ff00aa].
A Tailwind to HEX converter is a tool that helps you convert Tailwind CSS class names like bg-red-500 or text-blue-700 into their underlying HEX colour codes. Since Tailwind ships hundreds of utility classes, manually looking up the exact HEX value for each one wastes time. Using a free Tailwind to HEX converter, designers and developers can quickly translate Tailwind classes into HEX codes for design tools, code samples, or brand documentation.
With an online Tailwind to HEX converter, you can paste any Tailwind colour class and instantly see the HEX, RGB, and HSL equivalents. These tools also help when you need to convert Tailwind to HEX for Figma palettes, Sketch swatches, or hand-coded CSS. Most Tailwind colour converters run directly in the browser, so the Tailwind to HEX lookup takes one click and zero setup.
Follow the steps below to convert a Tailwind class into a HEX colour code in a few seconds.
bg-blue-500 into the input box.bg-[#ff00aa] to verify the HEX you already wrote.These benefits make Tailwind to HEX converters essential for designers and Tailwind-first developers.
bg-[#ff00aa].Here are the key features of the Tailwind to HEX converter that help you map classes to colour codes.
Here are common ways developers and designers use the Tailwind to HEX converter.
It is a tool that converts Tailwind CSS colour classes into HEX, RGB, and HSL codes.
Yes, the converter is completely free with no signup required.
Yes, classes from both Tailwind 3 and Tailwind 4 are supported.
Yes, arbitrary classes like bg-[#ff00aa] are supported.
Yes, every Tailwind class returns HEX, RGB, and HSL equivalents.
Yes, background, text, border, ring, and divide colour utilities are all supported.
Yes, one-tap copy sends the HEX code to your clipboard.
Default palettes are covered; custom palettes need their colours pasted as arbitrary values.
Yes, the converter is fully responsive and works on phones.
Yes, conversion runs locally in your browser without sending data to any server.
Support is available through the contact form on the tool's website.
Did you find this page helpful?
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance