a11y-color-tokens VS SAPC-APCA

Compare a11y-color-tokens vs SAPC-APCA and see what are their differences.

SAPC-APCA

APCA (Accessible Perceptual Contrast Algorithm) is a new method for predicting contrast for use in emerging web standards (WCAG 3) for determining readability contrast. APCA is derived form the SAPC (S-LUV Advanced Predictive Color) which is an accessibility-oriented color appearance model designed for self-illuminated displays. (by Myndex)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
a11y-color-tokens SAPC-APCA
3 11
158 397
- -
3.3 8.2
7 months ago 6 months ago
JavaScript CSS
ISC License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

a11y-color-tokens

Posts with mentions or reviews of a11y-color-tokens. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-06.

SAPC-APCA

Posts with mentions or reviews of SAPC-APCA. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-20.
  • Change the colour of grey text back to black on website using poor contrast text
    3 projects | news.ycombinator.com | 20 May 2022
    For a more future oriented version (as setting a font to black wont work with dark pages), check out the CSS Color Module Level 5 spec for color-contrast(), which will automatically choose a color that has a proper contrast ratio: https://www.w3.org/TR/css-color-5/#funcdef-color-contrast

    One caveat is it's currently only supported in Safari technical preview.

    Another thing worth mentioning is the relative brightness algo used in the repo for the linked plugin is using the WCAG 2 formula for relative luminance. This works pretty well in light mode for non-colored backgrounds, but doesn't incorporate perceived luminosity differences of different hues very well. A better algorithm to use here is the Advanced Perceptual Contrast Algorithm (APCA), which is the one used in the WCAG 3 working spec. It more accurately accounts for hue: https://github.com/Myndex/SAPC-APCA

  • Please Stop Using Grey Text
    10 projects | news.ycombinator.com | 18 May 2022
    Note the licensing note in the repository[1] of the APCA™ index the author’s company[2] promotes:

    > The files currently in this repository are presently considered pre-release, and as such do not have a permanent license attached. In this repositiory, all files present are under a time-barred beta license, and intended for use with web-based content only, and not for any other use without written permission.

    The non-pre-release stuff[3] offered to W3C is better but still seems to be intended to end up non-FOSS:

    > Files in this repository are licensed to the W3/AGWG under their cooperative agreement for use with WCAG accessibility guidelines for web-based content only, and not for any other use.

    (The question being, of course, how much of this is copyrightable at all.)

    [1] https://github.com/Myndex/SAPC-APCA/

    [2] https://www.myndex.com/CVD/

    [3] https://github.com/Myndex/apca-w3/

  • WCAG 3 and updated contrast checkers?
    4 projects | /r/UXDesign | 15 Dec 2021
    Fifth: If you want to use APCA or BPCA, then welcome to the open beta test, and feel free to say hi in the beta thread at the GitHub repo: https://github.com/Myndex/SAPC-APCA/discussions/43
    4 projects | /r/UXDesign | 15 Dec 2021
    On an additional note, apart from the WCAG 3.0 Working Draft, this piece from Andrew Somers, who is working on APCA for WCAG 3, and this twitter thread might be of use.
    4 projects | /r/UXDesign | 15 Dec 2021
    Second: There are a number of contrast checkers that use APCA technology. The canonical "official" one is https://www.myndex.com/APCA/ but I want to mention it is an open public beta, and is not backwards compatible with WCAG_2 (this is in part because WCAG_2 is not perceptually accurate and thus the areas where WCAG_2 incorrectly fails pairs that APCA will pass is at issue).
    4 projects | /r/UXDesign | 15 Dec 2021
  • I made a tool to check the contrast between two colours using the new contrast algorithm being drafted for WCAG 3 — also includes fun rgb/hsl/lch sliders and buttons to adjust either colour to a desired contrast!
    2 projects | /r/web_design | 27 Oct 2021
    Andrew Somers W3 AGWG Invited Expert Color Science Researcher Myndex Perception Research Inventor APCA/co-author WCAG3
    2 projects | /r/web_design | 27 Oct 2021
    Thank you! I'm not sure this would make sense as an npm package — it's just a web page. The source code is on github in case it inspires anybody, and the contrast calculation is based on the algorithm that Myndex has also shared: https://github.com/Myndex/SAPC-APCA

What are some alternatives?

When comparing a11y-color-tokens and SAPC-APCA you can also consider the following projects:

style-dictionary - A build system for creating cross-platform styles.

web-skills - A visual overview of useful skills to learn as a web developer

buttonbuddy - Learn about accessible button contrast then generate your own accessible button color palette

CCAe - The Colour Contrast Analyser (CCA) helps you determine the legibility of text and the contrast of visual elements, such as graphical controls and visual indicators.

chakra-ui-vue - ⚡️ Build scalable and accessible Vue.js applications with ease.

11ty-sass-skeleton - Featuring absolutely nothing beyond a base HTML5 template and the essential setup to watch and compile your Sass alongside 11ty.

Discord-Tokens-Checker - A small script to check if your discord tokens are functional or not

validate-access - Parse a & Validate a given directory with multiple entries

feedback - Public feedback discussions for: GitHub for Mobile, GitHub Discussions, GitHub Codespaces, GitHub Sponsors, GitHub Issues and more! [Moved to: https://github.com/github-community/community]

luminosity-css - 💡 Duo of customizable CSS classes to define a light source location and cast dynamic shadows off elements based on their relative position. Themable and customizable with CSS variables

dark-background-light-text-

dark-background-light-text-extension - Firefox addon that turns every page colors into "light text on dark background"