Color Palette Generator

Runs locally in your browser

Build lockable harmony palettes, OKLCH tonal scales and design tokens

Accepts HEX with alpha, RGB, HSL, OKLCH and named CSS colors.

Palette Colors

  • Mapped to sRGB by reducing chroma.

Inspector & Tokens

Inspect

Color 1

HEX
#6366F1
RGB
rgb(99 102 241)
HSL
hsl(238.732 83.529% 66.667%)
OKLCH
oklch(58.54% 0.2041 277.117)

Tints

  • #767FF5
  • #8B96F8
  • #A1ADFA
  • #B9C2FC
  • #D1D8FD

Shades

  • #5154C6
  • #40439D
  • #303376
  • #202351
  • #12142E
Open in Color Converter

Contrast

Ratios describe these color combinations, not page certification. Normal text AA 4.5:1 and AAA 7:1. Transparent pairs are composited over the backdrop.

Contrast: Foreground / Background (Normal Text)
Foreground \ Background12345
1 #6366F11.00 Fail1.18 Fail1.23 Fail1.42 Fail1.49 Fail
2 #3C69C01.18 Fail1.00 Fail1.45 Fail1.20 Fail1.76 Fail
3 #8F72EA1.23 Fail1.45 Fail1.00 Fail1.74 Fail1.22 Fail
4 #0063A31.42 Fail1.20 Fail1.74 Fail1.00 Fail2.11 Fail
5 #B27FE01.49 Fail1.76 Fail1.22 Fail2.11 Fail1.00 Fail

Export

Colors in Export: 5 (Regular Palette)

:root {
  --primary-1: #6366F1;
  --primary-2: #3C69C0;
  --primary-3: #8F72EA;
  --primary-4: #0063A3;
  --primary-5: #B27FE0;
}
Import

Paste an exported CSS/SCSS, Tailwind v3 JSON config, JSON design tokens, array, or comma/newline color list. Eleven-tone imports must be ordered from light to dark.

Integration

Gradient selection: 0 / 6

Select 2–6 colors in your desired order. No colors are silently truncated.

All generation, contrast and exports run locally. No colors are uploaded.

Color Palette Generator

Generate editable, lockable color systems with perceptual OKLCH tones and usable design tokens.

Options

Choose a seed or random workflow, inspect/edit colors and lock the ones to preserve before Shuffle. Harmony groups generate perceptual hue offsets; manual locks can override them. Tonal Scale preserves the regular palette and produces exactly 50–950. Its fixed lightness targets need not place the seed at 500. Inspect tints/shades and four formats, review contrast, then copy or download one of five token formats.

Contrast

Source alpha is retained; contrast composites background then foreground over the chosen opaque backdrop. Results describe pairs, not accessibility certification. Eleven-tone imports must descend in lightness. Color data stays local; browser storage is optional. Select 2–6 colors explicitly for a locale-aware gradient handoff. Reset and imports can be undone.

CodingTool is officially live on

Launched on StartupBaseCodingTool.dev - Free, Fast & Easy Developer Tools in One Place | Product HuntCodingTool - Featured on Startup FameFazier badgeListed on Turbo0Featured on Twelve ToolsFeatured on Findly.tools