Skip to content
color-scale logo

Color Scale Generator

color-scale

Generates perceptually uniform OKLCH color palettes from brand colors. Use when creating color systems, theme palettes, or converting hex values to 11-step scales. Outputs CSS custom properties, Tailwind config, or JSON tokens.

SKILL.md

Full skill instructions

Color Scale Generator

Overview

Generate perceptually uniform 11-step color scales (50-950) from any base color. Includes auto-generated neutral and semantic colors harmonized with the brand.

When to Use

  • Starting a new project needing a color system
  • Adding brand colors to an existing palette
  • Building light/​dark theme tokens
  • Converting a single hex to a full scale

Quick Reference

StepLightnessTypical Use
5097%Subtle backgrounds
10093%Hover states on light
20087%Borders, dividers
30078%Disabled states
40065%Placeholder text
50055%Primary brand color
60045%Hover on dark
70037%Active states
80027%Headings
90020%Body text
95014%High contrast text

The Process

  1. Get input: Ask for base color (hex preferred) and color name (e.g., "primary")
  2. Ask format: CSS custom properties, Tailwind config, or JSON tokens?
  3. Ask color system (default OKLCH):
    • OKLCH - Perceptually uniform, modern standard (recommended)
    • HSL - Hue, Saturation, Lightness (wide browser support)
    • RGB - Red, Green, Blue (universal compatibility)
    • LCH - Lightness, Chroma, Hue (perceptual, CSS Color 4)
    • HEX - Hexadecimal notation (maximum compatibility)
  4. Generate scale: Create 11 steps with consistent chroma/​saturation
  5. Add neutrals: Generate neutral scale using same hue, minimal saturation
  6. Add semantics: Generate success, warning, error, info harmonized with brand
  7. Output: Provide complete token set in requested format

Color Systems

SystemFormat ExampleBest For
OKLCHoklch(55% 0.15 250)Modern browsers, perceptual accuracy
HSLhsl(220 80% 55%)Wide support, intuitive adjustments
RGBrgb(59 130 246)Universal, legacy systems
LCHlch(55% 60 250)Perceptual, CSS Color Level 4
HEX#3b82f6Maximum compatibility

Recommend OKLCH for new projects - it produces more visually consistent scales because lightness and chroma are perceptually uniform.

Output Formats

CSS Custom Properties:

:root {
  --primary-50: oklch(97% 0.01 250);
  --primary-500: oklch(55% 0.15 250);
  --primary-950: oklch(14% 0.10 250);
}

Tailwind Config:

module.exports = {
  theme: {
    extend: {
      colors: {
        primary: {
          50: 'oklch(97% 0.01 250)',
          500: 'oklch(55% 0.15 250)',
        }
      }
    }
  }
}

JSON Tokens:

{
  "color": {
    "primary": {
      "50": { "value": "oklch(97% 0.01 250)" },
      "500": { "value": "oklch(55% 0.15 250)" }
    }
  }
}

Algorithm Details

Lightness stops (L values):

  • 50: 0.97, 100: 0.93, 200: 0.87, 300: 0.78, 400: 0.65
  • 500: 0.55, 600: 0.45, 700: 0.37, 800: 0.27, 900: 0.20, 950: 0.14

Chroma/​saturation adjustment at extremes:

  • L > 0.9: reduce to 30% (prevents washed-out pastels)
  • L < 0.2: reduce to 70% (prevents muddy darks)
  • Otherwise: full chroma

Semantic color hues (harmonized 10-15% toward brand):

  • Success: base 145 (green)
  • Warning: base 70 (amber)
  • Error: base 25 (red)
  • Info: base 250 (blue)

More Design skills

brandkit logo
Design

brandkit

Premium brand-kit image generation for high-end identity systems, logo concepts, and visual-world presentations.

92.7K 345.8K
View

Premium website design-to-code skill that generates visual references first, then builds faithful frontend implementations.

92.7K 341.7K
View

Premium frontend image direction for landing pages and marketing sites, generating one distinct horizontal image per section.

92.7K 337.8K
View

Premium mobile app screen concepts and flows with clean hierarchy, strong imagery, and distinctive art direction.

92.7K 331.8K
View

Emil Kowalski's philosophy on UI polish, component design, and the invisible details that make software feel good.

43.5K 323.4K
View

Frontend design and iteration for production-grade interfaces, from concept to ship.

76.8K 313.3K
View

Reverse-engineer design tokens from public websites into starter token files for your project.

232 129.9K
View
Animate logo
Design

Animate

Builds an animation from scratch by making the decisions in the order that determines whether it feels right.

43.5K 117.9K
View

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

179.7K 114.2K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

Design AI tools

Maze Guru logo
Images

Maze Guru

Chat-to-edit AI studio for product photos, portraits, branding, and video.

Freemium
View
R
Design

RoomGPT

Generate your dream room in seconds.

Paid
View

Redesign your interior in seconds using AI

Paid
View
Reroom logo
Design

Reroom

Transform rooms with AI-generated designs.

Freemium
View
Jife logo
Design

Jife

Transform Your Space with AI-Powered Japanese Interior Designs by Jife

Paid
View
Visily logo
Design

Visily

AI-powered wireframes for non-designers.

Free
View

Revolutionize Property Viewing with AI-Generated Floor Plans and Virtual Tours

Paid
View
Archsynth logo
Design

Archsynth

Transform sketches into stunning architectural renders with AI.

Paid
View