Color Palette Generator
Start with a color, choose a harmony and preview how one swatch works in light and dark themes.
Make a color palette
- Enter a three- or six-digit hex color and choose a harmony.
- Select a swatch and set the two backgrounds you want to preview.
- Check the accent adjustments and copy the swatches or both themes as CSS.
Choose a harmony and use the preview
Monochromatic uses tints and shades of the base. Complementary uses its opposite hue. Triadic uses two evenly spaced hue turns.
The fitted accent stays as close as possible along the mixes toward black and white that the tool checks.
Look at each preview’s body text, accent and button text pairs before copying the theme.
Use one blue in two themes
Start with #3366CC. It already reaches the normal-text contrast target on white.
On #121212, the fitted accent is #4E7AD3. Both colors appear in the CSS under their respective themes.
Color and contrast limits
Enter opaque sRGB hex colors. Gray inputs use tints and shades because they have no hue to rotate.
The contrast checks apply to the displayed role pairs and opaque backgrounds.
Local color editing
Your palette stays in the open page. Copy the values you want to keep before refreshing.
Palette questions
Sources
- W3Cw3.orgMinimum contrastThe normal-text threshold is 4.5:1. Check the unrounded ratio before formatting it for display.
- W3Cw3.orgHSL colors and hueHue rotations give the complementary and triadic colors while preserving saturation and lightness.
- W3Cw3.orgCSS custom propertiesThe export stores each swatch and theme role in a reusable CSS variable.
The contrast target applies to the three pairs listed for each theme.
Related tools
CSS Filter Generator
Combine CSS filters such as blur, brightness and drop-shadow.
Open tool — CSS Filter GeneratorFluid Font Size Calculator
Generate CSS clamp() from a font size at each of two viewport widths.
Open tool — Fluid Font Size CalculatorCSS Button Generator
Style native button states, inspect keyboard focus and copy HTML and CSS.
Open tool — CSS Button GeneratorCSS Border Generator
Design each side of a CSS border or apply the top edge’s settings to all four sides.
Open tool — CSS Border Generatornpm Version Range Tester
Test a list of versions against one npm range, or compare which versions two ranges allow.
Open tool — npm Version Range TesterCSS Specificity Calculator
Compare CSS selector specificity and see which IDs, classes and elements contribute.
Open tool — CSS Specificity CalculatorCSS Background Pattern Generator
Build repeating stripes, grids, dots or checkerboards in CSS.
Open tool — CSS Background Pattern GeneratorCSS Clip Path Generator
Create a CSS clip-path by dragging polygon points or entering coordinates.
Open tool — CSS Clip Path GeneratorCSS Border Radius Generator
Edit eight corner radii, preview a box and copy CSS in pixels or percentages.
Open tool — CSS Border Radius GeneratorCSS Grid Generator
Design a CSS Grid with rows, columns, gaps and named areas.
Open tool — CSS Grid GeneratorCSS Flexbox Generator
Build a Flexbox layout and see what happens when items grow, shrink or wrap to another line.
Open tool — CSS Flexbox GeneratorCSS Text Shadow Generator
Preview up to 12 CSS shadows on your own text.
Open tool — CSS Text Shadow GeneratorCSS Transform Generator
Combine 2D CSS transforms such as rotate, translate, scale and skew.
Open tool — CSS Transform GeneratorCSS Cubic Bezier Generator
Shape CSS animation timing by dragging the two Bézier handles or entering their coordinates.
Open tool — CSS Cubic Bezier GeneratorCSS Box Shadow Generator
Layer up to eight CSS box shadows inside or outside an element.
Open tool — CSS Box Shadow GeneratorHTML to Markdown
Convert an HTML file or pasted source to Markdown with headings, links, lists and simple tables.
Open tool — HTML to MarkdownJavaScript Regex Tester
Test a JavaScript pattern locally and inspect matches, captures, and UTF-16 positions.
Open tool — JavaScript Regex TesterMarkdown Link Extractor
List Markdown links in document order, including reference links and autolinks.
Open tool — Markdown Link ExtractorMarkdown Outline Extractor
Find Markdown headings, check their source lines and copy an indented outline.
Open tool — Markdown Outline ExtractorMarkdown to HTML
Turn Markdown into HTML you can copy into a page. Preview headings, lists and tables before saving.
Open tool — Markdown to HTMLCSS Gradient Generator
Build a linear or radial CSS gradient with color stops and transparency.
Open tool — CSS Gradient GeneratorColor Converter
Convert a HEX, RGB or HSL color to the other CSS formats, including opacity.
Open tool — Color ConverterHTML Entity Encoder/Decoder
Encode text as HTML entities or decode references such as & back to characters.
Open tool — HTML Entity Encoder/DecoderMarkdown Table Generator
Create a GitHub Markdown table in the editor or paste tab-separated cells.
Open tool — Markdown Table Generator