←Leaderboard/Design/oklch-skill
Last commit on April 6, 2026·Created on March 31, 2026

jakubkrehel/oklch-skill

“Brings perceptual color to CSS projects where every hue stays stable.”
Combined rank
#679
across all skills
In Design
#68
category rank
Stars
256
+2.4% in last 7d
Forks
9
0.0% in last 7d
Watchers
0
0 watchers in last 7d
Traction scoreGitHub stars can be faked, so popularity alone can be misleading. Traction Score looks for broader signs of recent attention, adoption, and active maintenance.
TL;DR

This skill works with the OKLCH color space, a perceptually uniform model where lightness and chroma behave predictably across hues. It converts hex, rgb, and hsl to oklch, generates consistent palettes and dark mode scales, checks APCA and WCAG contrast with lightness-based fixes, handles gamut clamping for sRGB and P3, and integrates with Tailwind v4's @theme. It helps web developers and designers build color systems that avoid hue drift, failing contrast, and broken fallbacks.

WHO IT'S FOR
Front-end developers / UI engineers
converting hex/rgb/hsl to oklch
UI/UX designers
designing oklch color systems and dark palettes
Accessibility specialists
fixing contrast with APCA and WCAG
Design system / Tailwind CSS engineers
migrating Tailwind tokens to oklch
Repository contents

1 skill file

Compatible AgentsThe repository documents support for these agents. The skills may also work with other agents that can load SKILL.md files, but they may need some setup or small changes.

Use this skill

Follow the documented setup, then try a first task.

Install the oklch-skill bundle with npx

Installs: Complete jakubkrehel/oklch-skill bundle

  1. Run this command in a terminal:

    npx skills add jakubkrehel/oklch-skill
README.md ↗ · Checked Sep 29, 2026skills/oklch-skill/SKILL.md ↗ · Checked Sep 29, 2026

Give it something to do.

Suggested first task

Convert project colors to OKLCH

Uses oklch-skill

  • A CSS file path or pasted list of hex, RGB, or HSL colors
Use the oklch-skill to convert the hex, RGB, or HSL colors in [CSS file or pasted color list] to OKLCH. Return a markdown table with Before and After columns, including every color you change.
skills/oklch-skill/SKILL.md ↗ · Checked Sep 29, 2026
Suggested first task

Generate a small OKLCH palette

Uses oklch-skill

  • A base color in hex, RGB, HSL, or OKLCH
Use the oklch-skill to generate a small OKLCH palette from [base color], including a light-to-dark scale and corresponding dark-mode colors. Keep the hue stable and account for displayable gamut boundaries.
skills/oklch-skill/SKILL.md ↗ · Checked Sep 29, 2026
Suggested first task

Check one color pair for contrast

Uses oklch-skill

  • Foreground color
  • Background color
Use the oklch-skill to check the contrast between foreground [color] and background [color] using APCA and WCAG 2 thresholds. If it fails, suggest the smallest lightness-only adjustment and show the change in a markdown table with Before and After columns.
skills/oklch-skill/SKILL.md ↗ · Checked Sep 29, 2026