본문으로 건너뛰기
Skillpedia
인터페이스 (UI/UX)75k · #2776

color-oklch

하는 일

이 스킬은 사람이 인식하는 밝기와 맞는 oklch 색 공간으로 색을 정의하는 방법을 설명합니다. 디자인 시스템이나 접근성 있는 팔레트를 만드는 디자이너와 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓밝은 색조와 어두운 색조가 있는 브랜드 색 세트를 만들 때.
  • ✓호버 상태와 눌린 상태가 색마다 고르지 않게 보일 때.
  • ✓인식되는 밝기를 유지하는 다크 모드 팔레트를 원할 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/color-oklch/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/color-oklch/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2776
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬