In the case of CSS specifically, that’s right. But the practice of assigning names to colour values predate CSS by quite some time. And the reasons for doing so are what I’ve described.