Color Converter (HEX, RGB, HSL)Specialized Version
🎨

Color Name to HEX

Color name to HEX

RGB
H (0-360)S (%)L (%)

Copy CSS Values

Lightness Variations

Color Name to HEX Converter

Convert CSS color names to their HEX code equivalents. CSS supports over 140 named colors that can be used directly in stylesheets, and this converter helps you find the exact HEX code for any named color.

Common CSS Color Names

| Color Name | HEX Code | RGB | red#FF0000rgb(255, 0, 0) blue#0000FFrgb(0, 0, 255) green#008000rgb(0, 128, 0) yellow#FFFF00rgb(255, 255, 0) purple#800080rgb(128, 0, 128) orange#FFA500rgb(255, 165, 0) pink#FFC0CBrgb(255, 192, 203) cyan#00FFFFrgb(0, 255, 255)

Gray Scale Colors

NameHEXValue white#FFFFFFLightest whitesmoke#F5F5F5 gainsboro#DCDCDC lightgray#D3D3D3 silver#C0C0C0 darkgray#A9A9A9 gray#808080Middle dimgray#696969 | black | #000000 | Darkest |

Using Named Colors

``css .element { color: crimson; /* Same as */ color: #DC143C; } ``

Use this converter to find the precise HEX code for any of CSS's 140+ named colors.

Frequently Asked Questions

What color names work?

CSS supports 140+ named colors including red, blue, coral, crimson, etc.

Are color names case-sensitive?

No, Red, RED, and red all work the same.

Should I use names or HEX?

HEX is more precise and universally supported. Names are convenient for common colors.

Related Tools

Explore other tools you might find useful:

Related Calculators