Add the rainbow-mode package to your init.el and the proper config to add it to the processing mode and recognize the color
:
(use-package rainbow-mode
:ensure t
:config
(add-to-list 'rainbow-html-colors-major-mode-list 'processing-mode)
(add-to-list 'rainbow-html-rgb-colors-font-lock-keywords
'("color(\s*\\([0-9]\\{1,3\\}\\(?:\.[0-9]\\)?\\(?:\s*%\\)?\\)\s*,\s*\\([0-9]\\{1,3\\}\\(?:\\.[0-9]\\)?\\(?:\s*%\\)?\\)\s*,\s*\\([0-9]\\{1,3\\}\\(?:\\.[0-9]\\)?\\(?:\s*%\\)?\\)\s*)"
(0 (rainbow-colorize-rgb))))
)
And it's done!
Here's the result: