Random CSS Named Color Generator
Choose one of the 148 CSS named color keywords using injected randomness; the special transparent keyword is excluded because it is not a named color.
Description
A fixed CSS named color repertoire provides controlled text fixtures or recognition prompts.
A fixed CSS named color repertoire provides controlled text fixtures or recognition prompts. Selecting a complete stored token differs from selecting unrestricted characters from a script. The 148 lowercase keywords include aliases such as aqua/cyan and gray/grey, which can have identical visual values. transparent and currentcolor are excluded.
The tool returns value (random css named color). These are generated fixtures or selected identifiers; the result does not replace the caller’s choice of repertoire, dataset or intended use.
When to use Random CSS Named Color Generator
Use Random CSS Named Color Generator when you need a fixture restricted to this tool’s stored repertoire or channel bounds. Use the stored label or generated component values for a bounded example or test fixture.
How to use Random CSS Named Color Generator and understand its results
- Run the generator with no input fields; API requests use {}.
- Read value as a complete stored token or read the returned component fields, preserving their text encodings and units.
- Read value. Use the calculation and interpretation below to distinguish amounts, ratios, signs and decision flags where applicable.
- Run again for another fixture. Preserve caller-supplied dataset metadata or separate exercise answers from prompts where present.
This generator has no input fields. Programmatic calls supply an empty object {}.
Run without input fields. One finite draw in [0,1) selects an entry from the explicit list or ordered code-point ranges; all entries have equal weight under uniform randomness. Return value as text without normalization or conversion.
index = floor(draw×repertoireSize); value = stored entry at index The symbols refer to the supplied quantities or generated values described above; unit conversions and comparison boundaries follow the stated implementation.
The fixed repertoire contains 148 tokens. Color keywords include aliases, so token count differs from distinct visual-color count.
{
"input": {},
"randomDraw": 0.25,
"output": {
"value": "darkslategrey"
}
} Limitations and assumptions
This generates one repertoire token, not a word, pronunciation or full writing-system dataset. Rendering and text interpretation remain external.
Random draws use context.random when injected and otherwise Math.random. No seed input or cryptographic randomness guarantee is provided. Consumed draws must be finite and in [0,1); repeated runs can repeat results.
Alternative or Complementary methods
Random CSS Named Color Palette Generator: Select 2 through 32 CSS named color keywords with replacement using injected randomness. Random Color Palette Generator: Generate 2 through 32 random sRGB hex colors from bounded HSL coordinates using injected randomness.
Methodological background: CSS Color Module Level 4.1
References
-
CSS Color Module Level 4 — World Wide Web Consortium
Similar or alternative tools
- Random CSS Named Color Palette Generator
Select 2 through 32 CSS named color keywords with replacement using injected randomness.
- Random Color Palette Generator
Generate 2 through 32 random sRGB hex colors from bounded HSL coordinates using injected randomness.