색상·대비 검사
색상을 HEX, RGB, HSL, OKLCH 사이에서 변환하고, 밝은 배경과 어두운 배경에 대한 WCAG 2.1 대비를 확인합니다.
브라우저 안에서만 실행됩니다. 입력한 내용은 어디에도 업로드되지 않습니다.
일반 텍스트는 4.5 : 1(AA) 또는 7 : 1(AAA)이 필요합니다. 큰 텍스트와 UI 테두리는 3 : 1입니다.
:root {
--color-brand: #3B82F6;
--color-brand-rgb: 59 130 246;
--color-brand-hsl: hsl(217, 91%, 60%);
--color-brand-oklch: oklch(62.3% 0.188 259.8);
}@theme {
--color-brand: #3B82F6;
}
text-brand bg-brand border-brand
text-[#3B82F6] bg-[#3B82F6]WCAG 대비 참고
빠른 참조- 4.5 : 1
- AA 기준 일반 본문 텍스트의 최소 비율입니다. 24px 일반 또는 18.66px 굵은 글씨까지 적용됩니다.
- 3 : 1
- 큰 텍스트와 UI 컴포넌트 테두리·아이콘의 AA 최소 비율입니다.
- 7 : 1
- 모든 크기의 텍스트에 대한 AAA 기준입니다. 큰 텍스트는 4.5 : 1로 AAA입니다.
- (L1 + 0.05) / (L2 + 0.05)
- 대비 계산식입니다. L은 감마 보정을 거친 상대 휘도입니다.
- #RRGGBBAA
- 8자리 16진수는 알파 채널을 더합니다. CSS rgb()는 0-255 값과 0-1 알파를 씁니다.
- OKLCH
- 지각적으로 균일한 밝기와 채도라 같은 간격이 같게 보이고 색상이 대비를 유지합니다.
React 관련 문법 가이드
React 가이드 전체React 19 Ref Cleanup Functions and forwardRef Deprecation
ref is a normal prop now and a ref callback may return a cleanup function, which breaks every implicit-return callback. Migration steps and the leak it fixes.
ReactReact 19 Hydration Mismatch: Error 418 and 421 Root Causes
React discards the server HTML as soon as the first client render differs. The deterministic-value fixes for #418, the attribute mismatch behind #421, and how to read the diff.
ReactReact Maximum Update Depth Exceeded: Finding the Update Loop
Fifty nested updates and React gives up. The loop is always a new identity: an inline object in a dependency array, a setState in render, or a selector that returns a fresh array.
ReactReact Profiler API: Measuring Render Timings and Identifying Wasted Re-Renders
actualDuration versus baseDuration, phase names that tell you who triggered a commit, and how to ship the numbers without flooding a backend.