HTML Colors
HTML Color Names and Color Codes in Property Values
These are the color names and other property values for the sixteen standard HTML colors. For other colors, use the HTML Color Picker.
Color Name | Hex Color Code | Red / Green / Blue / Alpha | Hue / Saturation / Luminance / Alpha |
---|---|---|---|
aqua | #00ffff | rgba(0, 255, 255, 1.0) | hsla(180, 100%, 50%, 1.00) |
black | #000000 | rgba(0, 0, 0, 1.0) | hsla(0, 0%, 0%, 1.00) |
blue | #0000ff | rgba(0, 0, 255, 1.0) | hsla(240, 100%, 50%, 1.00) |
fuchsia | #ff00ff | rgba(255, 0, 255, 1.0) | hsla(300, 100%, 50%, 1.00) |
gray or grey | #808080 | rgba(128, 128, 128, 1.0) | hsla(0, 0%, 50%, 1.00) |
green | #008000 | rgba(0, 128, 0, 1.0) | hsla(120, 100%, 25%, 1.00) |
lime | #00ff00 | rgba(0, 255, 0, 1.0) | hsla(120, 100%, 50%, 1.00) |
maroon | #800000 | rgba(128, 0, 0, 1.0) | hsla(0, 100%, 25%, 1.00) |
navy | #000080 | rgba(0, 0, 128, 1.0) | hsla(240, 100%, 25%, 1.00) |
olive | #808000 | rgba(128, 128, 0, 1.0) | hsla(60, 100%, 25%, 1.00) |
purple | #800080 | rgba(128, 0, 128, 1.0) | hsla(300, 100%, 25%, 1.00) |
red | #ff0000 | rgba(255, 0, 0, 1.0) | hsla(0, 100%, 50%, 1.00) |
silver | #c0c0c0 | rgba(192, 192, 192, 1.0) | hsla(0, 0%, 75%, 1.00) |
teal | #008080 | rgba(0, 128, 128, 1.0) | hsla(180, 100%, 25%, 1.00) |
white | #ffffff | rgba(255, 255, 255, 1.0) | hsla(0, 0%, 100%, 1.00) |
yellow | #ffff00 | rgba(255, 255, 0, 1.0) | hsla(60, 100%, 50%, 1.00) |
Note that, as shown above, the alpha value must be specified as a decimal number (ex: 1.00
), not a percentage (100%
).