Skip to contents

A color system based on Chinese traditional colors with 1058 representative colors. This system provides functions to access colors by name, create color palettes, and generate segmented colormaps.

Usage

ChineseColors()

Value

A ChineseColors object. Detailed information can be found in print.ChineseColors().

See also

chinese_colors for the dataset of Chinese traditional colors. get_chinese_palettes for getting Chinese color palettes. visual_colors for visualizing any color vector. get_colors for searching colors in dataset and palettes.

Examples

cc <- ChineseColors()
cc
#> 
#> ── Chinese Traditional Colors System 
#> 
#> ── Total 1058 colors 
#> • blue: 92 colors
#> • cyan: 51 colors
#> • gray_brown: 323 colors
#> • green: 123 colors
#> • orange: 92 colors
#> • purple: 95 colors
#> • red: 181 colors
#> • yellow: 101 colors
#> 
#> ── Methods: 
#> • get_color(...): Get color information (searches only in dataset)
#> • visual_colors(loc_range, num_per_row, title, name_type)
#> 
#> ── See also: 
#> [get_colors()] for searching colors in dataset and palettes

# Get a color by pinyin name
cc$get_color("pinlan")
#> 
#> ── Found in: 
#> #2B73AF: "ChineseSet128" and "ChineseBlue"
#> num  name    name_ch  rgb             hex      category  category_ch   
#> 44   pinlan  品蓝     (43, 115, 175)  #2B73AF  blue      蓝            
# Or use external function
get_colors("pinlan")
#> 
#> ── Found in: 
#> #2B73AF: "ChineseSet128" and "ChineseBlue"
#> num  name    name_ch  rgb             hex      category  category_ch   
#> 44   pinlan  品蓝     (43, 115, 175)  #2B73AF  blue      蓝            

# By number
cc$get_color(44)
#> 
#> ── Found in: 
#> #2B73AF: "ChineseSet128" and "ChineseBlue"
#> num  name    name_ch  rgb             hex      category  category_ch   
#> 44   pinlan  品蓝     (43, 115, 175)  #2B73AF  blue      蓝            
get_colors(44)
#> 
#> ── Found in: 
#> #2B73AF: "ChineseSet128" and "ChineseBlue"
#> num  name    name_ch  rgb             hex      category  category_ch   
#> 44   pinlan  品蓝     (43, 115, 175)  #2B73AF  blue      蓝            

# By hex code
cc$get_color("#2B73AF")
#> 
#> ── Found in: 
#> #2B73AF: "ChineseSet128" and "ChineseBlue"
#> num  name    name_ch  rgb             hex      category  category_ch   
#> 44   pinlan  品蓝     (43, 115, 175)  #2B73AF  blue      蓝            
get_colors("#2B73AF") # Also searches in palettes
#> 
#> ── Found in: 
#> #2B73AF: "ChineseSet128" and "ChineseBlue"
#> num  name    name_ch  rgb             hex      category  category_ch   
#> 44   pinlan  品蓝     (43, 115, 175)  #2B73AF  blue      蓝            

# Multiple colors
cc$get_color("pinlan", "piao")
#> 
#> ── Found in: 
#> #2B73AF: "ChineseSet128" and "ChineseBlue"
#> #7FECAD: "ChineseGreen"
#> num  name    name_ch  rgb              hex      category  category_ch   
#> 44   pinlan  品蓝     (43, 115, 175)   #2B73AF  blue      蓝            
#> 256  piao    缥       (127, 236, 173)  #7FECAD  green     绿            
get_colors("pinlan", "piao")
#> 
#> ── Found in: 
#> #2B73AF: "ChineseSet128" and "ChineseBlue"
#> #7FECAD: "ChineseGreen"
#> num  name    name_ch  rgb              hex      category  category_ch   
#> 44   pinlan  品蓝     (43, 115, 175)   #2B73AF  blue      蓝            
#> 256  piao    缥       (127, 236, 173)  #7FECAD  green     绿            

cc$get_color(91:100)
#> 
#> ── Found in: 
#> #006D87: "ChineseSet128" and "ChineseCyan"
#> #C6E6E8: "ChineseBlue"
#> #D2F0F4: "ChineseBlue"
#> #13393E: "ChineseCyan"
#> #284852: "ChineseCyan"
#> #424C50: "ChineseCyan"
#> #3B5554: "ChineseCyan"
#> #41555D: "ChineseCyan"
#> #426666: "ChineseCyan"
#> #226B68: "ChineseCyan"
#> num  name        name_ch  rgb              hex      category  category_ch   
#> 91   haitianlan  海天蓝   (198, 230, 232)  #C6E6E8  blue      蓝            
#> 92   shuilan     水蓝     (210, 240, 244)  #D2F0F4  blue      蓝            
#> 93   luozidai    螺子黛   (19, 57, 62)     #13393E  cyan      青            
#> 94   qinggua     青緺     (40, 72, 82)     #284852  cyan      青            
#> 95   yaqing      鸦青     (66, 76, 80)     #424C50  cyan      青            
#> 96   daise       黛色     (59, 85, 84)     #3B5554  cyan      青            
#> 97   an          黯       (65, 85, 93)     #41555D  cyan      青            
#> 98   dailv       黛绿     (66, 102, 102)   #426666  cyan      青            
#> 99   daose       䌦色     (34, 107, 104)   #226B68  cyan      青            
#> 100  ruancui     软翠     (0, 109, 135)    #006D87  cyan      青            
get_colors(91:100)
#> 
#> ── Found in: 
#> #006D87: "ChineseSet128" and "ChineseCyan"
#> #C6E6E8: "ChineseBlue"
#> #D2F0F4: "ChineseBlue"
#> #13393E: "ChineseCyan"
#> #284852: "ChineseCyan"
#> #424C50: "ChineseCyan"
#> #3B5554: "ChineseCyan"
#> #41555D: "ChineseCyan"
#> #426666: "ChineseCyan"
#> #226B68: "ChineseCyan"
#> num  name        name_ch  rgb              hex      category  category_ch   
#> 91   haitianlan  海天蓝   (198, 230, 232)  #C6E6E8  blue      蓝            
#> 92   shuilan     水蓝     (210, 240, 244)  #D2F0F4  blue      蓝            
#> 93   luozidai    螺子黛   (19, 57, 62)     #13393E  cyan      青            
#> 94   qinggua     青緺     (40, 72, 82)     #284852  cyan      青            
#> 95   yaqing      鸦青     (66, 76, 80)     #424C50  cyan      青            
#> 96   daise       黛色     (59, 85, 84)     #3B5554  cyan      青            
#> 97   an          黯       (65, 85, 93)     #41555D  cyan      青            
#> 98   dailv       黛绿     (66, 102, 102)   #426666  cyan      青            
#> 99   daose       䌦色     (34, 107, 104)   #226B68  cyan      青            
#> 100  ruancui     软翠     (0, 109, 135)    #006D87  cyan      青            

# Chinese names
widget_ch <- cc$visual_colors(
  title = "Chinese Traditional Colors",
  name_type = "chinese"
)
htmltools::browsable(widget_ch)
Chinese Traditional Colors













































































































































绿
























绿


















绿




西





绿







绿


绿


绿



绿


绿

绿

绿




绿


绿

绿



绿


绿


绿



绿

绿


绿



绿



绿


殿
绿



绿




绿



绿



绿



绿





绿



绿

绿


绿

绿




绿

绿

绿
绿




绿


绿


绿



绿




绿

绿

绿


绿


绿

绿


绿


绿


绿


绿


绿



绿

绿


绿




绿



绿

绿




绿

绿


绿

绿




绿


绿


绿









绿



绿



绿

绿




绿



绿




绿




绿



绿



绿









绿






绿















绿








































































































































































































寿






















































































































































































槿






























































































































































































退





















































































































槿














槿














































































绿

















绿


绿


绿






















绿








绿




绿


























绿









绿

































绿






















绿

绿















绿




绿








绿























绿

绿














绿











































鹿





































































鹿




























































































# pinyin as names widget <- cc$visual_colors( loc_range = c(1, 90), title = "Chinese Traditional Colors", name_type = "pinyin" ) htmltools::browsable(widget)
Chinese Traditional Colors
ganglan
yanhanlan
anlan
gangqing
qilin
gelan
shenhuilan
huaqing
dishiqing
futouqing
huilan
ganqing
dianlan
ganyu
lanse
yindanshilin
liulilan
lancaihe
canglan
yanlan
mingqing
qingdai
qingquetoudai
bicheng
zangqing
wuxu
jingtailan
cengqing
qinghualan
zhanlan
haitaolan
feiyancaolan
dianqing
tangcilan
roulan
yuqinlan
baolan
bolinlan
shiqing
haijunlan
ananlan
qunqing
qingming
pinlan
niluolan
qianniuhualan
tianlan
huaqing
honglan
danlanhui
diechilan
cangcang
songlan
youlan
tushoulan
chaolan
baoshilan
yuanweilan
yunshanlan
gulan
kongquelan
jinglan
jiande
yushandoulan
haiqing
jise
rualan
jianshilan
dongfangjibai
biqing
pinyue
qielan
qingshanlan
jiqing
tianqing
xinglan
qiubolan
piaose
qingshan
yunshuilan
qingshuilan
yunmen
hulan
biluo
hushuilan
oulan
xinglang
jingtianlan
bilan
yuantianlan
# rgb as names widget_rgb <- cc$visual_colors( loc_range = c(1, 90), title = "Colors with RGB values", name_type = "rgb" ) htmltools::browsable(widget_rgb)
Colors with RGB values
(15, 20, 35)
(19, 24, 36)
(16, 31, 48)
(20, 35, 52)
(18, 38, 79)
(28, 41, 56)
(19, 44, 51)
(26, 40, 71)
(0, 52, 96)
(25, 50, 95)
(33, 55, 61)
(0, 51, 113)
(33, 58, 112)
(0, 61, 116)
(56, 48, 142)
(28, 63, 115)
(34, 64, 106)
(6, 67, 111)
(19, 72, 87)
(20, 74, 116)
(69, 70, 89)
(69, 70, 94)
(53, 78, 107)
(18, 80, 123)
(46, 78, 126)
(38, 73, 157)
(0, 78, 162)
(83, 81, 100)
(42, 83, 144)
(66, 77, 153)
(21, 85, 154)
(15, 89, 164)
(22, 97, 171)
(17, 101, 154)
(16, 104, 152)
(18, 110, 130)
(75, 92, 196)
(18, 107, 174)
(79, 100, 174)
(52, 108, 156)
(49, 112, 167)
(23, 114, 180)
(50, 113, 174)
(43, 115, 175)
(36, 116, 181)
(17, 119, 176)
(22, 119, 179)
(35, 118, 183)
(33, 119, 184)
(94, 121, 135)
(78, 124, 161)
(89, 118, 186)
(107, 121, 142)
(23, 129, 181)
(65, 130, 164)
(41, 131, 187)
(36, 134, 185)
(21, 139, 184)
(47, 144, 185)
(26, 148, 188)
(73, 148, 196)
(86, 152, 195)
(111, 148, 205)
(97, 154, 195)
(34, 162, 195)
(141, 147, 200)
(110, 155, 197)
(102, 169, 201)
(139, 163, 199)
(92, 179, 204)
(138, 171, 204)
(136, 171, 218)
(143, 178, 201)
(99, 187, 208)
(60, 190, 231)
(147, 181, 207)
(138, 188, 209)
(133, 192, 219)
(163, 187, 219)
(186, 204, 217)
(147, 213, 220)
(162, 210, 226)
(48, 223, 243)
(174, 208, 238)
(176, 213, 223)
(199, 210, 212)
(188, 212, 231)
(195, 215, 223)
(62, 237, 231)
(208, 223, 230)
# hex as names widget_hex <- cc$visual_colors( loc_range = c(1, 90), title = "Colors with hex codes", name_type = "hex" ) htmltools::browsable(widget_hex)
Colors with hex codes
#0F1423
#131824
#101F30
#142334
#12264F
#1C2938
#132C33
#1A2847
#003460
#19325F
#21373D
#003371
#213A70
#003D74
#38308E
#1C3F73
#22406A
#06436F
#134857
#144A74
#454659
#45465E
#354E6B
#12507B
#2E4E7E
#26499D
#004EA2
#535164
#2A5390
#424D99
#15559A
#0F59A4
#1661AB
#11659A
#106898
#126E82
#4B5CC4
#126BAE
#4F64AE
#346C9C
#3170A7
#1772B4
#3271AE
#2B73AF
#2474B5
#1177B0
#1677B3
#2376B7
#2177B8
#5E7987
#4E7CA1
#5976BA
#6B798E
#1781B5
#4182A4
#2983BB
#2486B9
#158BB8
#2F90B9
#1A94BC
#4994C4
#5698C3
#6F94CD
#619AC3
#22A2C3
#8D93C8
#6E9BC5
#66A9C9
#8BA3C7
#5CB3CC
#8AABCC
#88ABDA
#8FB2C9
#63BBD0
#3CBEE7
#93B5CF
#8ABCD1
#85C0DB
#A3BBDB
#BACCD9
#93D5DC
#A2D2E2
#30DFF3
#AED0EE
#B0D5DF
#C7D2D4
#BCD4E7
#C3D7DF
#3EEDE7
#D0DFE6