
Available doc translations
…
English
Usage
You can click on the arrow icon to change the color display from HEX to RGB and back.
Parameter
|
Description
|
Example
|
Preview
|
No parameters
|
If no parameters are specified, the template will display black color.
|
{{Color}}
|
⇆#000000rgb(0,0,0)⇆
|
| r = <0-255> | g = <0-255> | b = <0-255>
|
Setting the values of red, green and blue colors respectively.
|
{{Color|r=200|g=128|b=64}}
|
⇆#C88040rgb(200,128,64)⇆
|
| rgb = <0-255>
|
Controls all three colors at once. If a separate color value is specified, it will take precedence.
|
{{Color|rgb=99}} {{Color|rgb=64|g=255}}
|
⇆#000000rgb(0,0,0)⇆ ⇆#00FF00rgb(0,255,0)⇆
|
| a = <0.0-1.0>
|
Alpha channel.
|
{{Color|rgb=80|b=220|a=.6}}
|
⇆#0000DC99rgba(0,0,220,.6)⇆
|
Bug:If the same color is specified on the page, then pressing the arrow button will change the HEX/RGB display for all the same colors at once: ⇆#000000rgb(0,0,0)⇆ and ⇆#000000rgb(0,0,0)⇆.
⇆#000000rgb(0,0,0)⇆
⇆#C84060rgb(200,64,96)⇆
⇆#FFFFFFrgb(255,255,255)⇆
⇆#4287F599rgba(66,135,245,.6)⇆
⇆#FFFFFFFFrgba(255,255,255,1)⇆