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

color-contrast

하는 일

이 스킬은 텍스트, 테두리, 아이콘, 포커스 표시기의 색 대비를 WCAG 최소 기준과 비교해 확인합니다. 더 많은 사람이 읽을 수 있는 콘텐츠를 원하는 디자이너와 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓페이지나 브랜드의 텍스트 색과 배경 색을 고를 때.
  • ✓텍스트가 흰 배경의 연한 회색이거나 사진 위에 놓여 있을 때.
  • ✓버튼, 입력란 테두리, 포커스 윤곽선이 충분히 보이는지 확인할 때.

스킬 링크

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

AI에게 요청하는 예시

“브랜드 색이 본문 텍스트와 버튼의 대비 기준을 충족하는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 각 텍스트나 인터페이스 색과 배경 사이의 대비 비율을 측정하고, 글자 크기에 맞는 최소 기준과 비교한 뒤, 필요하면 더 어둡거나 밝은 색을 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Meet minimum color contrast ratios

Approximately 1 in 12 men and 1 in 200 women have some form of color vision deficiency. Low contrast text is also difficult for users with low vision, aging eyesight, or those reading in bright sunlight. Insufficient contrast is one of the most common WCAG failures and directly prevents users from reading content they need.

Quick Reference

  • Normal text (< 18pt or < 14pt bold): minimum contrast ratio of 4.5:1 — WCAG 2.1 SC 1.4.3 Level AA
  • Large text (≥ 18pt / 24px, or ≥ 14pt bold / ~18.67px bold): minimum 3:1 contrast ratio
  • Non-text UI components (icons, focus indicators, input borders): minimum 3:1 against adjacent color — WCAG 2.1 SC 1.4.11 Level AA
  • WCAG 2.1 SC 1.4.6 (Level AAA) requires 7:1 for normal text and 4.5:1 for large text
  • Decorative text and logotypes are exempt from contrast requirements

Check

Evaluate the contrast ratio between text color and its background for all text on the page. Use the WCAG relative luminance formula: for normal text (< 18pt or < 14pt bold), the ratio must be ≥ 4.5:1; for large text (≥ 18pt or ≥ 14pt bold), the ratio must be ≥ 3:1. Also check non-text UI components (input borders, button outlines, icons) for ≥ 3:1 ratio against adjacent colors per WCAG 2.1 SC 1.4.11. Check all interactive states: default, hover, focus, active, and visited.

Fix

Darken the foreground color or lighten/darken the background color until the ratio meets the minimum. For normal text failing 4.5:1: increase text darkness or background lightness. For large text failing 3:1: apply same approach with a lower threshold. Use a contrast checker tool (WebAIM, browser DevTools accessibility panel) to verify the exact ratio. Do not use opacity to lighten text — compute the effective blended color and check that ratio instead.

Explain

WCAG 2.1 SC 1.4.3 (Contrast Minimum, Level AA) requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (≥ 18pt regular or ≥ 14pt bold). Contrast ratio is calculated from the relative luminance of the foreground and background colors using the formula (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter and L2 is the darker color. A ratio of 1:1 means no contrast (same color); 21:1 is maximum (black on white). Users with low vision, cataracts, or color blindness rely on high contrast to distinguish text from its background.

Code Review

Review the rendered markup and interactive states that affect Meet minimum color contrast ratios. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/accessibility/color-contrast

자주 묻는 질문

일반 텍스트에는 얼마나 대비가 필요한가요?

일반 텍스트는 최소 4.5 대 1, 큰 텍스트는 3 대 1이 필요하다고 스킬은 설명합니다.

장식용 요소에도 대비가 필요한가요?

아니요. 스킬은 장식용 텍스트와 로고는 예외라고 설명합니다.

호버와 포커스 상태도 확인하나요?

네. 스킬은 호버, 포커스, 활성 상태를 포함한 모든 상호작용 상태를 확인하라고 말합니다.

상세 정보

작성자의 원본 설명

Use when applies to all visible text and text images, UI component borders (input fields, buttons), focus indicators, icons that convey meaning, and graphical objects required to understand content. Does not apply to inactive/disabled UI components or purely decorative elements.

repo: thedaviddias/Front-End-Checklist

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬