Hex Color #ffff00

Information about #ffff00 hex color code is provided on this page.

  • Hex Color #ffff00
  • RGB color: rgb(255,255,0)

Background color #ffff00

#ffff00
rgb(255,255,0)

Background color #ffff00 with opacity 0.5

#ffff00
opacity:0.5
rgb(255,255,0,0.5)

How to use #ffff00 color code in CSS stylesheet

You can color any HTML element with #ffff00 hex color using the examples below.

color: #ffff00;
background-color: #ffff00;
background-color: rgb(255,255,0);

#ffff00 CSS codes

You can use CSS classes to color any HTML element with #ffff00 hex color.

To change the color of the element, add the css class ffff00 to any HTML element, such as a div, like in the example below:

<div class='ffff00'>
Copy this div element to your HTML file
</div>

Now copy the code below to your CSS file:

.ffff00 {color:#ffff00;}

You will get this result: #ffff00

Alternatively, you can change the background color of the element, by using this CSS code:

.ffff00 {background-color:#ffff00; padding:10px;}

You will get this result:

#ffff00

More examples using #ffff00 CSS classes

.bg-color-ffff00 {background-color:#ffff00;}
.hex-color-ffff00 {color:#ffff00;}
.border-color-ffff00 {border:1px solid #ffff00;}

#ffff00 CSS codes using !important

.bg-color {background-color:#ffff00 !important;}
.hex-color {color:#ffff00 !important;}
.border-color {border:1px solid #ffff00 !important;}

#ffff00 is the same as RGB color (255,255,0)

255,255,0 RGB color code is the same color as #ffff00 hex color code and can be used in css as such: rgb(255,255,0).

Comments on color #ffff00

Similar Colors

Here are colors that are similar to #ffff00

Random Colors

Click on any hex color value to get more info.

The information presented on this page is about #ffff00 web color code. For information about different color codes visit gethexcolor.com