About

A ratio is a floor, not a taste

Last updated 21 November 2026

A contrast ratio says one thing well: how far apart two colours sit in luminance, on a scale anyone can reproduce. It does not say whether the pair looks good, and it was never meant to.

What the number measures

WCAG defines relative luminance from the red, green and blue channels after a gamma step, weighting green at 0.7152, red at 0.2126 and blue at 0.0722. The ratio is then (lighter + 0.05) / (darker + 0.05), so 1:1 is two identical colours and 21:1 is black on white. Hue never enters the calculation. A saturated pink and a grey with the same luminance score the same, which is why the number can be trusted and also why it cannot finish the judgement alone.

The practical value is that it is objective. Any tool that follows WCAG 2.2 returns the same figure for the same pair, so a number can be written into a ticket, a design review or a procurement document and mean the same thing to everyone who reads it.

Where the fix comes from

The fix works in OKLCH, a perceptual colour space with lightness, chroma and hue kept apart. The hue and the chroma of your colour are fixed, lightness is stepped up or down in small increments, and the search stops at the first step that meets the target. Both directions are measured and the shorter one wins, so a colour that only needed to be a little lighter is not made much darker instead.

That is a deliberate limit. Jumping straight to black passes every check and destroys the palette. Keeping the hue means the fixed colour is still recognisably the one you chose, and if it no longer is, the more honest conclusion is that the pair was wrong rather than the colour.

Why APCA sits beside WCAG

APCA, the candidate method behind WCAG 3, models perceived contrast rather than a fixed ratio. It returns an Lc score whose sign tells you which way round the pair is: dark text on a light background is positive, the reverse is negative. Near the middle of the range the two directions are not symmetric, and a single ratio cannot express that. The page shows both because they answer different questions, and because an auditor and a reader are not always looking for the same thing.

Why the palette is a matrix

A design system is not one pair. It is a set of colours that will be combined, eventually, in ways nobody planned. Measuring every colour on every other colour finds the combination that the eye slides past: a muted caption on a tinted card, a disabled label on a raised surface. The four simulations then ask the same matrix under protanopia, deuteranopia, tritanopia and achromatopsia, because a pair that only works for one kind of colour vision is not finished.

What it leaves to you

Who made it

Pikkola Lab builds small tools that keep the work in the browser. This is tool No. 55. Write to [email protected] with a pair that measured well and still read badly, and say what was on the screen around it.

Back to the studio

소개

비율은 바닥선이지 취향이 아닙니다

최종 수정 2026년 11월 21일

명암비는 한 가지를 잘 말합니다. 두 색이 밝기에서 얼마나 떨어져 있는지를, 누구나 다시 계산할 수 있는 눈금으로 말합니다. 그 조합이 예쁜지는 말하지 않고, 처음부터 그럴 생각도 없었습니다.

숫자가 재는 것

WCAG는 감마 단계를 거친 빨강, 초록, 파랑에 초록 0.7152, 빨강 0.2126, 파랑 0.0722의 몫을 주어 상대 휘도를 정합니다. 비율은 (밝은 쪽 + 0.05) / (어두운 쪽 + 0.05)이라, 1:1은 같은 두 색이고 21:1은 흰 바탕의 검정입니다. 색상은 계산에 들어가지 않습니다. 휘도가 같은 선명한 분홍과 회색은 같은 점수를 받습니다. 숫자를 믿을 수 있는 이유이자, 숫자만으로 판단을 끝낼 수 없는 이유입니다.

실용적인 값어치는 객관성에 있습니다. WCAG 2.2를 따르는 도구는 같은 조합에 같은 값을 돌려주니, 그 숫자를 티켓에 적든 리뷰에 적든 조달 문서에 적든 읽는 사람 모두에게 같은 뜻이 됩니다.

보정이 나오는 곳

보정은 밝기와 채도, 색상을 따로 두는 지각 색 공간 OKLCH에서 일합니다. 색상과 채도는 고정하고 밝기만 작은 간격으로 올리거나 내리며, 목표를 넘는 첫 지점에서 멈춥니다. 양쪽을 다 재서 더 짧은 쪽을 택하므로, 조금 밝아지기만 하면 되는 색을 훨씬 어둡게 만들지 않습니다.

일부러 둔 한계입니다. 검정으로 건너뛰면 모든 검사를 통과하고 팔레트는 망가집니다. 색상을 지키면 고친 색이 고른 색으로 남고, 만약 더 이상 그 색이 아니라면 고칠 것은 색이 아니라 조합이었다고 말하는 편이 정직합니다.

WCAG 옆에 APCA가 있는 이유

WCAG 3의 후보 방법인 APCA는 고정 비율이 아니라 지각되는 대비를 모델링합니다. 0에서 106 사이의 Lc를 돌려주고, 부호가 어느 쪽 조합인지를 알려 줍니다. 밝은 바탕의 어두운 글자는 양수, 반대는 음수입니다. 범위의 가운데쯤에서는 두 방향이 대칭이 아니고, 비율 하나로는 그 차이를 담을 수 없습니다. 이 페이지가 둘을 함께 보여 주는 것은 서로 다른 질문에 답하기 때문이고, 심사하는 사람과 읽는 사람이 늘 같은 것을 찾지는 않기 때문입니다.

팔레트를 표로 보는 이유

디자인 시스템은 한 쌍이 아닙니다. 결국 아무도 계획하지 않은 방식으로 섞일 색의 묶음입니다. 모든 색을 모든 색 위에 재 보면 눈이 그냥 지나치는 조합이 드러납니다. 색이 들어간 카드 위의 흐린 캡션, 떠 있는 면 위의 비활성 라벨처럼요. 네 가지 시뮬레이션은 같은 표를 적색맹, 녹색맹, 청황색맹, 전색맹에서 다시 묻습니다. 한 가지 색각에서만 통하는 조합은 아직 끝난 조합이 아니기 때문입니다.

남겨 두는 일

만든 곳

피콜라 랩은 일을 브라우저 안에 두는 작은 도구를 만듭니다. 이것은 55호기입니다. 재는 값은 좋은데 읽기는 나쁜 조합과, 그 주변 화면에 무엇이 있었는지를 [email protected]으로 보내 주세요.

스튜디오로 돌아가기

概要

比は下限で、好みではありません

最終更新 2026年11月21日

コントラスト比は一つのことをよく語ります。二色が明るさでどれだけ離れているかを、誰でも再現できる目盛りで示します。その組が美しいかは語らず、最初からそのつもりもありませんでした。

数字が測るもの

WCAG はガンマ処理のあとの赤、緑、青に、緑 0.7152、赤 0.2126、青 0.0722 の重みを与えて相対輝度を定めます。比は (明るい側 + 0.05) / (暗い側 + 0.05) で、1:1 は同じ二色、21:1 は白地の黒です。色相は計算に入りません。輝度が同じ鮮やかなピンクと灰色は同じ点になります。数字を信じられる理由であり、数字だけで判断を終えられない理由です。

実用的な価値は客観性にあります。WCAG 2.2 に従う道具は同じ組に同じ値を返すので、その数字をチケットにもレビューにも調達文書にも書けて、読む人すべてに同じ意味になります。

補正がどこから来るか

補正は明度、彩度、色相を分けて持つ知覚的な色空間 OKLCH で働きます。色相と彩度は固定し、明度だけを小さな刻みで上げ下げし、目標を超える最初の位置で止まります。両方向を測って短いほうを選ぶので、少し明るくなれば足りる色をずっと暗くすることはありません。

意図した限界です。黒へ飛べばすべての検査に通り、パレットは壊れます。色相を保てば直した色は選んだ色のままで、もしもうその色でないなら、直すべきは色ではなく組だったと述べるほうが正直です。

WCAG の隣に APCA がある理由

WCAG 3 の候補である APCA は、固定の比ではなく知覚されるコントラストをモデル化します。0 から 106 の Lc を返し、符号がどちらの向きの組かを示します。明るい地の暗い文字は正、逆は負です。範囲の中央あたりでは二つの向きは対称でなく、比一つではその差を表せません。このページが両方を見せるのは、違う問いに答えるからで、審査する人と読む人がいつも同じものを探しているわけではないからです。

パレットを表で見る理由

デザインシステムは一組ではありません。結局は誰も計画しなかった組み合わせで混ざる色の集まりです。すべての色をすべての色の上で測ると、目が通り過ぎる組が見えます。色の付いたカードの上の淡い注記、浮いた面の上の無効ラベルのように。四つのシミュレーションは同じ表を 1 型、2 型、3 型色覚と全色覚異常でもう一度問います。一つの色覚でしか通らない組は、まだ終わっていないからです。

残していること

作ったところ

Pikkola Lab は仕事をブラウザの中に置く小さな道具を作っています。これは 55号機です。測ると良いのに読みにくい組と、そのまわりに何があったかを [email protected] まで送ってください。

スタジオに戻る