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 #a5a5a5 | Schriftfarbwert #484848 | |||||
Detail | : | Hintergrund #a5a5a5 | Detail | : | Schrift #484848 | |
Farbwert | : | #a5a5a5 | Farbwert | : | #484848 | |
Farbe | : | gray165 | Farbe | : | gray72 | |
HTML | : | #a5a5a5 | HTML | : | #484848 | |
HTML (Wert) | : | #a5a5a5 | HTML (Wert) | : | #484848 | |
CSS | : | #a5a5a5 | CSS | : | #484848 | |
CSS (Wert) | : | #a5a5a5 | CSS (Wert) | : | #484848 | |
CSS (kürzest) | : | #a5a5a5 | CSS (kürzest) | : | #484848 | |
CSS (RGB) | : | rgb(165,165,165) | CSS (RGB) | : | rgb(72,72,72) | |
CSS (%RGB) | : | rgb(64%,64%,64%) | CSS (%RGB) | : | rgb(28%,28%,28%) |
Verlauf Hintergrundfarbwert #a5a5a5 nach Schriftfarbwert #484848 | |||||||
#a5a5a5 | #979797 | #8a8a8a | #7d7d7d | #6f6f6f | #626262 | #555555 | #484848 |
#a5a5a5 | #979797 | #8a8a8a | #7d7d7d | #6f6f6f | #626262 | #555555 | #484848 |
Kombination von #a5a5a5 und #484848 | |||||||
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. | Die Ähnlichkeit von #484848 und #a5a5a5 beträgt 82.32%. Die Lesbarkeit dieser Kombination von Farben liegt damit bei 17.68%. Auf Hintergrund #a5a5a5 ist #484848 ungeeignet. Die Helligkeit und Farben sind sich zu ähnlich. |
Hintergrundfarbwert #a5a5a5 | Schriftfarbwert #484848 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#a5a5a5 | #a5a5a5 | #a5a5a5 | #a5a5a5 | #484848 | #484848 | #484848 | #484848 |
#b1b1b1 | #b1b1b1 | #8d8d8d | #8d8d8d | #626262 | #626262 | #3d3d3d | #3d3d3d |
#bebebe | #bebebe | #757575 | #757575 | #7c7c7c | #7c7c7c | #333333 | #333333 |
#cbcbcb | #cbcbcb | #5e5e5e | #5e5e5e | #969696 | #969696 | #292929 | #292929 |
#d8d8d8 | #d8d8d8 | #464646 | #464646 | #b0b0b0 | #b0b0b0 | #1e1e1e | #1e1e1e |
#e5e5e5 | #e5e5e5 | #2f2f2f | #2f2f2f | #cacaca | #cacaca | #141414 | #141414 |
#f2f2f2 | #f2f2f2 | #171717 | #171717 | #e4e4e4 | #e4e4e4 | #0a0a0a | #0a0a0a |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <col> auf Farbwert #484848 und die Hintergrundfarbe von <col> auf Farbwert #a5a5a5. Als Schriftart setzen wir sans-serif und setzen die Schriftgröße auf 95%.
<style type="text/css"><!-- col { font-family: sans-serif; font-size: 95%; background-color: #a5a5a5; color: #484848; } //--> </style>
Weiteres zum Thema können Sie in Tabellen in HTML erfahren. Der hier genutzte HTML-Tag col ist in der HTML Referenz unter <col> genau zusammengestellt.