Inspectopedia
 
2024.3

Color could be replaced with #-hex

Warning
Code Style
New
Last modified: 03 December 2024

Reports an rgb(), hsl(), or other color function.

Suggests replacing a color function with an equivalent hexadecimal notation.

Example:

rgb(12, 15, 255)

After the quick-fix is applied:

#0c0fff.