projects > ntc js (name that color javascript)

ntc js (Name that Color JavaScript)

Live Demo of ntc

Download ntc

Credits

License

Usage

Sample HTML Code

<script type="text/javascript" src="https://chir.ag/projects/ntc/ntc.js"></script>

<script type="text/javascript">

  var n_match = ntc.name("#6195ED");
  n_rgb = n_match[0]; // RGB value of closest match
  n_name = n_match[1]; // Text string: Color name
  n_exactmatch = n_match[2]; // True if exact color match

  alert(n_match);

</script>

Documentation

Disclaimer