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 #acacac | Schriftfarbwert #808080 | |||||
Detail | : | Hintergrund #acacac | Detail | : | Schrift #808080 | |
Farbwert | : | #acacac | Farbwert | : | #808080 | |
Farbe | : | gray172 | Farbe | : | gray | |
HTML | : | #acacac | HTML | : | #808080 | |
HTML (Wert) | : | #acacac | HTML (Wert) | : | #808080 | |
CSS | : | #acacac | CSS | : | #808080 | |
CSS (Wert) | : | #acacac | CSS (Wert) | : | #808080 | |
CSS (kürzest) | : | #acacac | CSS (kürzest) | : | #808080 | |
CSS (RGB) | : | rgb(172,172,172) | CSS (RGB) | : | rgb(128,128,128) | |
CSS (%RGB) | : | rgb(67%,67%,67%) | CSS (%RGB) | : | rgb(50%,50%,50%) |
Verlauf Hintergrundfarbwert #acacac nach Schriftfarbwert #808080 | |||||||
#acacac | #a5a5a5 | #9f9f9f | #999999 | #929292 | #8c8c8c | #868686 | #808080 |
#acacac | #a5a5a5 | #9f9f9f | #999999 | #929292 | #8c8c8c | #868686 | #808080 |
Kombination von #acacac und #808080 | |||||||
Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. | #808080 ist nicht als Schriftfarbe auf Hintergrund #acacac geeignet. Weder der Helligkeitsunterschied noch der Farbunterschied sind gross genug. Die Ähnlichkeit von #808080 und #acacac beträgt 91.72%. Die Lesbarkeit dieser Farbkombination ergibt sich zu 8.28%. |
Hintergrundfarbwert #acacac | Schriftfarbwert #808080 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#acacac | #acacac | #acacac | #acacac | #808080 | #808080 | #808080 | #808080 |
#b7b7b7 | #b7b7b7 | #939393 | #939393 | #929292 | #929292 | #6d6d6d | #6d6d6d |
#c3c3c3 | #c3c3c3 | #7a7a7a | #7a7a7a | #a4a4a4 | #a4a4a4 | #5b5b5b | #5b5b5b |
#cfcfcf | #cfcfcf | #626262 | #626262 | #b6b6b6 | #b6b6b6 | #494949 | #494949 |
#dbdbdb | #dbdbdb | #494949 | #494949 | #c8c8c8 | #c8c8c8 | #363636 | #363636 |
#e7e7e7 | #e7e7e7 | #313131 | #313131 | #dadada | #dadada | #242424 | #242424 |
#f3f3f3 | #f3f3f3 | #181818 | #181818 | #ececec | #ececec | #121212 | #121212 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <td> auf Farbwert #808080 und die Hintergrundfarbe von <td> auf Farbwert #acacac. Als Schriftart wählen wir arial. Die Schriftgröße vergrößern wir auf 125%.
<style type="text/css"><!-- td { color: #808080; font-family: arial; font-size: 125%; background-color: #acacac; } //--> </style>
Weiteres zum Thema erfahren Sie in Tabellen in HTML. Weiteres zum hier verwendeten HTML-Tag <td>.