HEX: #FFFF00
RGB: (255,255,0)
Color name is Yellow. #FFFF00 contains only red and green colors. #FFFF00 color is web safe color. It maybe written shortly as #FF0.
#FFFF00 color RGB value is (255,255,0).
RGB: (255,255,0) (100%,100%,0%)
R 255 of 255 = 100%
G 255 of 255 = 100%
B 0 of 255 = 0%
R + G + B ~ 67%. #FFFF00 is quite light color.
R + G + B =
255 + 255 + 0 = 510 (100%)
R 255 of 510 ~ 50%
G 255 of 510 ~ 50%
B 0 of 510 ~ 0%
#FFFF00 color CMYK value is (0,0,100,0).
CMYK: (0,0,100,0) C0M0Y100K0 (0%,0%,100%,0%) (0.00/0.00/1.00/0.00)
FF | FF | 00 | |
---|---|---|---|
RGB | 255 | 255 | 0 |
HSL | 60° | 100.00% | 50.00% |
HSB/HSV | 60° | 100.00% | 100.00% |
CMYK | 0.00% | 0.00% | 100.00% |
0.00% |
HEX | FF | FF | 00 |
Decimal | 255 | 255 | 0 |
Binary | 11111111 | 11111111 | 0 |
Octal | 377 | 377 | 0 |
Examples of css and html codes for elements with #FFFF00 color. Also use rgb(255,255,0) instead hex code.
.myTextColor { color: #FFFF00; }
<p style="color:#FFFF00">This sample text font color is #FFFF00.</p>
This text font color is #FFFF00.
.myBgColor { background-color: #FFFF00; }
<div style="background-color:#FFFF00">Inner text</div>
This div background color is #FFFF00.
.myBorderColor { border: 1px solid #FFFF00; }
<div style="border:3px solid #FFFF00">Div</div>
This div border color is #FFFF00.
.myOpacity80 { color: #FFFF00; opacity: 0.8; }
<p style="color:#FFFF00;opacity:0.8;">80%</p>
Text with #FFFF00 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #FFFF00;}
<p style="text-shadow: 3px 3px 1px #FFFF00">Text here.</p>
This text has shadow with #FFFF00 color.
.textShadow {text-shadow: 3px 3px 1px #FFFF00, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #FFFF00, 5px 5px 20px red">Text here.</p>
This text has shadow with #FFFF00 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#FFFF00, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#FFFF00, Direction=45, Strength=4)">Text</p>
This text has shadow with #FFFF00 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #FFFF00; -webkit-box-shadow: 1px 1px 3px 2px #FFFF00; box-shadow: 1px 1px 3px 2px #FFFF00; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #FFFF00; -webkit-box-shadow: 1px 1px 3px 2px #FFFF00; box-shadow:1px 1px 3px 2px #FFFF00;">
Div content here</div>
This text has color #FFFF00 on black background.
This text has color #FFFF00 on white background.
This text has black color on #FFFF00 background.
This text has white color on #FFFF00 background.