apca-introduction

The missing introduction to APCA  https://p.ce9e.org/apca-introduction/
git clone https://git.ce9e.org/apca-introduction.git

commit
0d419e7f45c11d09b0917bf791dad1ebe6f66828
parent
2968ef09f837dcfdca4b296133de8631ac788b93
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-03-21 08:17
fix APCA range

Diffstat

M README.md 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/README.md b/README.md

@@ -55,8 +55,8 @@ function contrast(fg, bg) {
   55    55 
   56    56 ## Migrating from WCAG 2.x
   57    57 
   58    -1 - WCAG 2.x produces a ratio between 1:1 and 21:1. APCA produces a value roughly
   59    -1   between -100 and 100.
   -1    58 - WCAG 2.x produces a ratio between 1:1 and 21:1. APCA produces a value between
   -1    59   -108 and 105.
   60    60 - Unlike WCAG 2.x, APCA reports different values when you switch foreground and
   61    61   background.
   62    62 - The result of APCA is negative for light text on dark background. You will