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 gray73 | Schriftfarbwert #bababa | |||||
Detail | : | Hintergrund gray73 | Detail | : | Schrift #bababa | |
Farbe | : | gray73 | Farbwert | : | #bababa | |
Farbwert | : | #494949 | Farbe | : | gray186 | |
HTML | : | gray73 | HTML | : | #bababa | |
HTML (Wert) | : | #494949 | HTML (Wert) | : | #bababa | |
CSS | : | gray73 | CSS | : | #bababa | |
CSS (Wert) | : | #494949 | CSS (Wert) | : | #bababa | |
CSS (kürzest) | : | #494949 | CSS (kürzest) | : | #bababa | |
CSS (RGB) | : | rgb(73,73,73) | CSS (RGB) | : | rgb(186,186,186) | |
CSS (%RGB) | : | rgb(28%,28%,28%) | CSS (%RGB) | : | rgb(72%,72%,72%) |
Verlauf Hintergrundfarbe gray73 nach Schriftfarbwert #bababa | |||||||
#494949 | #595959 | #696969 | #797979 | #898989 | #999999 | #a9a9a9 | #bababa |
#494949 | #595959 | #696969 | #797979 | #898989 | #999999 | #a9a9a9 | #bababa |
Kombination von gray73 und #bababa | |||||||
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 #bababa und gray73 ergibt sich zu 77.91%. Die Lesbarkeit dieser Kombination von Farben ergibt sich zu 22.09%. #bababa eignet sich nicht als Schriftfarbe auf Hintergrund gray73, weil die Unterschiede in der Helligkeit und Farbe unzureichend sind. |
Hintergrundfarbe gray73 | Schriftfarbwert #bababa | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#494949 | #494949 | #494949 | #494949 | #bababa | #bababa | #bababa | #bababa |
#636363 | #636363 | #3e3e3e | #3e3e3e | #c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f |
#7d7d7d | #7d7d7d | #343434 | #343434 | #cdcdcd | #cdcdcd | #848484 | #848484 |
#979797 | #979797 | #292929 | #292929 | #d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a |
#b1b1b1 | #b1b1b1 | #1f1f1f | #1f1f1f | #e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f |
#cbcbcb | #cbcbcb | #141414 | #141414 | #ebebeb | #ebebeb | #353535 | #353535 |
#e5e5e5 | #e5e5e5 | #0a0a0a | #0a0a0a | #f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Bei diesem Beispiel umranden wir <textarea> mit einem 4 Punkte dicken, gezahnten Rahmen in Farbwert #bababa . Die Hintergrundfarbe für <textarea> färben wir mit Farbe gray73. In HTML ist das nicht möglich. Wir verwenden daher CSS zur Formatierung.
<style type="text/css"><!-- textarea { border:4pt ridge #bababa; background-color:gray73; } //--> </style>
Mehr zu textarea können Sie in Formulare in HTML nachlesen. Zur Beschreibung des HTML-Tag <textarea>.