2ClickKit

Design Token Color Shades & Tint Generator

Files Never Leave Your Device

Generate an 11-step design token color palette (50-950) from any base hex. Export Tailwind CSS configurations, CSS custom properties, and W3C design tokens.

Color Presets:
Tonal Curve11 Steps (50 to 950) with WCAG AuditsPerceptually balanced lightness distribution
Generated Tints & Shades Scale:
50
#f3f3fc
L: 97%
WCAG: 19.04:1
Click to Copy
100
#e4e3f8
L: 93%
WCAG: 16.64:1
Click to Copy
200
#bfbcf0
L: 84%
WCAG: 11.67:1
Click to Copy
300
#9490ea
L: 74%
WCAG: 7.44:1
Click to Copy
400
#5e56e6
L: 62%
WCAG: 5.32:1
Click to Copy
500Base
#4f46e5
L: 59%
WCAG: 6.29:1
Click to Copy
600
#2018bf
L: 42%
WCAG: 10.8:1
Click to Copy
700
#181197
L: 33%
WCAG: 13.41:1
Click to Copy
800
#100b6f
L: 24%
WCAG: 16.16:1
Click to Copy
900
#0a074b
L: 16%
WCAG: 18.34:1
Click to Copy
950
#05032a
L: 9%
WCAG: 19.94:1
Click to Copy
// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'primary': {
      50: '#f3f3fc',
      100: '#e4e3f8',
      200: '#bfbcf0',
      300: '#9490ea',
      400: '#5e56e6',
      500: '#4f46e5',
      600: '#2018bf',
      700: '#181197',
      800: '#100b6f',
      900: '#0a074b',
      950: '#05032a'
        }
      }
    }
  }
};

Tonal Color Systems in User Interface Design: Engineering Perceptual Luminance Scales

In modern design systems—including Google's Material Design 3, Tailwind CSS, and Salesforce Lightning—a single brand color cannot satisfy all UI states. An effective user interface requires a nuanced hierarchy of tints (lighter variations) and shades (darker variations) to represent focused states, hover elevation, disabled controls, container backgrounds, subtle borders, and high-contrast typography.

However, generating an 11-step palette (steps 50 through 950) by simply overlaying white or black opacity yields visually flat, uninspired colors. The 2ClickKit Design Token Color Shades & Tint Generator implements non-linear perceptual lightness distribution and saturation compensation to produce vibrant, production-grade tonal palettes.

Perceptual Lightness Distribution vs. Naive Opacity Mixing

The fundamental flaw in traditional design tools is the reliance on linear alpha transparency overlays (e.g., overlaying 10% black or 20% white). Because display devices conform to non-linear gamma curves ($\gamma \approx 2.2$) and human ocular reception is logarithmic (the Weber-Fechner Law), linear increments produce unequal steps in perceived brightness.

Standard Design Token Lightness Mapping

To mirror modern production systems, our algorithm pins each step to target perceptual lightness coordinates:

Token Step Target Lightness ($L$) Primary UI Architectural Role Accessible Text Contrast
50 $97\%$ App canvas background, tinted cards, zebra striping Use dark text (>15:1 against black)
100 $93\%$ Hover backgrounds, badge pill surfaces, light tags Use dark text (>12:1 against black)
200 $84\%$ Input borders, subtle card dividers, disabled buttons Use dark text (>8:1 against black)
300 $74\%$ Active tab borders, secondary icon outlines Requires bold or large text
400 $62\%$ Placeholder text, disabled labels, decorative accents Boundary state; test individually
500 $50\%$ Primary brand anchor, primary action buttons, main icons Passes 4.5:1 against white or black
600 $42\%$ Button hover states, active links, emphasized controls Use white text (>4.5:1 against white)
700 $33\%$ Button active states, secondary headers, dark badges Use white text (>6:1 against white)
800 $24\%$ Subtitles, dark-mode cards, emphasized paragraphs Use white text (>9:1 against white)
900 $16\%$ Primary dark-mode typography, dark surfaces Use white text (>13:1 against white)
950 $9\%$ Deepest dark-mode background canvas, contrast borders Use white text (>16:1 against white)

Saturation Compensation Mechanics

When adjusting lightness in cylindrical color models like HSL, keeping saturation constant causes higher tints (80% to 95% lightness) to appear neon and acidic. Conversely, deep shades (10% to 25% lightness) lose chromatic identity and turn into muddy charcoals.

Our engine applies a dynamic saturation compensation polynomial:

// Tonal Saturation Compensation Algorithm
if (step < 500) {
  // Light Tints: Taper saturation gently towards white
  const factor = (targetLightness - baseLightness) / (100 - baseLightness);
  adjustedSaturation = baseSaturation * (1.0 - factor * 0.25);
} else {
  // Dark Shades: Boost saturation to preserve rich chromatic purity
  const factor = (baseLightness - targetLightness) / baseLightness;
  adjustedSaturation = Math.min(100, baseSaturation * (1.0 + factor * 0.15));
}

Perceptual Color Spaces: OKLCH and CAM16 vs. Cylindrical HSL

Standard digital color manipulation traditionally relies on the Hue, Saturation, Lightness (HSL) cylinder created in the 1970s for early computer graphics. While computationally trivial, HSL possesses severe perceptual distortions:

  • Non-Uniform Luminance: In HSL, pure yellow (#ffff00) and pure blue (#0000ff) both have $L = 50\%$. Yet yellow reflects over ten times more visible light to the human eye ($Y = 0.9278$) than blue ($Y = 0.0722$). Generating tints in raw HSL produces drastically uneven perceived brightness steps across different hues.
  • The Bezold-Brücke Hue Shift: As luminance increases, the human visual system perceives changes in hue even when spectral wavelength remains static. Saturated blues appear to drift toward purple or magenta as they are lightened toward white.
  • The OKLCH Advantage: Modern CSS Color Module Level 4 introduces OKLCH (Lightness, Chroma, Hue) based on Björn Ottosson's CAM16 perceptual color model. By modeling the non-linear response of human retinal cones, OKLCH ensures that a step from $L = 70$ to $L = 80$ delivers an identical increment in perceived brightness regardless of whether the hue is emerald green, royal violet, or amber gold.

Design Token Hierarchy: Primitives vs. Semantic Tokens

In mature enterprise design systems (such as GitHub Primer, Shopify Polaris, or Atlassian Design), color scales are structured into a three-tier token hierarchy:

  1. Tier 1: Global Primitives (Scale 50 to 950): Raw color definitions that describe mathematical steps without UI context (e.g., color.indigo.500 = #4f46e5). These tokens are generated directly by this tool.
  2. Tier 2: Semantic Intent Tokens: Functional abstractions that describe interface role rather than chromatic identity (e.g., color.action.primary.default = {color.indigo.500}, color.action.primary.hover = {color.indigo.600}).
  3. Tier 3: Component-Scoped Tokens: Granular variables bound to specific UI components (e.g., button.primary.background = {color.action.primary.default}).

By anchoring semantic tokens to an 11-step primitive scale, engineering teams can rebrand entire multi-platform enterprise suites simply by updating the Tier 1 scale inputs generated by 2ClickKit.

Accessible Tonal Swatch Pairing Rules

When utilizing an 11-step scale, designers can establish mathematical rules for contrast compliance that eliminate manual checking for everyday UI components:

  • The 600-Step Difference Rule: In an 11-step perceptually uniform scale, pairing any two steps separated by at least 600 units (e.g. step 100 text on a step 700 background, or step 800 text on a step 200 background) is mathematically guaranteed to meet or exceed the WCAG AA 4.5:1 contrast ratio for standard body text.
  • The 400-Step Large Text & UI Rule: Any two steps separated by at least 400 units (e.g. step 200 borders on a step 600 card, or step 700 bold headlines on a step 300 surface) reliably achieve the 3.0:1 contrast ratio required for large text and non-text interactive controls under WCAG 2.1 SC 1.4.11.
  • Dark Mode Scale Inversion: When constructing dark mode interfaces, do not perform crude color inversion. Instead, remap surface tokens symmetrically across the scale axis: step 50 backgrounds in light mode map to step 950 surfaces in dark mode; step 100 card fills map to step 900; and step 900 primary text maps to step 100.

Multi-Format Code Export Standards

A color scale is only useful if it integrates frictionlessly into engineering pipelines. The generator provides four standard export targets:

  • Tailwind CSS tailwind.config.js: Drops into your theme.extend.colors object for instant utility class generation.
  • W3C Design Tokens Community Group (DTCG) JSON: Adheres to the official W3C token schema with $value and $type: "color" attributes for automated Figma-to-code pipelines.
  • CSS Custom Properties (Variables): Generates --color-brand-50 through --color-brand-950 for modern vanilla CSS or CSS Modules.
  • SCSS Color Map: Formatted as a keyed Sass map for legacy Sass/SCSS build systems.

Figma Variables and Automated Style Dictionary Syncing

Bridging the gap between Figma design files and production codebases has traditionally been a source of design drift. With modern design systems, teams automate token synchronization using Amazon's open-source Style Dictionary engine:

// Style Dictionary Build Configuration
module.exports = {
  source: ['tokens/**/*.json'],
  platforms: {
    css: {
      transformGroup: 'css',
      buildPath: 'build/css/',
      files: [{ destination: '_variables.css', format: 'css/variables' }]
    },
    tailwind: {
      transformGroup: 'js',
      buildPath: 'build/tailwind/',
      files: [{ destination: 'colors.js', format: 'javascript/module' }]
    }
  }
};

By exporting the W3C Design Tokens JSON from 2ClickKit, design engineers can feed the generated JSON directly into Style Dictionary. A single command automatically compiles matching tokens for iOS (Swift), Android (XML / Compose), Web (CSS variables), and Tailwind configs, guaranteeing 100% token parity across cross-functional engineering teams.

Tonal Palettes in Design Tokens Community Group (DTCG) Standards

The W3C Design Tokens Community Group specification defines standardized metadata containers for cross-tool interoperability. When design tokens include explicit $type: "color" and $description properties, tooling like Storybook, Figma Token Studio, and VS Code design token extensions can provide inline color swatches, autocomplete suggestions, and automated linting directly within your code editor.

This eliminates human error, prevents developers from hardcoding arbitrary hex values in component styling, and guarantees that every UI element remains bound to an audited, accessible design token scale.

Client-Side Privacy Architecture

Brand identity assets, confidential styling tokens, and proprietary color specifications remain strictly secure under our 100% in-browser processing architecture:

  • Zero Remote Transmission: Color conversions, contrast audits, and code generation take place exclusively inside your local browser memory using native JavaScript math functions.
  • Zero Server Ingestion: Not a single hex code or design token is uploaded to external analytics, telemetries, or remote storage endpoints.
  • Instant Client Rendering: Tonal scales update with sub-millisecond response times across all desktop, tablet, and mobile browsers.

How to Use Color Shades & Tint Generator

  1. Select Base Brand Color

    Input any hex code or pick a starter preset (like Indigo Core, Emerald, or Sky). This serves as your 500-level baseline design token.

  2. Compute 11-Step Tonal Scale

    The tool applies perceptual lightness curves and saturation compensation across 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, and 950.

  3. Audit Contrast & Accessibility

    Inspect real-time WCAG relative contrast ratios against white and black backgrounds to ensure accessible typography pairing across every step.

  4. Export Multi-Format Design Tokens

    Export production-ready Tailwind CSS configurations, CSS custom properties, SCSS maps, or W3C Design Tokens Community Group JSON.

Primary Brand Scale Generation

Base Brand Color (Step 500)
Indigo Core (#4f46e5)
Complete 11-Step Tonal Palette
50 (#eef2ff), 100 (#e0e7fe), 500 (#4f46e5), 900 (#1e1b4b), 950 (#0f0c29)

Ready for tailwind.config.js and Figma design token synchronization.

Technical Specifications

  • Supported Inputs: Hex Color (#RRGGBB), Tailwind CSS Config, W3C Design Tokens JSON, CSS Variables
  • Input Limit: Instantaneous In-Browser Execution
  • Processing Engine: Client-Side Non-Linear Perceptual Lightness & Saturation Curve Mapping
  • Content Uploads: None (Your files and text are processed locally on your device with zero uploads)

Privacy & Security Guarantee

Your Brand identity tokens, design system palettes, and accessible UI color scales are processed entirely in your web browser's memory using native client-side web technologies. Unlike traditional cloud tools, your content is never uploaded to remote servers, stored on external disks, or analyzed by third parties.

2ClickKit In-Browser vs Traditional Cloud Tools

Feature 2ClickKit (In-Browser) Traditional Cloud Services
Data Privacy Files never leave your local device Uploaded to remote servers and third-party clouds
Processing Speed Instant local execution (0ms upload time) Constrained by internet upload & server processing queues
Account & Costs 100% Free with zero registration or paywalls Tiered subscriptions, limits, or forced sign-ups

Best Practices & Tips

  • Use steps 50 and 100 for subtle card backgrounds, alternating table rows, and hover state washes.
  • Assign steps 200 and 300 to light-mode borders, dividers, and input outlines to maintain elegant visual hierarchy.
  • Reserve step 500 as your primary call-to-action button color, and step 600 for its hover or active state.
  • Check the WCAG score on step 700 or 800 when choosing typography colors on light surfaces to ensure 100% legal accessibility.

Frequently Asked Questions

What is an 11-step color scale in design systems?

Standardized by modern UI frameworks like Tailwind CSS, Radix Colors, and Ant Design, an 11-step color scale spans from step 50 (lightest pastel tint) through 500 (core brand anchor) to 950 (deepest dark shade). This gives developers predictable token steps for surface backgrounds (50-100), borders (200-300), disabled states (400), primary actions (500-600), and dark-mode high-contrast typography (800-950).

Why does naive linear lightness interpolation produce muddy or chalky colors?

Simply mixing a base color linearly with pure white or pure black ignores human color perception. Tints (lighter colors) tend to look fluorescent or chalky if saturation is kept static, while shades (darker colors) appear flat and muddy if chroma collapses. Our algorithm applies non-linear perceptual saturation curves that taper saturation in high tints and preserve richness in deep shades.

How do WCAG contrast audits work for each step?

Each color step card computes its CIE 1931 relative luminance and calculates exact mathematical contrast ratios against pure white (#ffffff) and pure black (#000000). A contrast of at least 4.5:1 indicates full WCAG AA compliance for normal text, while 7.0:1 denotes AAA compliance.

Can I import this color scale directly into tailwind.config.js?

Yes. The Tailwind Config tab generates a clean theme.extend.colors object ready to paste into your tailwind.config.js. You can then immediately use utility classes like bg-primary-50, text-primary-900, or border-primary-200 throughout your frontend markup.

What is the W3C Design Tokens Community Group (DTCG) JSON format?

The DTCG specification is an open industry standard for exchanging design tokens between Figma, Style Dictionary, and engineering codebases. It defines tokens using structured JSON with $value, $type, and $description properties, enabling automated cross-platform design token syncing.

Are my proprietary corporate brand colors sent to external servers?

Never. 2ClickKit executes 100% of its colorimetric calculations, HSL conversions, and token serializations inside your local device RAM. Your brand colors remain completely private.

How can I copy individual hex values quickly?

Click directly on any of the 11 color swatch cards in the preview matrix. The corresponding hexadecimal string (e.g. #4f46e5) is copied to your clipboard instantly with visual confirmation.