-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-color] Adding names to the color previews #7686
Comments
A lot of these names seem to originate with the xkcd color naming experiment. This might be interesting to try. I can see a few problems:
There are some who would find these sort of names offensive. gainsboro is just mysterious, dodger blue is culturally specific. IBM Blue is a branded color; same with Netflix Red also branded. All Pantone colors are covered by license agreements. Getting tangled in trademark law is not desirable. the Official Register of Color Names charges USD 37 per name. They also claim:
although their database includes offensive meanings and also names of commercial companies |
Agreed regarding the problems, at least with this library—it doesn't seem like this is one we can really use. As also mentioned above, some may be triggering for some users. I did find some other similar tools, but they didn't have as wide a gamut of colours. Maybe they would be sufficient though. There's one in particular that I found that worked in a similar way (with a narrower, but potentially less challenging, palette). I didn't mention it above, but should be able to dig it out of my history. |
So, where are we on this? Auto-naming of colors looks like a little bit of a research project. |
Agreed; if you're interested in pursuing the idea, if it's possible to find a suitable set of names, then I will have a look around for such as et of names as and when I'm able (this may take a while), and we can come back to this. |
OK, closing for now until this option becomes more tractable. |
This comment is from the APA WG and relates to our review of CSS Color Module Level 5.
Adding "alternative text" to the visual color preview feature could be very helpful for people with vision impairments who currently have to rely on the colors' coordinates alone. Whilst coordinates are provided for every color mentioned in the examples, they may not give the reader much of a sense of what the color might look like, making the examples hard to follow (e.g. it's much easier to understand the effects of certain types of mixing by glancing at the previews and noting the similarities or differences from the input colors, rather than parsing through the coordinates). The document describes some of the colors that have previews, but not all.
There are some tools that gives you the closest color name to a given (usually hex-encoded) color, from an extensive palette of predefined colors. This sort of tool would give a good enough idea for most people who may be unable to perceive the colors directly. The color names could be generated as part of the document build process, and placed in visually-hidden text in the document. The text should also indicate if the colours are transparent.
One such tool is "color-to-name" (https://github.com/stanleyfok/color-to-name)—however, a small number of the color names in the palette may be considered vulgar, so they would either have to be filtered out, or a different tool selected. The same applies for color names that may be triggering for some people. We can do more research on tools of this nature, if you like.
It's noted that out-of-gamut colors are indicated by a red border on their previews, and they're always described in accompanying text as being out of gamut, which is helpful.
The text was updated successfully, but these errors were encountered: