
Color Palette
Generate accessible 11-shade colour palettes from one brand hex, with semantic tokens and WCAG contrast checks.
- skills.sh installs
- 3.4K
- GitHub stars
- 1.1K
- last updated
- Aug 21, 2026
What it does
- Covers the full pipeline: hex-to-HSL conversion, an 11-shade scale (50-950), light and dark semantic tokens, and Tailwind v4 CSS output
- Includes lightness and saturation tables per shade, plus JavaScript helpers for hex, HSL, luminance, and contrast ratio calculations
- Enforces a foreground pair for every background token so dark mode does not break when colours are swapped
- Designed for requests that supply a brand hex and ask for a palette, a design system setup, or contrast and accessibility checks
Install
$ npx -y skills add jezweb/claude-skills --skill color-palette -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Colour Palette Generator
Generate a complete, accessible colour system from a single brand hex. Produces Tailwind v4 CSS ready to paste into your project.
Workflow
Step 1: Get the Brand Hex
Ask for the primary brand colour. A single hex like #0D9488 is enough.
Step 2: Generate 11-Shade Scale
Convert hex to HSL, then generate shades by varying lightness while keeping hue constant.
Hex to HSL Conversion
function hexToHSL(hex) {
hex = hex.replace(/^#/, '');
const r = parseInt(hex.substring(0, 2), 16) / 255;
const g = parseInt(hex.substring(2, 4), 16) / 255;
const b = parseInt(hex.substring(4, 6), 16) / 255;
const max = Math.max(r, g, b);
const min = Math.min(r, g, b);
const diff = max - min;
let l = (max + min) / 2;
let s = 0;
if (diff !== 0) {
s = l > 0.5 ? diff / (2 - max - min) : diff / (max + min);
}
let h = 0;
if (diff !== 0) {
if (max === r) h = ((g - b) / diff + (g < b ? 6 : 0)) / 6;
else if (max === g) h = ((b - r) / diff + 2) / 6;
else h = ((r - g) / diff + 4) / 6;
}
return { h: Math.round(h * 360), s: Math.round(s * 100), l: Math.round(l * 100) };
}
Details
- Repository
- github.com/jezweb/claude-skills
- Categories
- Design & UI/UX, Frontend & UI Code
More from jezweb/claude-skills
All 64- Tailwind Theme Builder3.3K
- Ux Audit3.1K
- Wordpress Elementor3.1K
- Image Processing2.5K
- Favicon Gen2.3K
- Tanstack Start2.2K
- Google Apps Script2.1K
- Icon Set Generator2K
- Seo Local Business1.9K
- Responsiveness Check1.9K
- Vitest1.8K
- Wordpress Content1.7K
- D1 Drizzle Schema1.7K
- Elevenlabs Agents1.7K
- Project Health1.6K
- Wordpress Setup1.6K
- Hono Api Scaffolder1.6K
- Landing Page1.5K
- Design Review1.5K
- Mcp Builder1.4K
- Social Media Posts1.4K
- Ai Image Generator1.4K
- Cloudflare Worker Builder1.4K
- Shopify Products1.4K
Similar to Color Palette
More Design & UI/UX
color-systemowl-listener/designer-skills2.9K installsStructured color system from brand, neutral, semantic, and extended palettes with WCAG contrast checks.
oklch-skilljakubkrehel/oklch-skill5.1K installsPerceptually uniform OKLCH color workflow for converting, palettes, contrast, gamut, and Tailwind v4.
color-expertmeodai/skill.color-expert3K installsColor-expert knowledge base covering palettes, ramps, gradients, conversions, accessibility, and color theory across design and generative art.
design-tokensdylanfeltus/skills193 installsGenerate type scales, palettes, spacing systems, and WCAG contrast checks for a design system.
ui-design-systemborghei/claude-skills209 installsGenerates design tokens from a brand colour, checks WCAG contrast, and specs components on them.
better-colorsjakubkrehel/skills40.8K installsA color system skill that builds palettes, names semantic tokens, converts formats, and measures rendered contrast pairs.