CSS - RGB Color Definition

About

RGB model implementation in CSS

Syntax

rbg(Red Intensity, Green Intensity, Blue Intensity)
#RRGGBB

Example

<table class="table table-striped">
<tbody>
<tr>
           <th>Color</th>
           <th>RGB Numeric</th>
           <th>RGB Hexadecimal</th>
           <th>Color</th>    
</tr>
<tr>
           <td style="background-color:rgb(255,0,0)"/>
           <td>rgb(255,0,0)</td>
           <td>#FF0000</td>
           <td>Red</td>
</tr>
<tr>
           <td style="background-color:rgb(0,255,0)"/>
           <td>rgb(0,255,0)</td>
           <td>#00FF00</td>
           <td>Green</td>
</tr>
<tr>
           <td style="background-color:rgb(0,0,255)"/>
           <td>rgb(0,0,255)</td>
           <td>#0000FF</td>
           <td>Blue</td>
</tr>
<tr>
           <td style="background-color:rgb(255,255,255)"/>
           <td>rgb(255,255,255)</td>
           <td>#FFFFFF</td>
           <td>White</td>
</tr>
<tr>
           <td style="background-color:rgb(125,125,125)"/>
           <td>rgb(125,125,125)</td>
           <td>#808080</td>
           <td>Gray</td>
</tr>
<tr>
           <td style="background-color:rgb(0,0,0)"/>
           <td>rgb(0,0,0)</td>
           <td>#000000</td>
           <td>Black</td>
</tr>
</tbody>
</table>





Discover More
CSS - RGBA

with an opacity parameter. New in css3.
Monet Femme Ombrelle 1886 Logo
Color - Luminance

Luminance is a photometric measure that is placed on a scale: that quantifies how a color is dark or light that goes from: 0 for darkest black to 1 for lightest white The ratio of luminance...
Css - (Colors|Colours)

Color in css. A valid color is either : a name (keyword) or a numerical RGB specification. The list of colour is: Color Name numerical RGB #00ffff #000000 #0000ff #ff00ff ...



Share this page:
Follow us:
Task Runner