Hướng dẫn what is the css code for color? - mã css cho màu gì?

Từ W3C Wiki

Nội dung

  • Từ khóa 1 màu Color keywords
    • Màu sắc 1.1basic Basic Colors
    • 1,2 màu sắc Extended colors
    • 1.3 Màu sắc hệ thống System Colors

Từ khóa màu

Màu sắc cơ bản

Được đặt tênSốMàu & nbsp; tênHex & nbsp; rgbSố thập phân
& nbsp;& nbsp;màu đen#0000000,0,0
& nbsp;& nbsp;màu đen#000000192,192,192
& nbsp;& nbsp;màu đen#000000128,128,128
& nbsp;& nbsp;màu đen#000000255,255,255
& nbsp;& nbsp;màu đen#000000128,0,0
& nbsp;& nbsp;màu đen#000000255,0,0
& nbsp;& nbsp;màu đen#000000128,0,128
& nbsp;& nbsp;màu đen#000000255,0,255
& nbsp;& nbsp;màu đen#0000000,128,0
& nbsp;& nbsp;màu đen#0000000,255,0
& nbsp;& nbsp;màu đen#000000128,128,0
& nbsp;& nbsp;màu đen#000000255,255,0
& nbsp;& nbsp;màu đen#0000000,0,128
& nbsp;& nbsp;màu đen#0000000,0,255
& nbsp;& nbsp;màu đen#0000000,128,128
& nbsp;& nbsp;màu đen#0000000,255,255

màu bạc

Được đặt tênSốMàu & nbsp; tênHex & nbsp; rgbSố thập phân
& nbsp;& nbsp;màu đen#000000240,248,255
& nbsp;& nbsp;màu đen#000000250,235,215
& nbsp;& nbsp;màu đen#0000000,255,255
& nbsp;& nbsp;màu đen#000000127,255,212
& nbsp;& nbsp;màu đen#000000240,255,255
& nbsp;& nbsp;màu đen#000000245,245,220
& nbsp;& nbsp;màu đen#000000255,228,196
& nbsp;& nbsp;màu đen#0000000,0,0
& nbsp;& nbsp;màu đen#000000255,235,205
& nbsp;& nbsp;màu đen#0000000,0,255
& nbsp;& nbsp;màu đen#000000138,43,226
& nbsp;& nbsp;màu đen#000000165,42,42
& nbsp;& nbsp;màu đen#000000222,184,135
& nbsp;& nbsp;màu bạc#C0C0C095,158,160
& nbsp;& nbsp;xám#808080127,255,0
& nbsp;& nbsp;trắng#FFFFFF210,105,30
& nbsp;& nbsp;Bỏ rơi#800000255,127,80
& nbsp;& nbsp;màu đỏ#FF0000100,149,237
& nbsp;& nbsp;màu đỏ tía#800080255,248,220
& nbsp;& nbsp;Fuchsia#Ff00ff220,20,60
& nbsp;& nbsp;màu xanh lá#0000000,255,255
& nbsp;& nbsp;màu bạc#C0C0C00,0,139
& nbsp;& nbsp;xám#8080800,139,139
& nbsp;& nbsp;trắng#FFFFFF184,134,11
& nbsp;& nbsp;Bỏ rơi#800000169,169,169
& nbsp;& nbsp;màu đỏ#FF00000,100,0
& nbsp;& nbsp;màu đỏ tía#800000169,169,169
& nbsp;& nbsp;màu đỏ#FF0000189,183,107
& nbsp;& nbsp;màu đỏ tía#800080139,0,139
& nbsp;& nbsp;Fuchsia#Ff00ff85,107,47
& nbsp;& nbsp;màu xanh lá#008000255,140,0
& nbsp;& nbsp;Vôi#00FF00153,50,204
& nbsp;& nbsp;Ôliu#808000139,0,0
& nbsp;& nbsp;màu vàng#FFFF00233,150,122
& nbsp;& nbsp;Hải quân#000080143,188,143
& nbsp;& nbsp;màu xanh da trời#0000ff72,61,139
& nbsp;& nbsp;teal#00808047,79,79
& nbsp;& nbsp;Aqua#00808047,79,79
& nbsp;& nbsp;Aqua#00ffff0,206,209
& nbsp;& nbsp;Màu sắc mở rộngAliceBlue148,0,211
& nbsp;& nbsp;#f0f8ffAntiquewhite255,20,147
& nbsp;& nbsp;#faebd7#00ffff0,191,255
& nbsp;& nbsp;Aquamarine#7FFFD4105,105,105
& nbsp;& nbsp;Azure#7FFFD4105,105,105
& nbsp;& nbsp;Azure#f0ffff30,144,255
& nbsp;& nbsp;be#f5f5dc178,34,34
& nbsp;& nbsp;bisque#FFE4C4255,250,240
& nbsp;& nbsp;Blanchedalmond#ffebcd34,139,34
& nbsp;& nbsp;màu đen#000000255,0,255
& nbsp;& nbsp;màu bạc#C0C0C0220,220,220
& nbsp;& nbsp;xám#808080248,248,255
& nbsp;& nbsp;trắng#FFFFFF255,215,0
& nbsp;& nbsp;Bỏ rơi#800000218,165,32
& nbsp;& nbsp;màu đen#000000128,128,128
& nbsp;& nbsp;màu đen#0000000,128,0
& nbsp;& nbsp;màu bạc#C0C0C0173,255,47
& nbsp;& nbsp;xám#000000128,128,128
& nbsp;& nbsp;#808080trắng240,255,240
& nbsp;& nbsp;#FFFFFFBỏ rơi255,105,180
& nbsp;& nbsp;#800000màu đỏ205,92,92
& nbsp;& nbsp;#FF0000màu đỏ tía75,0,130
& nbsp;& nbsp;#800080Fuchsia255,255,240
& nbsp;& nbsp;#Ff00ffmàu xanh lá240,230,140
& nbsp;& nbsp;#008000Vôi230,230,250
& nbsp;& nbsp;#00FF00Ôliu255,240,245
& nbsp;& nbsp;#808000màu vàng124,252,0
& nbsp;& nbsp;#FFFF00Hải quân255,250,205
& nbsp;& nbsp;#000080màu xanh da trời173,216,230
& nbsp;& nbsp;#0000ffteal240,128,128
& nbsp;& nbsp;#008080Aqua224,255,255
& nbsp;& nbsp;#00ffffMàu sắc mở rộng250,250,210
& nbsp;& nbsp;AliceBlue#f0f8ff211,211,211
& nbsp;& nbsp;Antiquewhite#faebd7144,238,144
& nbsp;& nbsp;#00ffff#f0f8ff211,211,211
& nbsp;& nbsp;Antiquewhite#faebd7255,182,193
& nbsp;& nbsp;#00ffffAquamarine255,160,122
& nbsp;& nbsp;#7FFFD4Azure32,178,170
& nbsp;& nbsp;#f0ffffbe135,206,250
& nbsp;& nbsp;#f5f5dcbisque119,136,153
& nbsp;& nbsp;#FFE4C4bisque119,136,153
& nbsp;& nbsp;#FFE4C4Blanchedalmond176,196,222
& nbsp;& nbsp;#ffebcd#0000ff255,255,224
& nbsp;& nbsp;màu đen#0000000,255,0
& nbsp;& nbsp;màu bạc#C0C0C050,205,50
& nbsp;& nbsp;xám#808080250,240,230
& nbsp;& nbsp;trắng#ff00ff255,0,255
& nbsp;& nbsp;Bỏ rơi#800000128,0,0
& nbsp;& nbsp;Bỏ rơi#800000102,205,170
& nbsp;& nbsp;Bỏ rơi#8000000,0,205
& nbsp;& nbsp;Trung bình#66CDAA186,85,211
& nbsp;& nbsp;Xanh nhẹ#0000CD147,112,219
& nbsp;& nbsp;trung bình#BA55D360,179,113
& nbsp;& nbsp;Mediumpurple#9370db123,104,238
& nbsp;& nbsp;Trung bình#3CB3710,250,154
& nbsp;& nbsp;MediumSlateblue#7b68ee72,209,204
& nbsp;& nbsp;Mediumspringgreen#00FA9A199,21,133
& nbsp;& nbsp;MediumTurquoise#48d1cc25,25,112
& nbsp;& nbsp;Mediumvioletred#C71585245,255,250
& nbsp;& nbsp;màu xanh nửa đêm#191970255,228,225
& nbsp;& nbsp;Mintcream#f5fffa255,228,181
& nbsp;& nbsp;Mistyrose#ffe4e1255,222,173
& nbsp;& nbsp;Gianh cao#ffe4b50,0,128
& nbsp;& nbsp;Navajowhite#ffdead253,245,230
& nbsp;& nbsp;Hải quân#000080128,128,0
& nbsp;& nbsp;Oldlace#fdf5e6107,142,35
& nbsp;& nbsp;Ôliu#808000255,165,0
& nbsp;& nbsp;Màu xám ô liu#6b8e23255,69,0
& nbsp;& nbsp;trái cam#FFA500218,112,214
& nbsp;& nbsp;cam#FF4500238,232,170
& nbsp;& nbsp;Hoa lan#DA70D6152,251,152
& nbsp;& nbsp;Palegoldenrod#EEE8AA175,238,238
& nbsp;& nbsp;Palegreen#98FB98219,112,147
& nbsp;& nbsp;Paleturquoise#Afeeee255,239,213
& nbsp;& nbsp;nhợt nhạt#DB7093255,218,185
& nbsp;& nbsp;đu đủ#FFEFD5205,133,63
& nbsp;& nbsp;Peachpuff#ffdab9255,192,203
& nbsp;& nbsp;Peru#CD853F221,160,221
& nbsp;& nbsp;Hồng#ffc0cb176,224,230
& nbsp;& nbsp;mận#DDA0DD128,0,128
& nbsp;& nbsp;Powderblue#B0E0E6255,0,0
& nbsp;& nbsp;màu đỏ tía#800080188,143,143
& nbsp;& nbsp;màu đỏ#FF000065,105,225
& nbsp;& nbsp;Rosybrown#BC8F8F139,69,19
& nbsp;& nbsp;xanh đậm#4169e1250,128,114
& nbsp;& nbsp;Yên xe màu nâu#8B4513244,164,96
& nbsp;& nbsp;Cá hồi#FA807246,139,87
& nbsp;& nbsp;Sandybrown#F4A460255,245,238
& nbsp;& nbsp;Biển#2E8B57160,82,45
& nbsp;& nbsp;vỏ sò#fff5ee192,192,192
& nbsp;& nbsp;Sienna#A0522D135,206,235
& nbsp;& nbsp;màu bạc#C0C0C0106,90,205
& nbsp;& nbsp;trời xanh#87Ceeb112,128,144
& nbsp;& nbsp;màu xanh đá phiến#87Ceeb112,128,144
& nbsp;& nbsp;màu xanh đá phiến#6a5acd255,250,250
& nbsp;& nbsp;phiến đá xám#7080900,255,127
& nbsp;& nbsp;Slategreytuyết70,130,180
& nbsp;& nbsp;#fffafaXuân xanh210,180,140
& nbsp;& nbsp;#00ff7fmàu xanh thép0,128,128
& nbsp;& nbsp;#4682b4làn da rám nắng216,191,216
& nbsp;& nbsp;#D2B48Cteal255,99,71
& nbsp;& nbsp;#008080Thánh địa64,224,208
& nbsp;& nbsp;#D8BFD8cà chua238,130,238
& nbsp;& nbsp;#FF6347màu ngọc lam245,222,179
& nbsp;& nbsp;#40e0d0màu tím255,255,255
& nbsp;& nbsp;#EE82EElúa mì245,245,245
& nbsp;& nbsp;#F5DEB3trắng255,255,0
& nbsp;& nbsp;#FFFFFFkhói trắng154,205,50

#F5F5F5

màu vàng As of [CSS Color], the CSS2 System Color values have been deprecated in favor of the CSS3 UI ‘[appearance]’ property.

  • #FFFF00
    Active window border.
  • Màu vàng
    Active window caption.
  • #9ACD32
    Background color of multiple document interface.
  • Màu sắc hệ thống
    Desktop background.
  • LƯU Ý: Khi có màu [màu CSS], các giá trị màu hệ thống CSS2 đã không được dùng để có lợi cho thuộc tính CSS3 UI ‘[xuất hiện].
    The face background color for 3-D elements that appear 3-D due to one layer of surrounding border.
  • ActiveBorder0Active Biên giới cửa sổ.
    The color of the border facing the light source for 3-D elements that appear 3-D due to one layer of surrounding border.
  • Chú thích cửa sổ ActiveCaptionActive.
    The color of the border away from the light source for 3-D elements that appear 3-D due to one layer of surrounding border.
  • AppWorkspaceBackground màu của nhiều giao diện tài liệu.
    Text on push buttons.
  • Nền BackgroundDesktop.
    Text in caption, size box, and scrollbar arrow box.
  • ButtonFace Màu nền khuôn mặt cho các phần tử 3 chiều xuất hiện 3-D do một lớp đường viền xung quanh.
    Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.
  • ButtonHighlight Màu của đường viền đối diện với nguồn ánh sáng cho các phần tử 3 chiều xuất hiện 3-D do một lớp đường viền xung quanh.
    Item(s) selected in a control.
  • ButtonShadow Màu của đường viền ra khỏi nguồn sáng cho các phần tử 3 chiều xuất hiện 3-D do một lớp đường viền xung quanh.
    Text of item(s) selected in a control.
  • ButtonTextText trên các nút nhấn.
    Inactive window border.
  • CaptionTextText trong chú thích, hộp kích thước và hộp mũi tên cuộn.
    Inactive window caption.
  • GrayTextgrayed (vô hiệu hóa) văn bản. Màu này được đặt thành #000 nếu trình điều khiển hiển thị hiện tại không hỗ trợ màu xám rắn.
    Color of text in an inactive caption.
  • ________ 10item (s) được chọn trong một điều khiển.
    Background color for tooltip controls.
  • ActiveCaption1Text của (các) mục được chọn trong một điều khiển.
    Text color for tooltip controls.
  • ActiveCaption2 Đường viền cửa sổ hoạt động.
    Menu background.
  • ActiveCaption3 Chú thích cửa sổ hoạt động.
    Text in menus.
  • ActiveCaption4Color của văn bản trong một chú thích không hoạt động.
    Scroll bar gray area.
  • ActiveCaption5Background màu cho các điều khiển công cụ.
    The color of the darker (generally outer) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.
  • Màu ActiveCaption6TEXT cho các điều khiển công cụ.
    The face background color for 3-D elements that appear 3-D due to two concentric layers of surrounding border.
  • ActiveCaption7Menu Bối cảnh.
    The color of the lighter (generally outer) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.
  • ActiveCaption8Text trong menu.
    The color of the darker (generally inner) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.
  • AppWorkspace4 Màu sắc của nhẹ hơn (nói chung là bên trong) của hai đường viền so với nguồn ánh sáng cho các phần tử 3 chiều xuất hiện 3-D do hai lớp đồng tâm của đường viền xung quanh.
    The color of the lighter (generally inner) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.
  • AppWorkspace5 WWINDOW Nền.
    Window background.
  • Khung AppWorkspace6Window.
    Window frame.
  • AppWorkspace7Text trong Windows.
    Text in windows.

Làm thế nào để bạn tô màu trong CSS?

Cách phổ biến nhất để chỉ định màu sắc trong CSS là sử dụng các giá trị thập lục phân (hoặc hex) của chúng.Các giá trị HEX thực sự chỉ là một cách khác nhau để thể hiện các giá trị RGB.Thay vì sử dụng ba số từ 0 đến 255, bạn sử dụng sáu số thập lục phân.Số Hex có thể là 0-9 và A-F.use their hexadecimal (or hex) values. Hex values are actually just a different way to represent RGB values. Instead of using three numbers between 0 and 255, you use six hexadecimal numbers. Hex numbers can be 0-9 and A-F.

Các loại màu trong CSS là gì?

Màu sắc được chỉ định bằng tên màu được xác định trước, hoặc các giá trị RGB, HEX, HSL, RGBA, HSLA.

Làm cách nào để có được màu RGB trong CSS?

Định dạng của giá trị RGB trong ký hiệu chức năng là 'RGB (' theo sau là danh sách được phân tách bằng dấu phẩy gồm ba giá trị số (ba giá trị số nguyên (0-255, 0-255, 0-255)) theo sau là ')'.rgb(' followed by a comma-separated list of three numerical values (three integer values(0-255, 0-255, 0-255)) followed by ')'.

Mã HTML cho màu là gì?

Mã màu HTML là bộ ba hình lục giác đại diện cho các màu đỏ, xanh lá cây và xanh dương (#RRGGBB).Ví dụ, trong màu đỏ màu, mã màu là #FF0000, có màu xanh lá cây '255' màu đỏ, '0' và '0'.Có 16.777.216 mã màu HTML có thể và tất cả đều có thể nhìn thấy trên màn hình 24 bit.hexadecimal triplets representing the colors red, green, and blue (#RRGGBB). For example, in the color red, the color code is #FF0000, which is '255' red, '0' green, and '0' blue. There are 16,777,216 possible HTML color codes, and all are visible on a 24-bit display.