How to Use This Tool
Enter a colour in any format — hex, RGB, or HSL — and all other formats update instantly, including the nearest Tailwind CSS class. You can also use the visual colour picker to select a colour. Click "Copy" next to any format to copy the value to your clipboard, ready to paste into your CSS, design tool, or Tailwind project.
Why Colour Formats Matter
Different situations call for different colour formats. Hex codes are compact and widely supported. RGB is useful when you need to manipulate individual colour channels. HSL is the most intuitive for designers — adjusting lightness and saturation is straightforward, making it ideal for creating consistent colour palettes and design systems.
Having the right format at your fingertips saves time when building websites, creating brand guidelines, or communicating colour specs to developers.
Hex to Tailwind CSS Colour Lookup
If you're building with Tailwind CSS, this tool instantly finds the nearest Tailwind colour class for any hex code. It checks your colour against all 220+ colours in Tailwind's v3 default palette and tells you whether it's an exact match or shows you the closest alternative. This is useful when you're converting brand colours into a Tailwind design system and need to know which utility class to use.