Magento ver. 2.2.4 Developer mode/Production Mode
Steps to reproduce
Add your own colors
You should be able to add as many colors as you want.
After 39 color swatches, new colors are not saved even though you still get the "You saved the product attribute." success message.