Colors HEX







googletag.cmd.push(function() { googletag.display('div-gpt-ad-1422003450156-2'); });



Colors HEX




❮ Previous
Next ❯



Hex Calculator





 



rgb(255, 0, 0)#000000

hsl(0, 0%, 0%)









R:









G:









B:












Hexadecimal Colors


Hexadecimal color values are also supported in all browsers.


A hexadecimal color is specified with: #RRGGBB.


RR (red), GG (green) and BB (blue) are hexadecimal integers between 00 and
FF specifying the intensity of the color.


For example, #0000FF is displayed as blue, because the blue component is set to its highest value (FF) and the others are set to
00.




function submitOnEnter(e) {
keyboardKey = e.which || e.keyCode;
if (keyboardKey == 13) {
setFullColor();
}
}
function numberValue(elmnt) {
var val, x;
val = Number(elmnt.value);
if (val 255) {val = 255;}
val = toHex(val);
x = document.getElementById(elmnt.id.substr(0, 3));
x.value = val;
setColor();
}
function toHex(n) {
var hex = n.toString(16);
while (hex.length < 2) {hex = "0" + hex; }
return hex;
}
function clickRed(red) {
var r = document.getElementById("r01");
r.value = red;
setColor();
}
function clickGreen(green) {
var g = document.getElementById("g01");
g.value = green;
setColor();
}
function clickBlue(blue) {
var b = document.getElementById("b01");
b.value = blue;
setColor();
}
function drawRedTable() {
var x, i, n, g, b;
g = "00";
b = "00";
x = ""
x += "";
n = 0;
for (i = 0; i <= 255; i++) {
n = toHex(i);
x += "
" + n + "

Popular posts from this blog

Colors HSL

Google Hardware Icons

SVG Filters