Color Palette Generator from Hex

Start with a single brand HEX code and build balanced analogous, complementary, triadic, or monochromatic schemes.

Open in Generator

Use this color palette generator from hex to turn a single brand color, logo shade, or CSS value into a cohesive 5-color scheme. Enter any 3-digit or 6-digit HEX code (with or without #), pick from the native color wheel, or click Random Seed, then switch between six classic color harmony rules—including analogous colors, complementary, split-complementary, triadic, tetradic, and monochromatic scales.

Six Color Harmony Modes Explained

Starting from a single seed color removes guesswork because every companion swatch sits at a deliberate angular relationship on the HSL color wheel:

  • Analogous (±30° & ±60°): Generates neighboring hues that sit side by side on the wheel. Analogous colors create calm, cohesive interfaces, editorial layouts, and gradient backgrounds with minimal visual tension.
  • Complementary (+180°): Pairs your base color with its direct opposite on the wheel, plus light and dark tints for readable hierarchy. Ideal for high-impact call-to-action buttons against neutral surfaces.
  • Split-Complementary (+150° & +210°): Softens pure complementary contrast by pairing your base color with the two hues flanking its opposite, rounded out by a dark neutral anchor.
  • Triadic (+120° & +240°): Spaces three primary hues evenly around the color wheel for energetic dashboards, badges, and illustrations.
  • Tetradic (+90°, +180°, +270°): Uses four balanced hues at 90-degree intervals alongside a light neutral tint for multi-category charts and complex UIs.
  • Monochromatic (Tints & Shades): Keeps your exact base hue constant while stepping lightness from 16% to 90%, delivering clean hover states, borders, and card surfaces.

How to Use This Color Palette Generator from Hex

  1. Set your seed color: Type a HEX value like #2563EB (or 2563eb) into the Base HEX field, click the color square to browse visually, or click Random Seed for inspiration.
  2. Switch harmony rules: Click any of the six tabs to compare how your base color behaves across analogous, complementary, or monochromatic pairings.
  3. Explore subtle variations: Click Shuffle Variant to nudge lightness and saturation across companion swatches while preserving the selected hue geometry.
  4. Verify contrast and export: Each card displays HSL, OKLCH, and WCAG contrast against white (W) and dark slate (B). Copy individual codes, export HEX / CSS / Tailwind OKLCH, download a PNG swatch strip, or click Open in Generator to adjust swatch counts (2–10 colors) and lock shades in the Random Color Palette Generator.

Pairing Single-HEX Harmonies with Image Extraction

Already working from a photograph or brand mood board? Pull your starting HEX code using our Color Palette Generator from Image, then paste it here to build matching tints, shades, and analogous colors for buttons, borders, and dark-mode surfaces.

All calculations run locally in your browser with zero sign-up or rate limits. Explore our About page to see how OKLCH and WCAG math are computed, or review our Terms of Service for commercial usage rights.

Frequently Asked Questions

Can I enter a HEX code without the # symbol or use 3-digit shorthand?

Yes. You can paste a 6-digit or 3-digit HEX code with or without the leading # symbol (for example, 2563eb or #25f) and the tool normalizes it automatically.

What are analogous colors and when should I use them?

Analogous colors sit next to each other on the color wheel (here at -60, -30, 0, +30, and +60 degrees from your base hue). They blend smoothly and work well for serene UI surfaces and gradients.

What does the Shuffle Variant button do?

Shuffle Variant preserves your base color and the active harmony angles while shifting lightness and saturation slightly across companion swatches so you can discover softer or bolder variations.

How can I expand the 5 generated colors into 6–10 swatches?

Click Open in Generator to carry all five generated HEX colors into the main Random Color Palette Generator, where you can add up to 10 swatches, lock favorites, and simulate colorblindness.

Can I export HEX harmonies as Tailwind CSS v4 OKLCH variables?

Yes. Select the Tailwind OKLCH tab in the export panel to copy a Tailwind v4 @theme block with exact oklch(L% C H) values derived from your HEX palette.