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 #bababa | Schriftfarbe gray138 | |||||
Detail | : | Hintergrund #bababa | Detail | : | Schrift gray138 | |
Farbwert | : | #bababa | Farbe | : | gray138 | |
Farbe | : | gray186 | Farbwert | : | #8a8a8a | |
HTML | : | #bababa | HTML | : | gray138 | |
HTML (Wert) | : | #bababa | HTML (Wert) | : | #8a8a8a | |
CSS | : | #bababa | CSS | : | gray138 | |
CSS (Wert) | : | #bababa | CSS (Wert) | : | #8a8a8a | |
CSS (kürzest) | : | #bababa | CSS (kürzest) | : | #8a8a8a | |
CSS (RGB) | : | rgb(186,186,186) | CSS (RGB) | : | rgb(138,138,138) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(54%,54%,54%) |
Verlauf Hintergrundfarbwert #bababa nach Schriftfarbe gray138 | |||||||
#bababa | #b3b3b3 | #acacac | #a5a5a5 | #9e9e9e | #979797 | #909090 | #8a8a8a |
#bababa | #b3b3b3 | #acacac | #a5a5a5 | #9e9e9e | #979797 | #909090 | #8a8a8a |
Kombination von #bababa und gray138 | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum tristique erat, ac interdum justo cursus in. 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. | gray138 eignet sich nicht als Schriftfarbe auf Hintergrund #bababa, da sich sowohl Helligkeit als auch die Farben zu ähnlich sind. Die Ähnlichkeit der Farben gray138 und #bababa beträgt 91.53%. Die Lesbarkeit dieser Farbkombination liegt damit bei 8.47%. |
Hintergrundfarbwert #bababa | Schriftfarbe gray138 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#bababa | #bababa | #bababa | #bababa | #8a8a8a | #8a8a8a | #8a8a8a | #8a8a8a |
#c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f | #9a9a9a | #9a9a9a | #767676 | #767676 |
#cdcdcd | #cdcdcd | #848484 | #848484 | #ababab | #ababab | #626262 | #626262 |
#d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a | #bcbcbc | #bcbcbc | #4e4e4e | #4e4e4e |
#e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f | #cccccc | #cccccc | #3b3b3b | #3b3b3b |
#ebebeb | #ebebeb | #353535 | #353535 | #dddddd | #dddddd | #272727 | #272727 |
#f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a | #eeeeee | #eeeeee | #131313 | #131313 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern bei diesem Beispiel die Textfarbe von <caption> auf Farbe gray138. Die Schriftart setzen wir auf arial. Die Schriftgröße erhöhen wir auf 122%. Wir unterstreichen den Inhalt von <caption> mit Hilfe eines doppelten Rahmens mit 2 Punkte Dicke in Farbwert #bababa. In HTML ist das kaum möglich. Deshalb formatieren wir hier mit CSS.
<style type="text/css"><!-- caption { border-bottom-width:2pt; font-size:122%; border-bottom-style:double; font-family:arial; color:gray138; border-bottom-color:#bababa; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Mehr zum Thema können Sie in Tabellen in HTML nachsehen. Einzelheiten vom HTML-Tag <caption>.