Suggest an editImprove this articleRefine the answer for “What is the difference between rgb() and rgba()? What does the alpha channel do?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**`rgb()`** sets a color through three components (red, green, blue), while **`rgba()`** adds a fourth parameter, the alpha channel, which controls transparency from `0` (fully transparent) to `1` (fully opaque). **Key point:** `rgb()` has no transparency, `rgba()` lets you specify it.Shown above the full answer for quick recall.Answer (EN)Image`rgb()` sets a color through three components: red, green, and blue. Example: ```css color: rgb(255, 0, 0); ``` `rgba()` adds a fourth parameter, the **alpha channel**, which controls transparency: ```css color: rgba(255, 0, 0, 0.5); ``` The alpha channel accepts a value from `0` to `1`: - `1`, a fully opaque color - `0`, fully transparent - `0.5`, semi-transparent The difference: `rgb()`, without transparency, `rgba()`, with the ability to specify it.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.