color-oklch
하는 일
이 스킬은 사람이 인식하는 밝기와 맞는 oklch 색 공간으로 색을 정의하는 방법을 설명합니다. 디자인 시스템이나 접근성 있는 팔레트를 만드는 디자이너와 개발자를 위한 스킬입니다.
사용하는 경우
- ✓밝은 색조와 어두운 색조가 있는 브랜드 색 세트를 만들 때.
- ✓호버 상태와 눌린 상태가 색마다 고르지 않게 보일 때.
- ✓인식되는 밝기를 유지하는 다크 모드 팔레트를 원할 때.
스킬 링크
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/color-oklch/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“디자인 시스템을 위해 파란색 계열을 oklch로 만들고, 10단계 음영을 고르게 나눠 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 색 토큰을 oklch로 변환하고, 각 음영 단계마다 색조와 관계없이 밝기 값을 일정하게 유지하며, 넓은 색 범위는 지원하는 화면에만 제공할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Use oklch() and oklab() for perceptually uniform colour palettes
HSL and hex colours are defined in the sRGB colour space, which is not perceptually uniform — a 10 % lightness change looks dramatically different depending on the hue. This makes creating accessible, harmonious palettes by hand extremely difficult. oklch corrects this: adjusting the L channel produces the same perceived brightness change regardless of hue or chroma, making it far easier to build accessible colour ramps, dark-mode palettes, and consistent hover/active states.
Quick Reference
- oklch(L C H) — Lightness, Chroma, Hue — is the most practical perceptually uniform colour space for design systems
- Equal lightness steps in oklch look equal to the human eye; equal steps in hsl do not
- Define your colour palette tokens in oklch custom properties
- Use @media (color-gamut: p3) to serve wide-gamut colours to capable displays
Check
Check whether the CSS colour tokens use oklch() or a perceptually uniform colour space, or whether they use hsl/hex which may produce inconsistent perceived lightness across hues.
Fix
Convert the colour token palette from hsl/hex to oklch, ensuring the lightness (L) axis is consistent across all hues in the same shade step.
Explain
Explain what perceptual uniformity means in colour spaces, why oklch is better than hsl for design systems, and how the L, C, H channels map to human colour perception.
Code Review
Review CSS custom properties for colour tokens. Flag palette definitions in hsl or hex that use hardcoded values without a systematic lightness ramp, especially if they are intended to be interchangeable shade steps.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/css/color-oklch
자주 묻는 질문
hsl로는 왜 부족한가요?
hsl은 지각적으로 균일하지 않아서, 같은 10% 밝기 변화도 색조에 따라 매우 다르게 보일 수 있다고 스킬은 설명합니다.
L, C, H는 무엇을 뜻하나요?
oklch 색의 세 부분인 밝기(Lightness), 채도(Chroma), 색조(Hue)입니다.
넓은 색 범위를 일부 화면에만 제공할 수 있나요?
네. 스킬은 넓은 색 영역을 지원하는 디스플레이에만 제공하기 위해 color-gamut 미디어 쿼리를 언급합니다.
상세 정보
작성자의 원본 설명
Use when building a design token system, creating accessible colour palettes, generating colour ramps programmatically, or migrating a design system to support wide-gamut displays.
인기도
- GitHub 스타
- 75k
- 순위
- #2776
- 라이선스
- MIT
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
frontendchecklist
75k명령줄 도구를 사용해 380개가 넘는 규칙으로 프런트엔드 코드와 실시간 페이지를 접근성, 속도, SEO, 보안 측면에서 점검합니다.
frontend-checklist-global
75kFront-End Checklist의 386개 규칙 전체로 프런트엔드 프로젝트를 감사하고, 발견한 문제마다 구체적인 해결 방법을 제시합니다.
404-page
75k없는 페이지 화면에 도움이 되는 링크가 있고 실제 404 상태 코드를 반환하는지 확인해, 길을 잃은 방문자를 돕습니다.
about-page
75k사이트를 운영하는 사람을 설명하는 명확한 소개 페이지가 있는지 검토해, 방문자와 검색 엔진의 신뢰를 높입니다.
비슷한 스킬
canvas
394k에이전트가 연결된 Mac 패널에 호스팅된 시각적 위젯을 띄우고, 패널을 숨기거나 다른 페이지로 옮기도록 돕습니다.
control-ui
394k에이전트가 세션, 대시보드, 연결된 Gateway를 포함해 OpenClaw Control UI를 정리하고 문제를 해결하도록 돕습니다.
diagram-maker
394k에이전트가 프로세스, 시스템 구조, 화이트보드 스케치를 위해 SVG, HTML, 편집 가능한 Excalidraw 파일로 명확한 다이어그램을 만들도록 돕습니다.