Tailwind Color Converter

Free Tailwind Color Converter online.

Runs in your browser — nothing is uploaded

Nothing is uploaded. Counting happens on your device.

Drop a .txt file here Tap to choose a .txt file

or browse your device — you can also paste (Ctrl+V)

Your camera and gallery open from the file picker

One file at a time. Files over 200 MB may be too large for browser processing.

    Your result will appear here.

    Free, no account, no sign-up. Nothing is uploaded. Everything runs on your device.

    Tailwind CSS names its colours by family and shade — red-500, slate-700, sky-300 — and each name maps to one exact hex code in the framework's default palette of 22 families with 11 shades each, 242 colours in total. This converter works in both directions: paste a hex code and it finds the nearest palette colour by RGB distance, or paste a class such as bg-red-500 or a bare name such as slate-700 and it returns the hex code. It also gives you the arbitrary-value class, bg-[#ff0000], for a colour that has no palette match. The values used are the Tailwind CSS v3 default palette, taken from the framework's own colour data. Tailwind v4 keeps the same names but stores colours in OKLCH, so some v4 shades differ, and the tool warns about that. The conversion runs entirely in your browser.

    How to use Tailwind Color Converter

    1. Paste your text type, paste (Ctrl+V) or drop a .txt file into the box above.
    2. Click Convert the tool runs entirely in your browser — nothing is uploaded.
    3. Read your results they appear below the tool as soon as the conversion finishes.
    4. Download the result save it for your records.
    5. Convert another clear the box and paste new text — no sign-up, no limits.

    Format facts

    InputAny plain text, or a .txt file (dropped or browsed).
    EngineBuilt-in browser engine
    CategoryDeveloper Tools

    Limits

    • Browser processing has practical limits: files over 200 MB (or very long media) may be too large for your device. You will get an honest “too large” message, never a fake result.
    • Pasted content is handled as plain text — formatting from documents is not preserved.

    Frequently asked questions

    Which palette does it use?

    The Tailwind CSS v3 default palette: 22 families with 11 shades each, 242 colours in total, taken from the framework's own colour data. Tailwind v4 keeps the same names but stores colours in OKLCH, so some v4 shades differ.

    How does it find the nearest colour?

    By Euclidean distance in RGB space: it measures the straight-line distance between your colour and every palette colour and returns the closest one, along with the distance.

    What is the arbitrary-value class for?

    For a colour with no palette match. bg-[#ff0000] applies any hex code as a background in Tailwind without adding it to your theme, which is right for one-off colours.

    Can I look up a class I already use?

    Yes. Paste a class such as bg-red-500, or a bare name such as slate-700, and the tool returns its hex code and RGB values.