grep -i ./glossary

Glossary of this post

15 terms from the post “From 4.10 to 7.18: how the contrast between text and background is calculated”. Every term has a permanent address, and you can pin terms for review and export them.

Back to the post

  1. WCAG

    International guidelines for the accessibility of Web content

    Full explanation The initials of Web Content Accessibility Guidelines. The guidelines are published by W3C. The contrast ratio formula and the thresholds 4.5, 3 and 7 are written in them, so any tool that implements the formula should arrive at the same number.

    Why remember it The source of the formula and of the thresholds

    #wcag
  2. W3C

    The organization that publishes the Web standards, including WCAG

    Why remember it Who stands behind the standard

    Where it appears in the post

    #w3c
  3. Contrast Ratio

    A number between 1 and 21 that compares the lightness of two colors

    Full explanation Divide the relative luminance of the lighter color, plus 0.05, by the relative luminance of the darker color, plus 0.05. The result is a number between 1, two identical colors, and 21, black on white. A single color has no contrast ratio: you always check a pair, text and background.

    Why remember it The number the checking tool displays

    #contrast-ratio
  4. Relative Luminance

    A number between 0 and 1 that describes the lightness of a single color

    Full explanation 0 is black and 1 is white. Each channel of the color is converted to a number between 0 and 1, and the three channels are weighted: 0.2126 for red, 0.7152 for green and 0.0722 for blue. Full red comes out at only 0.2126, so in the calculation it is darker than it looks.

    Why remember it The raw material of the contrast ratio

    #relative-luminance
  5. RGB

    The three channels that make up a color on a screen: red, green and blue

    Why remember it Each channel contributes to lightness with a different weight

    Where it appears in the post

    #rgb
  6. Hex Color

    A color code like `#FF8A80`: two digits for each channel

    Why remember it Where the calculation starts

    Where it appears in the post

    #hex-color
  7. sRGB

    The standard that defines the color space of screens

    Why remember it The source of the lightness formula

    Where it appears in the post

    #srgb
  8. Gamma

    The non-linear relationship between the value in the color code and the light the screen produces

    Full explanation The value in the color code is not the amount of light the screen produces, and the relationship between the two is not a straight line. The relative luminance formula corrects this before the weighting: after the conversion the value 128 equals 0.2159, about a fifth, not a half.

    Why remember it The reason 128 is not “half as light”

    #gamma
  9. Success Criterion

    A single requirement in the standard, which can be checked for whether it is met

    Why remember it Each threshold has a criterion of its own

    #success-criterion
  10. Large Text

    Text of at least 18 points, or 14 points in bold

    Full explanation Text of at least 18 points, or of at least 14 points when it is bold: about 24 CSS pixels, or 18.5 pixels in bold. At Level AA a ratio of 3:1 is enough for it instead of 4.5:1.

    Why remember it A lower ratio is enough for it

    #large-text

Glossary term

Why remember it

Where it appears in the post

    Open in the glossary

    Saved in this browser only

    My pinned terms

    No pinned terms yet. You can pin a term from its explanation, or from the glossary page.

      Pinned terms on the glossary page

      Search and commands