Predefined web CSS colors

Petr Faltus development

Useful development tool that shows predefined web CSS colors sorted by the difference.

Please enter to the form one of the following:

Predefined web CSS colors API

For using this development tool in your software please send a request JSON struct as raw POST data to the address https://api.petrfaltus.net/css_color/json/1.0 where the input JSON contains the method_number variable and then the name variable (method_number is 1 for the nearest predefined CSS color name) or the hex variable (method_number is 2 for the predefined web CSS colors sorted by the difference). You get the reply JSON struct back.

Example of the diagnostic request:

curl --data-raw "{\"method_number\":0}" https://api.petrfaltus.net/css_color/json/1.0

Example of the request for the nearest predefined CSS color name:

curl --data-raw "{\"method_number\":1,\"name\":\"orange\"}" https://api.petrfaltus.net/css_color/json/1.0

Example of the request for the predefined web CSS colors sorted by the difference:

curl --data-raw "{\"method_number\":2,\"hex\":\"#f0e68c\"}" https://api.petrfaltus.net/css_color/json/1.0

Other development tools

Developer ASCII table
Characters and HTML entities in the UTF-8 table
 
CSS px to rem converter
 

  

🤝 Your IP address is 3.145.44.22 (ec2-3-145-44-22.us-east-2.compute.amazonaws.com)