System.ConsoleColor 颜色 控制台前后背景色

本页列出了C#  System.ConsoleColor 每个枚举对应的颜色,其中DarkYellow颜色无法通过 Color.FromName(“DarkYellow”) 获取到对应的颜色。

 

枚举值名称十六进制RGB颜色呈现效果色调-饱和度-亮度(HSB)预定义 颜色命名 颜色系统 颜色
0 Black #000000 0,0,0   0,0,0
1 DarkBlue #00008B 0,0,139   240,1,0.273
2 DarkGreen #006400 0,100,0   120,1,0.196
3 DarkCyan #008B8B 0,139,139   180,1,0.273
4 DarkRed #8B0000 139,0,0   0,1,0.273
5 DarkMagenta #8B008B 139,0,139   300,1,0.273
6 DarkYellow #808000 128,128,0   60,1,0.25
7 Gray #808080 128,128,128   0,0,0.502
8 DarkGray #A9A9A9 169,169,169   0,0,0.663
9 Blue #0000FF 0,0,255   240,1,0.5
10 Green #008000 0,128,0   120,1,0.251
11 Cyan #00FFFF 0,255,255   180,1,0.5
12 Red #FF0000 255,0,0   0,1,0.5
13 Magenta #FF00FF 255,0,255   300,1,0.5
14 Yellow #FFFF00 255,255,0   60,1,0.5
15 White #FFFFFF 255,255,255   0,0,1

本数据来源:  http://www.yansedaquan.com/SeBan/ConsoleColor

 

posted @ 2017-06-28 11:45  大房子  阅读(492)  评论(0编辑  收藏  举报