CSS Colors
Last updated: 2026-09-13
CSS Colors
CSS colors can be expressed as keywords, hex, rgb/rgba, hsl/hsla, hwb and currentColor. This hub lists the notations and common named colors.
Color Formats
| CSS Colors | Description |
|---|---|
Hex #rrggbb | Hexadecimal RGB, e.g. #ff0000 is red. |
rgb()/rgba() | Red/green/blue with optional alpha. |
hsl()/hsla() | Hue/saturation/lightness with optional alpha. |
hwb() | Hue/whiteness/blackness notation. |
currentColor | Uses the element's current color value. |
transparent | Fully transparent (alpha 0). |
Common Named Colors
| CSS Colors | Description |
|---|---|
red #ff0000 | Pure red. |
green #008000 | Standard green. |
blue #0000ff | Pure blue. |
black #000000 | Pure black. |
white #ffffff | Pure white. |
gray #808080 | Mid gray. |
orange #ffa500 | Orange. |
purple #800080 | Purple. |
teal #008080 | Teal. |
navy #000080 | Navy. |
gold #ffd700 | Gold. |
pink #ffc0cb | Pink. |
cyan #00ffff | Cyan. |
lime #00ff00 | Lime. |
brown #a52a2a | Brown. |
silver #c0c0c0 | Silver. |