von Thomas Salvador.
Graustufen gehören zu den unbunten Farben und zeichnen sich dadurch aus, dass ihre Farbwerte für Rot, Grün und Blau gleich sind.
Graustufen enthalten natürlich alle 16 Graustufen und insbesondere die unbunten Grundfarben Schwarz und Weiß.
Um 256 Graustufen in HTML bzw. CSS zu erzeugen, wählen wir Farbwerte rr, gg und bb mit Werten von 0 bis 255 (d.h. hexadezimal 00 bis ff).
Hintergrundfarbwert #838383 | Schriftfarbe gray77 | |||||
Detail | : | Hintergrund #838383 | Detail | : | Schrift gray77 | |
Farbwert | : | #838383 | Farbe | : | gray77 | |
Farbe | : | gray131 | Farbwert | : | #4d4d4d | |
HTML | : | #838383 | HTML | : | gray77 | |
HTML (Wert) | : | #838383 | HTML (Wert) | : | #4d4d4d | |
CSS | : | #838383 | CSS | : | gray77 | |
CSS (Wert) | : | #838383 | CSS (Wert) | : | #4d4d4d | |
CSS (kürzest) | : | #838383 | CSS (kürzest) | : | #4d4d4d | |
CSS (RGB) | : | rgb(131,131,131) | CSS (RGB) | : | rgb(77,77,77) | |
CSS (%RGB) | : | rgb(51%,51%,51%) | CSS (%RGB) | : | rgb(30%,30%,30%) |
Verlauf Hintergrundfarbwert #838383 nach Schriftfarbe gray77 | |||||||
#838383 | #7b7b7b | #737373 | #6b6b6b | #646464 | #5c5c5c | #545454 | #4d4d4d |
#838383 | #7b7b7b | #737373 | #6b6b6b | #646464 | #5c5c5c | #545454 | #4d4d4d |
Kombination von #838383 und gray77 | |||||||
Cras vestibulum tristique erat, ac interdum justo cursus in. 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. | Auf Hintergrund #838383 ist gray77 ungeeignet. Sowohl Helligkeit als auch die Farben sind zu ähnlich. Die Ähnlichkeit von gray77 und #838383 ergibt sich zu 89.38%. Die Lesbarkeit dieser Kombination liegt damit bei 10.62%. |
Hintergrundfarbwert #838383 | Schriftfarbe gray77 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#838383 | #838383 | #838383 | #838383 | #4d4d4d | #4d4d4d | #4d4d4d | #4d4d4d |
#949494 | #949494 | #707070 | #707070 | #666666 | #666666 | #424242 | #424242 |
#a6a6a6 | #a6a6a6 | #5d5d5d | #5d5d5d | #7f7f7f | #7f7f7f | #373737 | #373737 |
#b8b8b8 | #b8b8b8 | #4a4a4a | #4a4a4a | #999999 | #999999 | #2c2c2c | #2c2c2c |
#c9c9c9 | #c9c9c9 | #383838 | #383838 | #b2b2b2 | #b2b2b2 | #212121 | #212121 |
#dbdbdb | #dbdbdb | #252525 | #252525 | #cccccc | #cccccc | #161616 | #161616 |
#ededed | #ededed | #121212 | #121212 | #e5e5e5 | #e5e5e5 | #0b0b0b | #0b0b0b |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <button> auf Farbe gray77 und die Hintergrundfarbe von <button> auf Farbwert #838383. Als Schriftart setzen wir monospace. Als Schriftgröße wählen wir 13px.
<style type="text/css"><!-- button { color: gray77; background-color: #838383; font-family: monospace; font-size: 13px; } //--> </style>
Weiteres zu button erfahren Sie in Formulare in HTML. Weiteres zum hier genutzten Befehl <button>.
Wir ändern für dieses Beispiel die Textfarbe von <caption> auf Farbe gray77. Die Schriftart setzen wir auf sans-serif und setzen die Schriftgröße auf 11px. Wir unterstreichen den Inhalt von <caption> mit Hilfe eines gestrichelten Rahmens mit 5 Pixel Dicke in Farbwert #838383. Mit HTML geht das nicht. Wir nutzen deshalb CSS zur Formatierung.
<style type="text/css"><!-- caption { color: gray77; border-bottom-style: dashed; border-bottom-color: #838383; font-size: 11px; font-family: sans-serif; border-bottom-width: 5px; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Mehr zu caption können Sie in Tabellen in HTML nachsehen. Mehr zum Tag caption finden Sie in der HTML Referenz unter <caption>.