I think the key is in creating enough contrast between the main, “natural,” color of the court, which tends to be kind of yellowish, and the painted lanes/sidelines, if they are gold.
The Warriors do a pretty good job with this by keeping the main color of their court a fairly light shade...