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 | Schriftfarbwert #272727 | |||||
Detail | : | Hintergrund #bababa | Detail | : | Schrift #272727 | |
Farbwert | : | #bababa | Farbwert | : | #272727 | |
Farbe | : | gray186 | Farbe | : | gray39 | |
HTML | : | #bababa | HTML | : | #272727 | |
HTML (Wert) | : | #bababa | HTML (Wert) | : | #272727 | |
CSS | : | #bababa | CSS | : | #272727 | |
CSS (Wert) | : | #bababa | CSS (Wert) | : | #272727 | |
CSS (kürzest) | : | #bababa | CSS (kürzest) | : | #272727 | |
CSS (RGB) | : | rgb(186,186,186) | CSS (RGB) | : | rgb(39,39,39) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(15%,15%,15%) |
Verlauf Hintergrundfarbwert #bababa nach Schriftfarbwert #272727 | |||||||
#bababa | #a5a5a5 | #909090 | #7b7b7b | #666666 | #515151 | #3c3c3c | #272727 |
#bababa | #a5a5a5 | #909090 | #7b7b7b | #666666 | #515151 | #3c3c3c | #272727 |
Kombination von #bababa und #272727 | |||||||
Cras vestibulum tristique erat, ac interdum justo cursus in. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Auf Hintergrund #bababa ist #272727 ungeeignet, da sich die Farben zu ähnlich sind. Die Ähnlichkeit der Farben #272727 und #bababa ergibt sich zu 63.35%. Die Lesbarkeit dieser Kombination von Farben bewerte ich mit 36.65%. |
Hintergrundfarbwert #bababa | Schriftfarbwert #272727 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#bababa | #bababa | #bababa | #bababa | #272727 | #272727 | #272727 | #272727 |
#c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f | #454545 | #454545 | #212121 | #212121 |
#cdcdcd | #cdcdcd | #848484 | #848484 | #646464 | #646464 | #1b1b1b | #1b1b1b |
#d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a | #838383 | #838383 | #161616 | #161616 |
#e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f | #a2a2a2 | #a2a2a2 | #101010 | #101010 |
#ebebeb | #ebebeb | #353535 | #353535 | #c1c1c1 | #c1c1c1 | #0b0b0b | #0b0b0b |
#f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a | #e0e0e0 | #e0e0e0 | #050505 | #050505 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier umranden wir <thead> mit einem doppelten, 1 Pixel dicken Rahmen in Farbwert #272727 . Die Hintergrundfarbe für <thead> färben wir mit Farbwert #bababa. Dies ist mit HTML kaum möglich. Wir verwenden deshalb CSS zur Formatierung.
<style type="text/css"><!-- thead { border:1px double #272727; background-color:#bababa; } //--> </style>
Weiteres zu thead können Sie in Tabellen in HTML finden. Weiteres zum Tag thead finden Sie in der HTML Referenz unter <thead>.
Hier ändern wir die Textfarbe von <q> auf Farbwert #272727 und die Hintergrundfarbe von <q> auf Farbwert #bababa. Die Schriftart setzen wir auf sans-serif. Als Schriftgröße setzen wir 129%.
<style type="text/css"><!-- q { font-family: sans-serif; font-size: 129%; color: #272727; background-color: #bababa; } //--> </style>
Weiteres zum hier gezeigten HTML-Tag q erfahren Sie in der HTML Referenz unter <q>.