Start with something yours
Choose a preset, type a brand HEX, or extract colors from a photo. Your exact brand colors carry through.
Build light and dark UI themes with real interface previews, image colors, contrast checks, and shadcn/ui or Tailwind v4 exports.
THE COLORBASE STUDIO
Good color. Great interfaces.
Shape your palette into a complete theme. Preview it, refine it, make it yours.
forma.design / dashboard
lightMONDAY, OCTOBER 12
Welcome back, Jamie. Here’s your business at a glance.
A steady step in the right direction.
Where people find you.
| Customer | Status | Amount |
|---|---|---|
| AKAlex Kim | Completed | $240.00 |
| MRMorgan Reed | Completed | $129.00 |
Normal text: AA ≥ 4.5:1; AAA ≥ 7:1. Checks cover only these pairs. Repair preserves brand colors; incompatible surfaces or button labels may still fail. Check another pair ↗
Choose a preset, type a brand HEX, or extract colors from a photo. Your exact brand colors carry through.
Try three real interface layouts. Refine light and dark surfaces and inspect specific text contrast pairs.
Export shadcn/ui, Tailwind v4, CSS, or JSON. Download a working HTML example to start building.
Quick answer
A UI color theme assigns colors to roles in an interface: background, surface, text, border, primary action, and states like success or error, for both light and dark mode. The theme builder generates those roles from a brand color or an image, previews them on real interface screens, checks contrast, and exports CSS, Tailwind v4 or shadcn/ui tokens.
Last updated · Maintained by the ColorBase team. Free to use, no sign-up needed.
How to use this tool
Use the theme builder when you already have a brand hue (or an image) and need light/dark UI roles on a realistic interface — not just a row of swatches.
A pretty palette still fails when text sits on the wrong surface. Previewing roles on UI chrome catches that before production.
A UI theme is a set of jobs: page background, card, text, muted text, border, accent, and the danger and success pairs. This builder fills those jobs for light and dark, previews them on an interface instead of a row of swatches, can start from colors pulled out of an image, and checks contrast before you export shadcn/ui or Tailwind v4 tokens. Build the light theme until body text clears 4.5:1 and borders clear about 3:1 against the card. Then build the dark theme as its own set. Inverting every token makes muted text disappear and turns a soft shadow into a bright edge. The accent is for buttons and links, not for paragraphs. If the accent fails as button text, flip the label to white or near-black rather than lightening the brand until it is unrecognizable. Image colors are raw material. A photo’s most common pixel is often a beige wall or a gray UI chrome, so promote only the swatches that match the roles. Export one format and stick to it. A project that keeps both a hand-edited HEX file and a generated token file will drift the first time someone “just tweaks” the button.
Read next: Five-role SaaS shell with CSS variables · Dark-mode surface stack · Contrast checker
A LITTLE MORE CLARITY
Need a reference? Browse the HEX and RGB color code chart. Looking for more? Browse Our Tools.