Generate colors for Tailwind CSS v4
Enter your brand hex, adjust the five roles, and select Tailwind v4 before copying or downloading. The export includes an @import "tailwindcss"; statement and an @theme block with --color-* variables. Use the file as your Tailwind CSS entrypoint, or merge its theme block into your existing entrypoint without duplicating the import.
Use roles in your components
Apply bg-surface text-ink to your page and bg-primary text-on-primary to your primary button. Secondary and accent roles also include matching black-or-white text tokens. Check the resulting components in context, especially hover states and overlays.
How the 50–950 ramp is made
HueWiz generates eleven shades by varying OKLCH lightness and chroma. Colors outside sRGB are brought into gamut by reducing chroma. The ramp is an approximation for your project, not a copy of Tailwind's official palette. Your exact starting color remains primary; it is not forced to be shade 500.
This export targets v4. Existing v3 projects use a JavaScript configuration instead. Named pages in the color library include explicitly labeled v3 examples. See Tailwind's official color documentation.