Web safe colors are in intervals of 51, they include 0, 3, 6, 9, c, and, f as digits in hex (such as #993333), or 0, 51, 102, 153, 204, 255 in decimal. Your task today is convert a given color to a web safe one. You may read more about web safe colors on Wikipedia.
Input
You will take in 3 integers between 0, 255 inclusive representing red, green, and blue values.
Output
Output the converted 3 integers, as an array or similar structure.
Rules
- answers must be rounded to the nearest value, not floor or ceiling. (25 -> 0 and 26 -> 51)
- As this is code golf, lowest bytes wins.
Test Cases
Input Output
(0, 25, 76) (0, 0, 51)
(1, 26, 77) (0, 51, 102)
(127, 178, 229) (102, 153, 204)
(128, 179, 230) (153, 204, 255)
(0, 254, 255) (0, 255, 255)
(9, 143, 53) (0, 153, 51)
I'm sure these answers will be pretty short; this is an easier question meant for those more novice at code golf, however feel free to answer regardless of your skill/experience.