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).
Hintergrundfarbe gray186 | Schriftfarbwert #bbbbbb | |||||
Detail | : | Hintergrund gray186 | Detail | : | Schrift #bbbbbb | |
Farbe | : | gray186 | Farbwert | : | #bbbbbb | |
Farbwert | : | #bababa | Farbe | : | gray187 | |
HTML | : | gray186 | HTML | : | #bbbbbb | |
HTML (Wert) | : | #bababa | HTML (Wert) | : | #bbbbbb | |
CSS | : | gray186 | CSS | : | #bbbbbb | |
CSS (Wert) | : | #bababa | CSS (Wert) | : | #bbbbbb | |
CSS (kürzest) | : | #bababa | CSS (kürzest) | : | #bbb | |
CSS (RGB) | : | rgb(186,186,186) | CSS (RGB) | : | rgb(187,187,187) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(73%,73%,73%) |
Verlauf Hintergrundfarbe gray186 nach Schriftfarbwert #bbbbbb | |||||||
#bababa | #bababa | #bababa | #bababa | #bababa | #bababa | #bababa | #bbbbbb |
#bababa | #bababa | #bababa | #bababa | #bababa | #bababa | #bababa | #bbbbbb |
Kombination von gray186 und #bbbbbb | |||||||
Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. 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 vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. | Die Ähnlichkeit von #bbbbbb und gray186 ergibt sich zu 95.19%. Die Lesbarkeit dieser Kombination bewerte ich mit 4.81%. Auf Hintergrund gray186 ist #bbbbbb ungeeignet, weil die Helligkeit und Farben zu ähnlich sind. |
Hintergrundfarbe gray186 | Schriftfarbwert #bbbbbb | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#bababa | #bababa | #bababa | #bababa | #bbbbbb | #bbbbbb | #bbbbbb | #bbbbbb |
#c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f | #c4c4c4 | #c4c4c4 | #a0a0a0 | #a0a0a0 |
#cdcdcd | #cdcdcd | #848484 | #848484 | #cecece | #cecece | #858585 | #858585 |
#d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a | #d8d8d8 | #d8d8d8 | #6a6a6a | #6a6a6a |
#e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f | #e1e1e1 | #e1e1e1 | #505050 | #505050 |
#ebebeb | #ebebeb | #353535 | #353535 | #ebebeb | #ebebeb | #353535 | #353535 |
#f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a | #f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier umranden wir <textarea> mit einem 2 Pixel dicken, herausstehenden Rahmen in Farbwert #bbbbbb . Die Hintergrundfarbe für <textarea> färben wir entsprechend mit Farbe gray186. Mit HTML ist das kaum möglich. Deshalb nutzen wir hier CSS.
<style type="text/css"><!-- textarea { border:2px outset #bbb; background-color:gray186; } //--> </style>
Weiteres zum Thema textarea können Sie in Formulare in HTML nachlesen. Die Beschreibung des hier genutzten Tag textarea lesen Sie in der HTML Referenz unter <textarea>.