Code Monkey home page Code Monkey logo

accessibility-visual-readability-color's Introduction

This is the link to the lesson

ACCESSIBILITY

Visual Readability: Color

Color plays a major role in a user’s ability to read the information located on a page. If colors lack sufficient contrast, they can become hard to distinguish from one another. Oftentimes, text can become lost in the background color, which prevents users, especially those with vision impairments, from reading it. The solution to this is to provide adequate contrast between foreground and background elements. To understand contrast, we must first understand where it comes from: the color wheel.

Two colors are contrasting when they are from different segments of the color wheel. Thus, the farther apart the segments, the higher the contrast between the two colors. The difference between the two colors is known as the contrast ratio and a minimum contrast ratio must be met in order to adhere to accessibility standards. The minimum contrast ratio denotes how high the contrast is between the text of certain sizes and width on a specific background. This ratio can range from 1:1, where both compared colors are the same, to 21:1, where the two colors are black and white.

i

According to the Web Content Accessibility Guidelines (WCAG), contrast ratios are classified using a 3-tier hierarchy:

  • Level A is the minimum level.

  • Level AA includes all Level A and AA requirements. Many organizations strive to meet Level AA.

  • Level AAA includes all Level A, AA, and AAA requirements.

    The recommended minimum contrast ratios between the background and its text using these standards are as follows:

  • 4.5:1 (AA criteria)—Text that is less than 24px (not bold) and 19px (bold).

  • 3:1 (AA criteria)—Text larger than 24px (not bold) and 19px (bold).

  • 7:1 (AAA criteria)—Text that is less than 24px (not bold) and 19px (bold).

  • 4.5:1 (AAA criteria)—Text larger than 24px (not bold) and 19px (bold).

    There are a variety of tools that can be used to determine contrast ratios. The Chrome Canary browser has a built-in contrast ratio display inside its developer tools. Another popular stand-alone tool is WebAIM.

memory jog /c/Users/glads/Documents/PROJECTS_AT_CODECADEMY/ACCESSIBILITY-Visual-Readability-Color

accessibility-visual-readability-color's People

Contributors

gladstone28 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.