PHP Classes
elePHPant
Icontem

PHP WCAG Color Compliance: Get the contrast ratio between two colors for WCAG

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2019-04-15 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 80 All time: 9,336 This week: 332Up
Version License PHP version Categories
wcag-colour-complian 1.0.0Free For Educatio...5PHP 5, Graphics
Description Author

This package can get the contrast ratio between two colors.

It takes as parameters the values of two colors in RGB format.

The class can calculate the contrast ratio between two colors, as well the result of several tests of accessibility compliant with the WCAG standard.

Innovation Award
PHP Programming Innovation award nominee
April 2019
Number 9
Determining what colors contrast better with a given color may be important for applications that may need to display text or other graphics that use a given color in a background that uses another color.

This package can get the contrast ratio between two colors according to the Web Content Accessibility Guidelines (WCAG).

Manuel Lemos
  Performance   Level  
Name: Andrew Collington <contact>
Classes: 16 packages by
Country: United Kingdom United Kingdom
Age: 45
All time rank: 544 in United Kingdom United Kingdom
Week rank: 675 Down26 in United Kingdom United Kingdom Down
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file wcag-example.js Data Auxiliary data
Accessible without login Plain text file wcag-example.php Example Auxiliary script
Accessible without login Plain text file wcag.js Data Auxiliary data
Plain text file wcag.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:80
This week:0
All time:9,336
This week:332Up