
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
Convert color names to HEX color values.
$ component install timoxley/colornames
$ npm install colornames
var toHex = require('colornames')
toHex('red') // => "#FF0000"
toHex('blue') // => "#0000FF"
toHex('lightsalmon') // => "#FFA07A"
toHex('mediumvioletred') // => "#C71585"
toHex.get('red')
// =>
{
name: "red",
css: true,
value: "#FF0000",
vga: true
}
toHex('Blue') // => "#0000FF"
toHex('BLUE') // => "#0000FF"
toHex('BlUe') // => "#0000FF"
Get HEX code for a color name, or undefined if unknown.
All known data about color, including whether valid VGA or CSS color name.
HEX code for a color name, only if the color is a valid VGA color name.
HEX code for a color name, only if the color is a valid CSS color name.
###.all() Get all color names data.
MIT

The 'color-name' package provides a list of color names and their corresponding RGB values. Unlike 'colornames', which converts color names to hex codes, 'color-name' focuses on RGB values.
The 'color-convert' package allows for conversion between various color models, including RGB, HSL, and hex. It offers more comprehensive color conversion functionalities compared to 'colornames'.
The 'color' package provides a wide range of color manipulation and conversion utilities, including conversion between color models and color space manipulation. It is more feature-rich compared to 'colornames'.
FAQs
Map color names to HEX color values.
We found that colornames demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.