UNPKG
color-classifier
Version:
latest (0.0.1)
0.0.1
Classify the color along the reference color. using algorithm the CIEDE2000, RGB, HSV.
color-classifier
/
src
/
palette
/
w3c.js
22 lines
(20 loc)
•
287 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// https://www.w3.org/TR/css3-color/#html4
const
W3C = [
"#000000"
,
"#808080"
,
"#c0c0c0"
,
"#ffffff"
,
"#800000"
,
"#ff0000"
,
"#008000"
,
"#00ff00"
,
"#808000"
,
"#ffff00"
,
"#008080"
,
"#00ffff"
,
"#000080"
,
"#0000ff"
,
"#800080"
,
"#ff00ff"
];
export
default
W3C