diff --git a/color.js b/color.js
index <HASH>..<HASH> 100644
--- a/color.js
+++ b/color.js
@@ -301,9 +301,11 @@ if (!net.brehaut) { net.brehaut = {}; }
         },
         
         function ( css ) {
-            if (css in css_colors) {
-              css = css_colors[css.toLowerCase()];
+            var lower = css.toLowerCase();
+            if (lower in css_colors) {
+              css = css_colors[lower];
             }
+            
             css = css.replace(/^#/,'');
 
             if (css.length === 0 ||
CSS color names are not case-sensitive any more