von Thomas Salvador.
Farben werden in HTML entweder mit ihrem Namen oder mit ihrem Wert beschrieben.
Netscape führte seinerzeit die websicheren Farben ein. Neben diesen Farbwerten, die einem bestimmten Schema folgen, definierte man noch 120 Werte und ordnete ihnen Namen zu.
Hintergrundfarbe lightskyblue | Schriftfarbe antiquewhite | |||||
Detail | : | Hintergrund lightskyblue | Detail | : | Schrift antiquewhite | |
Farbe | : | lightskyblue | Farbe | : | antiquewhite | |
Farbwert | : | #87cefa | Farbwert | : | #faebd7 | |
HTML | : | lightskyblue | HTML | : | antiquewhite | |
HTML (Wert) | : | #87cefa | HTML (Wert) | : | #faebd7 | |
CSS | : | lightskyblue | CSS | : | antiquewhite | |
CSS (Wert) | : | #87cefa | CSS (Wert) | : | #faebd7 | |
CSS (kürzest) | : | #87cefa | CSS (kürzest) | : | #faebd7 | |
CSS (RGB) | : | rgb(135,206,250) | CSS (RGB) | : | rgb(250,235,215) | |
CSS (%RGB) | : | rgb(52%,80%,98%) | CSS (%RGB) | : | rgb(98%,92%,84%) |
Verlauf Hintergrundfarbe lightskyblue nach Schriftfarbe antiquewhite | |||||||
#87cefa | #97d2f5 | #a7d6f0 | #b8daeb | #c8dee6 | #d9e2e1 | #e9e6dc | #faebd7 |
#87cefa | #97d2f5 | #a7d6f0 | #b8daeb | #c8dee6 | #d9e2e1 | #e9e6dc | #faebd7 |
Kombination von lightskyblue und antiquewhite | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras vestibulum tristique erat, ac interdum justo cursus in. | antiquewhite ist nicht als Schriftfarbe auf Hintergrund lightskyblue geeignet. Die Helligkeit und Farben sind zu ähnlich. Die Ähnlichkeit von antiquewhite und lightskyblue beträgt 93.02%. Die Lesbarkeit dieser Kombination bewerte ich mit 6.98%. |
Hintergrundfarbe lightskyblue | Schriftfarbe antiquewhite | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#87cefa | #87cefa | #87cefa | #87cefa | #faebd7 | #faebd7 | #faebd7 | #faebd7 |
#98d5fa | #98d5fa | #73b0d6 | #73b0d6 | #faeddc | #faeddc | #d6c9b8 | #d6c9b8 |
#a9dcfb | #a9dcfb | #6093b2 | #6093b2 | #fbf0e2 | #fbf0e2 | #b2a799 | #b2a799 |
#bae3fc | #bae3fc | #4d758e | #4d758e | #fcf3e8 | #fcf3e8 | #8e867a | #8e867a |
#cbeafc | #cbeafc | #39586b | #39586b | #fcf6ed | #fcf6ed | #6b645c | #6b645c |
#dcf1fd | #dcf1fd | #263a47 | #263a47 | #fdf9f3 | #fdf9f3 | #47433d | #47433d |
#edf8fe | #edf8fe | #131d23 | #131d23 | #fefcf9 | #fefcf9 | #23211e | #23211e |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern bei diesem Beispiel die Textfarbe von <caption> auf Farbe antiquewhite und die Hintergrundfarbe von <caption> auf Farbe lightskyblue. Als Schriftart setzen wir sans-serif. Die Schriftgröße setzen wir auf 13px.
<style type="text/css"><!-- caption { font-size:13px; background-color:lightskyblue; font-family:sans-serif; color:antiquewhite; } //--> </style>
Weiteres zum Thema caption finden Sie in Tabellen in HTML. Weiteres zum HTML-Tag <caption>.