Favorite places of your favorite city
Home
Add to preferred sources on Google

Color Palette Generator

Start with a color, choose a harmony and preview how one swatch works in light and dark themes.

Color settings

3 or 6 hex digits, with or without #.

3 or 6 hex digits, with or without #.

3 or 6 hex digits, with or without #.

Palette and themes

Choose a swatch for the accent

Light theme

Body text sample

Sample linkSample button
Body text / background
21.00:1
Accent / background
5.37:1
Button text / accent
5.37:1

#3366CC already passes against this background at 5.37:1.

Dark theme

Body text sample

Sample linkSample button
Body text / background
18.73:1
Accent / background
4.50:1
Button text / accent
5.05:1

#3366CC at 3.49:1 → #4E7AD3 (13.0% toward white).

Colors stay in this page until you refresh or leave. Copy the values you want to keep.

Check two colors for contrastGenerate random colors

Make a color palette

  1. Enter a three- or six-digit hex color and choose a harmony.
  2. Select a swatch and set the two backgrounds you want to preview.
  3. 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

The five swatches keep their harmony values. The light and dark previews each get an accent derived from the selected swatch.

A color’s contrast depends on its background. Each preview uses the first passing adjustment along the tested mixes.

It includes all five swatches, the light theme variables and a dark-mode media query with the dark theme values.

Yes. For example, #36c expands to #3366CC.

Sources

The contrast target applies to the three pairs listed for each theme.

CSS Filter Generator

Combine CSS filters such as blur, brightness and drop-shadow.

Open tool — CSS Filter Generator

Fluid Font Size Calculator

Generate CSS clamp() from a font size at each of two viewport widths.

Open tool — Fluid Font Size Calculator

CSS Button Generator

Style native button states, inspect keyboard focus and copy HTML and CSS.

Open tool — CSS Button Generator

CSS Border Generator

Design each side of a CSS border or apply the top edge’s settings to all four sides.

Open tool — CSS Border Generator

npm Version Range Tester

Test a list of versions against one npm range, or compare which versions two ranges allow.

Open tool — npm Version Range Tester

CSS Specificity Calculator

Compare CSS selector specificity and see which IDs, classes and elements contribute.

Open tool — CSS Specificity Calculator

CSS Background Pattern Generator

Build repeating stripes, grids, dots or checkerboards in CSS.

Open tool — CSS Background Pattern Generator

CSS Clip Path Generator

Create a CSS clip-path by dragging polygon points or entering coordinates.

Open tool — CSS Clip Path Generator

CSS Border Radius Generator

Edit eight corner radii, preview a box and copy CSS in pixels or percentages.

Open tool — CSS Border Radius Generator

CSS Grid Generator

Design a CSS Grid with rows, columns, gaps and named areas.

Open tool — CSS Grid Generator

CSS Flexbox Generator

Build a Flexbox layout and see what happens when items grow, shrink or wrap to another line.

Open tool — CSS Flexbox Generator

CSS Text Shadow Generator

Preview up to 12 CSS shadows on your own text.

Open tool — CSS Text Shadow Generator

CSS Transform Generator

Combine 2D CSS transforms such as rotate, translate, scale and skew.

Open tool — CSS Transform Generator

CSS Cubic Bezier Generator

Shape CSS animation timing by dragging the two Bézier handles or entering their coordinates.

Open tool — CSS Cubic Bezier Generator

CSS Box Shadow Generator

Layer up to eight CSS box shadows inside or outside an element.

Open tool — CSS Box Shadow Generator

HTML to Markdown

Convert an HTML file or pasted source to Markdown with headings, links, lists and simple tables.

Open tool — HTML to Markdown

JavaScript Regex Tester

Test a JavaScript pattern locally and inspect matches, captures, and UTF-16 positions.

Open tool — JavaScript Regex Tester

Markdown Link Extractor

List Markdown links in document order, including reference links and autolinks.

Open tool — Markdown Link Extractor

Markdown Outline Extractor

Find Markdown headings, check their source lines and copy an indented outline.

Open tool — Markdown Outline Extractor

Markdown to HTML

Turn Markdown into HTML you can copy into a page. Preview headings, lists and tables before saving.

Open tool — Markdown to HTML

CSS Gradient Generator

Build a linear or radial CSS gradient with color stops and transparency.

Open tool — CSS Gradient Generator

Color Converter

Convert a HEX, RGB or HSL color to the other CSS formats, including opacity.

Open tool — Color Converter

HTML Entity Encoder/Decoder

Encode text as HTML entities or decode references such as & back to characters.

Open tool — HTML Entity Encoder/Decoder

Markdown Table Generator

Create a GitHub Markdown table in the editor or paste tab-separated cells.

Open tool — Markdown Table Generator
View all tools in this category