⚠️ JavaScript is required to use Black Claaw Tools. Please enable it in your browser settings.
Skip to main content

Color Palette Generator

Instantly generate beautiful, cohesive color schemes for your next project. Lock colors, select harmonies, and export to CSS or JSON instantly.

Base

Pro tip: Press the Spacebar to quickly generate a new palette.

Advertisement

Five Swatches Look Great Together. Then You Put Them in a Real UI.

Most color schemes fail after you leave the swatch board. Five bright colors sitting in neat vertical stripes look lively side by side, yet the moment you paint a navigation bar, a card border, and three buttons with them, the screen feels chaotic and hard to read. The gap between an attractive swatch strip and a usable interface comes down to visual weight, contrast, and knowing how hues behave at different lightness levels.

This palette generator helps you move past guesswork by pairing color wheel math with an interactive UI preview. You can press the Spacebar to roll fresh random combinations, lock individual swatches with the padlock icon, switch to structured harmonies built around a chosen Base Color, test the five colors inside a simulated page layout with View Mockup, and export CSS custom properties or a structured JSON token file.

Why Color Proportions Matter More Than the Hues

Interface designers frequently rely on a proportion guideline called the 60 30 10 rule. Rather than giving all five swatches equal screen area, roughly 60 percent of your layout belongs to a quiet neutral canvas (off white, slate, or deep charcoal), 30 percent supports structure (card surfaces, secondary panels, borders, and body typography), and 10 percent carries high energy brand accents such as primary call to action buttons, active links, and badges.

Click View Mockup above to see that imbalance in action right away. The preview maps swatch 5 to the page background, swatch 1 to primary body text, and intermediate swatches to buttons, surfaces, and borders. When all five swatches sit at mid lightness with heavy saturation, the mockup looks muddy or jarring within seconds. Swap one or two columns to a very light tint or deep neutral dark, lock them, and regenerate the remaining slots: suddenly the exact same accent color looks intentional and crisp.

How the Five Harmony Modes Build Your Swatches

Instead of picking five arbitrary hues, switching the Harmony dropdown applies predictable HSL (Hue, Saturation, Lightness) geometry from your selected Base Color:

  • Random: Generates five independent hues anywhere around the 360 degree wheel, keeping saturation between 40 and 100 percent and lightness between 20 and 80 percent so swatches stay vibrant without collapsing into pure black or white.
  • Monochromatic: Keeps your exact base hue and saturation while stepping lightness across five distinct stops (15, 35, 50, 70, and 85 percent). This guarantees zero hue clashes and suits clean SaaS dashboards, data tables, and documentation sites where clarity matters more than drama.
  • Analogous: Holds your base saturation and lightness steady while shifting the hue 15 and 30 degrees in both directions along the color wheel. Analogous schemes feel calm and unified (think ocean blues shifting into teal and seafoam) because neighboring wavelengths share visual warmth or coolness.
  • Complementary: Pairs your base hue with its direct 180 degree opposite across the wheel, while adding dark variations at 30 percent lightness and a pale neutral (20 percent saturation, 90 percent lightness) in slot three so you have a built in quiet background tone.
  • Triadic: Spaces three hues evenly 120 degrees apart around the wheel, balancing a dark anchor at 20 percent lightness alongside a light neutral variation. Triadic palettes offer strong visual separation for charts, category tags, and illustration heavy pages, provided you reserve the brightest swatches for small areas.

The Lock and Iterate Workflow

You rarely get a finished brand system on the first click, and you do not need to. A faster way to work uses locks across multiple modes:

  1. Start in Random mode and tap Spacebar until one swatch feels right for your brand personality or product mood.
  2. Hover over that column (on desktop) and click the padlock icon to lock it in place.
  3. Either keep tapping Spacebar to test random companions around that locked color, or pick your locked color in the Base Color picker and switch Harmony to Monochromatic, Complementary, or Triadic. Locked columns stay untouched while unlocked slots recalculate around the new rule.
  4. Open View Mockup to inspect whether your light and dark slots give enough separation between text, cards, and primary buttons.

Anytime a swatch hits the mark, clicking its HEX code, RGB values, or HSL readout copies that exact string directly to your clipboard.

Contrast, Relative Luminance, and Accessibility

A palette that looks artistic to you still fails users if headlines vanish into tinted cards or low vision readers cannot spot links. Under the Web Content Accessibility Guidelines (WCAG), normal body text needs a minimum contrast ratio of 4.5 to 1 against its background for Level AA compliance, while large headings (at least 18pt or bold 14pt) and UI controls require at least 3 to 1.

Notice how the HEX labels inside each column above automatically flip between black and white depending on the swatch color behind them. Behind the scenes, the page computes WCAG relative luminance from sRGB channel values (weighting green heavily at 0.7152, red at 0.2126, and blue at 0.0722, since human eyes perceive green far brighter than deep blue). That luminance calculation explains a classic design pitfall: bright yellow and cyan look rich in HSL at 50 percent lightness, yet carry high luminance, so white button text sitting on a pure yellow button almost always fails contrast checks. Either darken the button dramatically or switch the button label to near black.

Color blindness adds one more check worth running before finalizing a UI palette. Red and green combinations with similar brightness blur together for people with deuteranopia or protanopia. Separating status colors by both hue and lightness (for example, pairing a deep forest green with a pale warm amber rather than two midtone greens and reds) keeps errors and confirmations distinct even when printed in grayscale.

Advertisement

Moving From Swatches Into Production Code

Once your five colors hold up in the mockup preview, two export buttons move them straight into your codebase without retyping five separate HEX codes.

Clicking CSS copies a clean :root block defining --color-1 through --color-5 onto your clipboard. Paste that into your global stylesheet, then alias semantic names on top (for instance, mapping --bg-canvas: var(--color-5) and --accent: var(--color-2)) so future theme tweaks stay painless. Clicking JSON downloads BlackClaaw_Palette.json containing every swatch's HEX, RGB, and HSL objects, ready to feed into design token pipelines, Tailwind config themes, or Figma token plugins.

Remember that mathematical harmonies are starting points, not final pixel decrees. After exporting your palette, you will often want to nudge one shade slightly lighter or pull a transparent overlay variant. You can inspect individual color channels, check live WCAG scores, and convert between HEX, RGB, RGBA, and HSL or HSLA in the Color Picker & Converter, or blend two chosen palette swatches into smooth background transitions with the CSS Gradient Generator.