Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
<html>
<head>
<script src="https://code.jquery.com/jquery-1.7.2.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>Color-Code</title>
</head>
<body>
  
<header class="site-header">
  
</div>
<h1 id="top"></h1>
  <h1 class="header-title"><div class="color-background">
	<div class="color-me">
		<p>
			Color
         
		</p>

	</div>
    <p></h1>
<span class="header-control"><a class="header-control-btn bounce" href="#topic-1">:)</a></span>
   
</header>
<center><h1 class="site-topic-title" id="topic-1">Color-Bot</h1> <div id="topic-1" class="colorPicker">
  <input type="radio" name="hat-color" value="red" id="hat-color-red" class="red"/>
  <label for="hat-color-red" class="red">red</label>
  <input type="radio" name="hat-color" value="orange" id="hat-color-orange" class="orange"/>
  <label for="hat-color-orange" class="orange">orange</label>
  <input type="radio" name="hat-color" value="yellow" id="hat-color-yellow" class="yellow"/>
  <label for="hat-color-yellow" class="yellow">yellow</label>
  <input type="radio" name="hat-color" value="green" id="hat-color-green" class="green"/>
  <label for="hat-color-green" class="green">green</label>
  <input type="radio" name="hat-color" value="blue" id="hat-color-blue" class="blue"/>
  <label for="hat-color-blue" class="blue">blue</label>
  <input type="radio" name="hat-color" value="indigo" id="hat-color-indigo" class="indigo"/>
  <label for="hat-color-indigo" class="indigo">indigo</label>
  <input type="radio" name="hat-color" value="violet" id="hat-color-violet" class="violet"/>
  <label for="hat-color-violet" class="violet">violet</label>
</div>
</div>
<section class="site-topic">
  
  <Center><h1 class="site-topic-title" id="topic-1"><li></h1></center>
		<center> <div class="color-wrapper">
  <p>Choose color (# hex)</p>
  <input type="text" name="custom_color" placeholder="#FFFFFF" id="pickcolor" class="call-picker">
  <div class="color-holder call-picker"></div>
          <div class="color-picker" id="color-picker" style="display: none"></div> </center>
  <p>.</p>
      <p></p>
<center><h1 id="two"> <li><a href="#three"><a class="box9" href="#three"><font color="black">⇩</font></h1>
  <input type="text" id="string" placeholder="Write Something to Make Color" onkeyup="colorful_language(event, document.body)"/></p>
  <li><a href="#three"><a class="box9" href="#three"><font color="black">⇩</font></li></p>
  
  </section></center>
<footer class="site-footer"><center><h1 id="three"><font color="black"> - </font></h1>
<p><a href="#two"><font color="black">Color - Keeper</font></a></p></footer>
 
 <a href="#" class="top">&uarr;</a>
</body>
</html>
              
            
!

CSS

              
                *, *:after, *:before {
  box-sizing: border-box;
   text-decoration: none;
  list-style-type:none;
 
   
}


body {
  margin: 0;
  background-color:#FFFFFF;
  text-decoration: none;
 
 
  
 
}
.colorPicker {
  margin-top: 1em;
  font-size: 0.875em;
  text-align: center;
  display: inline-table;
  width: 100%;
  max-width: 40em;
  background: #fff;
  padding: 2px;
  border-radius: 0.35em;
  box-shadow: 0 0.5em 1.5em rgba(0,0,0,0.15);
}
.colorPicker label {
  -webkit-tap-highlight-color: rgba(255,255,255,0.5);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  display: table-cell;
  cursor: pointer;
  vertical-align: middle;
  padding: 0.5em 1em;
  text-transform: capitalize;
  letter-spacing: -0.5em;
  color: transparent;
  opacity: 0.35;
  width: 1%;
  background-image: -webkit-linear-gradient(rgba(255,255,255,0.1), rgba(0,0,0,0.1));
  background-image: linear-gradient(rgba(255,255,255,0.1), rgba(0,0,0,0.1));
}
.colorPicker label.red {
  background-color: #ff3e05;
  -webkit-tap-highlight-color: #ff3e05;
}
.colorPicker label.orange {
  background-color: #ff8d05;
  -webkit-tap-highlight-color: #ff8d05;
}
.colorPicker label.yellow {
  background-color: #ecca05;
  -webkit-tap-highlight-color: #ecca05;
}
.colorPicker label.green {
  background-color: #40af04;
  -webkit-tap-highlight-color: #40af04;
}
.colorPicker label.blue {
  background-color: #057fff;
  -webkit-tap-highlight-color: #057fff;
}
.colorPicker label.indigo {
  background-color: #7500ca;
  -webkit-tap-highlight-color: #7500ca;
}
.colorPicker label.violet {
  background-color: #cc6fcc;
  -webkit-tap-highlight-color: #cc6fcc;
}
.colorPicker label:first-of-type {
  border-radius: 0.25em 0 0 0.25em;
}
.colorPicker label:last-of-type {
  border-radius: 0 0.25em 0.25em 0;
}
.colorPicker label:hover {
  opacity: 1;
  color: #fff;
  letter-spacing: normal;
}
.colorPicker input {
  display: none;
}
.colorPicker input:checked + label {
  width: 90%;
  opacity: 1;
  color: #fff;
  letter-spacing: normal;
}

body::-webkit-scrollbar {
    width: 1em;

}
 
body::-webkit-scrollbar-track {
   background-color: rgba(255,255,255,1);

}
 
body::-webkit-scrollbar-thumb {
  background-color: #FFF;

}
body::-webkit-scrollbar-thumb:hover {
  background-color: #000;
  -webkit-animation: scrollbig 1s; 
  animation: scrollbig 2s; 
}
.palette {
  width: 7.14%;
  height: 100px;
  float: left;
  position: relative;
  -webkit-transform-origin: 0% 100%;
  transform-origin: 0% 100%;
  -webkit-transition: 0.1s;
  transition: 0.1s;
  z-index: 5;
}
.palette:hover {
  z-index: 10;
  cursor: pointer;
  -webkit-transform: rotate(-10deg);
  transform: rotate(-10deg);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.17), 0 4px 15px rgba(0, 0, 0, 0.15);
}
.palette.open {
  -webkit-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  -webkit-transform: scale(2.5) rotate(90deg);
  transform: scale(2.5) rotate(90deg);
  z-index: 50;
}
.palette.open:hover {
  z-index: 55;
}
.palette.open .close {
  display: block;
}
.palette.open .code {
  opacity: 1;
}
.palette.open .code::after {
  opacity: 1;
  color: transparent;
  text-shadow: none;
}
.
.box9{
  font-size:55px;
  list-style-type: none;
  color:#fff;
  font-color:#fff;
  
}
.close {
  display: none;
  color: #fff;
  padding-left: 3px;
  text-shadow: 0 1px 0px rgba(0, 0, 0, 0.3);
  font-size: 12px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.code {
  opacity: 0;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
  position: absolute;
  color: #fff;
  font-size: 14px;
  left: 0px;
  top: 50%;
  padding: 10px;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
}
.code::after {
  content: 'Color Copied';
  font-size: 6px;
  top: 25px;
  color: #333;
  opacity: 0;
  -moz-transition: opacity 0.3s 0.3s, color 0.3s 2s, text-shadow 0.3s 2s;
  -o-transition: opacity 0.3s 0.3s, color 0.3s 2s, text-shadow 0.3s 2s;
  -webkit-transition: opacity 0.3s, color 0.3s, text-shadow 0.3s;
  -webkit-transition-delay: 0.3s, 2s, 2s;
  -webkit-transition: opacity 0.3s 0.3s, color 0.3s 2s, text-shadow 0.3s 2s;
  transition: opacity 0.3s 0.3s, color 0.3s 2s, text-shadow 0.3s 2s;
  position: absolute;
  width: 100%;
  left: 10px;
}

#clipBoard {
  opacity: 0;
  position: absolute;
  z-index: 2;
}

@media (max-width: 640px) {
  .palette {
    width: 14.25%;
  }
}
@media (max-width: 480px) {
  .palette {
    width: 25%;
  }
}
@media (max-width: 320px) {
  .palette {
    width: 33%;
  }
}
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400);
.site-header {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: 'Open Sans', sans-serif;
}
.site-header .header-title {
  font-size: 4em;
  margin: 0;
  color: #fff;
}
.site-header .header-control {
  transform: rotate(90deg);
  margin-top:130px;
}

.site-header .header-control-btn {
  color: #fff;
  font-size: 8em;
  text-decoration: none;
}

.site-topic {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1em;
  min-height: 100vh;
  padding: 30px 0;
}
.site-topic-title {
  padding: 30px 0;
  font-size: 2em;
}
.site-footer {
  height: 120px;
  background: ;
  font-color:#000;

}
.bounce {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(-20px);
  }
  60% {
    transform: translateX(-10px);
  }
}

.top{
	background-color: #F5AB35;
	bottom: 2em;
	color: #fff;
	display: none;
	opacity:0.6;
	padding: 1.5em;
	position: fixed;
	right: 1.5em;
	text-decoration: none;
  z-index: 100;
}
.top:hover{
	opacity:1;
	transition:1s;
}

.color-background {
  position: absolute;
  top: 0;
  left:19px;
  margin: 0 auto;
  padding: 0;
  height: 100%;
  width: 100%;
  animation: colorBackground 20s infinite;
  /* Chrome, Firefox 16+, IE 10+, Opera 12.10+ */
  -webkit-animation: colorBackground 20s infinite;
  /* Chrome, Safari 5+ */
  -moz-animation: colorBackground 20s infinite;
  /* Firefox 5-15 */
  -o-animation: colorBackground 20s infinite;
  /* Opera 12.00 */
}

@keyframes colorBackground {
  0% {
     background-color: #fbcf61;
    color: #fbcf61;
  }
  20% {
    background-color: #6bd57e;
    color: #6bd57e;
  }
  40% {
    background-color: #ff6f6f;
    color: #ff6f6f;
  }
  60% {
    background-color: #57cff4;
    color: #57cff4;
  }
  80% {
    background-color: #0ed4c8;
    color: #0ed4c8;
  }
  100% {
    background-color: #fbcf61;
    color: #fbcf61;
  }
}

@-webkit-keyframes colorBackground {
  0% {
    background-color: #fbcf61;
    color: #fbcf61;
  }
  20% {
    background-color: #6bd57e;
    color: #6bd57e;
  }
  40% {
    background-color: #ff6f6f;
    color: #ff6f6f;
  }
  60% {
    background-color: #57cff4;
    color: #57cff4;
  }
  80% {
    background-color: #0ed4c8;
    color: #0ed4c8;
  }
  100% {
    background-color: #fbcf61;
    color: #fbcf61;
  }
}

@-moz-keyframes colorBackground {
  0% {
    background-color: #fbcf61;
    color: #fbcf61;
  }
  20% {
    background-color: #6bd57e;
    color: #6bd57e;
  }
  40% {
    background-color: #ff6f6f;
    color: #ff6f6f;
  }
  60% {
    background-color: #57cff4;
    color: #57cff4;
  }
  80% {
    background-color: #0ed4c8;
    color: #0ed4c8;
  }
  100% {
    background-color: #fbcf61;
    color: #fbcf61;
  }
}

@-o-keyframes colorBackground {
  0% {
    background-color: #fbcf61;
    color: #fbcf61;
  }
  20% {
    background-color: #6bd57e;
    color: #6bd57e;
  }
  40% {
    background-color: #ff6f6f;
    color: #ff6f6f;
  }
  60% {
    background-color: #57cff4;
    color: #57cff4;
  }
  80% {
    background-color: #0ed4c8;
    color: #0ed4c8;
  }
  100% {
    background-color: #fbcf61;
    color: #fbcf61;
  }
}

.color-me {
  position: relative;
  top: 35%;
  background-color: #fff;
  padding: 60px;
  font-size: 50px;
  text-align: center;
  letter-spacing: 3px;
}

.color-background .color-me p {
  padding: 0;
  color: transparent;
  font-size: 55px;
  text-transform: uppercase;
 position: absolute;
  top: 0;
  left: -19px;
  margin: 0 auto;
  padding: 0;
  text-align:center;
  
font-family: futura;
  font-style: ;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  color: #313131;
  font-size: 45px;
  margin-top:40px;
  font-weight: bold;
  position: absolute;
  -webkit-animation: colorchange 20s infinite alternate;
}

 
@-webkit-keyframes colorchange {
  0% {
    color: #fbcf61;
  }
  10% {
    color: #8e44ad;
  }
  20% {
    color: #6bd57e;
  }
  30% {
    color: #d35400;
  }
  40% {
    color: #ff6f6f;
  }
  50% {
    color: #34495e;
  }
  60% {
    color: #57cff4;
  }
  70% {
    color: #2980b9;
  }
  80% {
    color: #0ed4c8;
  }
  90% {
    color: #2980b9;
  }
  100% {
    color: #fbcf61;
  }
}
input{
	margin: 0 auto;
	width:100%;
	height:100%;
  min-height:100%;
	background:transparent;
	border:none;
	font-size: 15px;
	font-family: 'Helvetica', sans;
	text-align: center;
  margin-top:150px;
}

input:focus{
  	outline:none;
}
.color-wrapper {
		position: relative;
		width: 250px;
  margin-top:-20px;
  
  
	}

	.color-wrapper p {
		margin-bottom: 5px;
	}

	input.call-picker {
		border: 1px solid #;
		color: #666;
		text-transform: uppercase;
		float: left;    
		outline: none;
	  padding: 10px;
	  text-transform: uppercase;
	  width: 85px;
      margin-top:3px;
    margin-left:50px;
	}

	.color-picker {
		width: 130px;
		background: #F3F3F3;
		height: 81px;
		padding: 5px;
		border: 5px solid #fff;
		box-shadow: 0px 0px 3px 1px #DDD;
		position: absolute;
		top: 65px;
		left: 2px;
	}

	.color-holder {
  	background: #fff;
		cursor: pointer;
		border: 1px solid #AAA;
		width: 40px;
		height: 36px;
		float: left;
		margin-left: 5px;
	}

	.color-picker .color-item {
		cursor: pointer;
		width: 10px;
		height: 10px;
		list-style-type: none;
		float: left;
		margin: 2px;
		border: 1px solid #DDD;
	}

	.color-picker .color-item:hover {
		border: 1px solid #666;
		opacity: 0.8;
		-moz-opacity: 0.8;
		filter:alpha(opacity=8);
	}
              
            
!

JS

              
                // Color codes
var paletteBg = 
 ["#000", "#ffebee", "#ffcdd2", "#ef9a9a", "#e57373", "#ef5350", "#f44336", "#e53935", "#d32f2f", "#c62828", "#b71c1c", "#ff8a80", "#ff5252", "#ff1744", "#d50000", "#fce4ec" , "#f8bbd0", "#f48fb1", "#f06292", "#ec407a", "#e91e63", "#d81b60", "#c2185b", "#ad1457", "#880e4f", "#ff80ab", "#ff4081", "#f50057", "#c51162", "#f3e5f5", "#e1bee7", "#ce93d8", "#ba68c8", "#ab47bc", "#9c27b0", "#8e24aa", "#7b1fa2", "#6a1b9a", "#4a148c", "#ea80fc", "#e040fb", "#d500f9", "#aa00ff", "#ede7f6", "#d1c4e9", "#b39ddb", "#9575cd", "#7e57c2", "#673ab7", "#5e35b1", "#512da8", "#4527a0", "#311b92", "#b388ff", "#7c4dff", "#651fff", "#6200ea", "#e8eaf6", "#c5cae9", "#9fa8da", "#7986cb", "#5c6bc0", "#3f51b5", "#3949ab", "#303f9f", "#283593", "#1a237e", "#8c9eff", "#536dfe", "#3d5afe", "#304ffe", "#e3f2fd", "#bbdefb", "#90caf9", "#64b5f6", "#42a5f5", "#2196f3", "#1e88e5", "#1976d2", "#1565c0", "#0d47a1", "#82b1ff", "#448aff", "#2979ff", "#2962ff", "#e1f5fe", "#b3e5fc", "#81d4fa", "#4fc3f7", "#29b6f6", "#03a9f4", "#039be5", "#0288d1", "#0277bd", "#01579b", "#80d8ff", "#40c4ff", "#00b0ff", "#0091ea", "#e0f7fa", "#b2ebf2", "#80deea", "#4dd0e1", "#26c6da", "#00bcd4", "#00acc1", "#0097a7", "#00838f", "#006064", "#84ffff", "#18ffff", "#00e5ff", "#00b8d4", "#e0f2f1", "#b2dfdb", "#80cbc4", "#4db6ac", "#26a69a", "#009688", "#00897b", "#00796b", "#00695c", "#004d40", "#a7ffeb", "#64ffda", "#1de9b6", "#00bfa5", "#e8f5e9", "#c8e6c9", "#a5d6a7", "#81c784", "#66bb6a", "#4caf50", "#43a047", "#388e3c", "#2e7d32", "#1b5e20", "#b9f6ca", "#69f0ae", "#00e676", "#00c853", "#f1f8e9", "#dcedc8", "#c5e1a5", "#aed581", "#9ccc65", "#8bc34a", "#7cb342", "#689f38", "#558b2f", "#33691e", "#ccff90", "#b2ff59", "#76ff03", "#64dd17", "#f9fbe7", "#f0f4c3", "#e6ee9c", "#dce775", "#d4e157", "#cddc39", "#c0ca33", "#afb42b", "#9e9d24", "#827717", "#f4ff81", "#eeff41", "#c6ff00", "#aeea00", "#fffde7", "#fff9c4", "#fff59d", "#fff176", "#ffee58", "#ffeb3b", "#fdd835", "#fbc02d", "#f9a825", "#f57f17", "#ffff8d", "#ffff00", "#ffea00", "#ffd600", "#fff8e1", "#ffecb3", "#ffe082", "#ffd54f", "#ffca28", "#ffc107", "#ffb300", "#ffa000", "#ff8f00", "#ff6f00", "#ffe57f", "#ffd740", "#ffc400", "#ffab00", "#fff3e0", "#ffe0b2", "#ffcc80", "#ffb74d", "#ffa726", "#ff9800", "#fb8c00", "#f57c00", "#ef6c00", "#e65100", "#ffd180", "#ffab40", "#ff9100", "#ff6d00", "#fbe9e7", "#ffccbc", "#ffab91", "#ff8a65", "#ff7043", "#ff5722", "#f4511e", "#e64a19", "#d84315", "#bf360c", "#ff9e80", "#ff6e40", "#ff3d00", "#dd2c00", "#efebe9", "#d7ccc8", "#bcaaa4", "#a1887f", "#8d6e63", "#795548", "#6d4c41", "#5d4037", "#4e342e", "#3e2723", "#757575", "#616161", "#424242", "#212121", "#f5f5f5",  "#e0e0e0", "#bdbdbd", "#9e9e9e", "#eceff1", "#cfd8dc", "#b0bec5", "#90a4ae", "#78909c", "#607d8b", "#546e7a", "#455a64", "#37474f", "" ]; 

// Local storage set
$('body').append('<input id="clipBoard" type="text"/>');

// palette appending 
for(var i =0; paletteBg.length > i; i++){
  $('body').append('<div class="palette" style="background: '+paletteBg[i]+'"><span class="code">'+paletteBg[i]+'</span><span class="close">&times</span></div>');
}
// card open 
$('body').on("click", '.palette', function(e){  
   $(this).addClass("open");
   var bgColor = $(this).find('.code').text().trim();// Palette Color
  
  $('#clipBoard').val(bgColor); // local storage
  // copy to clipboard
  e.preventDefault();
  document.execCommand('copy', false, document.getElementById('clipBoard').select());

});
// close
$(document).on("click", '.close', function(){
  $(this).parent().removeClass("open");
});
$(function() {
  $('a[href*=#]:not([href=#])').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
      if (target.length) {
        $('html,body').animate({
          scrollTop: target.offset().top
        }, 1000);
        return false;
      }
    }
  });
});
$(document).ready(function() {
    var offset=250, // At what pixels show Back to Top Button
    scrollDuration=300; // Duration of scrolling to top
        $(window).scroll(function() {
	    if ($(this).scrollTop() > offset) {
                $('.top').fadeIn(500); // Time(in Milliseconds) of appearing of the Button when scrolling down.
                } else {
		$('.top').fadeOut(500); // Time(in Milliseconds) of disappearing of Button when scrolling up.
		}
	});

	// Smooth animation when scrolling
	$('.top').click(function(event) {
	event.preventDefault();
            $('html, body').animate({
	        scrollTop: 0}, scrollDuration);
                })
	});



function colorful_language(e, target_element){
	var element = e.target;
	var string = element.value;

	//alert(string.length);

	if(string.length === 0){
		target_element.setAttribute("style","background-color: hsl(0, 0, 100%);");
	}else{
		var sanitized = string.replace(/[^A-Za-z]/, '');
		var letters = sanitized.split('');

		//Determine the hue
			var hue = Math.floor((letters[0].toLowerCase().charCodeAt()-96)/26*360);
			var ord = '';
			for(var i in letters){
				ord = letters[i].charCodeAt();
				if((ord >= 65 && ord <= 90) || (ord >= 97 && ord <= 122)){
					hue += ord-64;
				}
			}

			hue = hue%360;

		//Determine the saturation
			var vowels = ['A', 'a', 'E', 'e', 'I', 'i', 'O', 'o', 'U', 'u'];
			var count_cons = 0;

			//Count the consonants
			for(i in letters){
				if(vowels.indexOf(letters[i]) == -1){
					count_cons++;
				}
			}

			//Determine what percentage of the string is consonants and weight to 95% being fully saturated.
			var saturation = count_cons/letters.length/0.95*100;
			if(saturation > 100) saturation = 100;

		//Determine the luminosity
			var ascenders = ['t','d','b','l','f','h','k'];
			var descenders = ['q','y','p','g','j'];
			var luminosity = 50;
			var increment = 1/letters.length*50;

			for(i in letters){
				if(ascenders.indexOf(letters[i]) != -1){
					luminosity += increment;
				}else if(descenders.indexOf(letters[i]) != -1){
					luminosity -= increment*2;
				}
			}
			if(luminosity > 100) luminosity = 100;

		target_element.setAttribute("style","background-color: hsl("+hue+", "+saturation+"%, "+luminosity+"%);");
	}
}
		var colorList = [ '000000', '993300', '333300', '003300', '003366', '000066', '333399', '333333', 
'660000', 'FF6633', '666633', '336633', '336666', '0066FF', '666699', '666666', 'CC3333', 'FF9933', '99CC33', '669966', '66CCCC', '3366FF', '663366', '999999', 'CC66FF', 'FFCC33', 'FFFF66', '99FF66', '99CCCC', '66CCFF', '993366', 'CCCCCC', 'FF99CC', 'FFCC99', 'FFFF99', 'CCffCC', 'CCFFff', '99CCFF', 'CC99FF', 'FFFFFF' ];
		var picker = $('#color-picker');

		for (var i = 0; i < colorList.length; i++ ) {
			picker.append('<li class="color-item" data-hex="' + '#' + colorList[i] + '" style="background-color:' + '#' + colorList[i] + ';"></li>');
		}

		$('body').click(function () {
			picker.fadeOut();
		});

		$('.call-picker').click(function(event) {
			event.stopPropagation();
			picker.fadeIn();
			picker.children('li').hover(function() {
				var codeHex = $(this).data('hex');

				$('.color-holder').css('background-color', codeHex);
				$('#pickcolor').val(codeHex);
			});
		});
              
            
!
999px

Console