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 #8a8a8a | Schriftfarbwert #ebebeb | |||||
Detail | : | Hintergrund #8a8a8a | Detail | : | Schrift #ebebeb | |
Farbwert | : | #8a8a8a | Farbwert | : | #ebebeb | |
Farbe | : | gray138 | Farbe | : | gray235 | |
HTML | : | #8a8a8a | HTML | : | #ebebeb | |
HTML (Wert) | : | #8a8a8a | HTML (Wert) | : | #ebebeb | |
CSS | : | #8a8a8a | CSS | : | #ebebeb | |
CSS (Wert) | : | #8a8a8a | CSS (Wert) | : | #ebebeb | |
CSS (kürzest) | : | #8a8a8a | CSS (kürzest) | : | #ebebeb | |
CSS (RGB) | : | rgb(138,138,138) | CSS (RGB) | : | rgb(235,235,235) | |
CSS (%RGB) | : | rgb(54%,54%,54%) | CSS (%RGB) | : | rgb(92%,92%,92%) |
Verlauf Hintergrundfarbwert #8a8a8a nach Schriftfarbwert #ebebeb | |||||||
#8a8a8a | #979797 | #a5a5a5 | #b3b3b3 | #c1c1c1 | #cfcfcf | #dddddd | #ebebeb |
#8a8a8a | #979797 | #a5a5a5 | #b3b3b3 | #c1c1c1 | #cfcfcf | #dddddd | #ebebeb |
Kombination von #8a8a8a und #ebebeb | |||||||
Cras vestibulum tristique erat, ac interdum justo cursus in. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. | Die Ähnlichkeit von #ebebeb und #8a8a8a ergibt sich zu 86.21%. Die Lesbarkeit dieser Farbkombination ergibt sich zu 13.79%. #ebebeb ist nicht als Schriftfarbe auf Hintergrund #8a8a8a geeignet, da sowohl Helligkeit als auch die Farben zu ähnlich sind. |
Hintergrundfarbwert #8a8a8a | Schriftfarbwert #ebebeb | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#8a8a8a | #8a8a8a | #8a8a8a | #8a8a8a | #ebebeb | #ebebeb | #ebebeb | #ebebeb |
#9a9a9a | #9a9a9a | #767676 | #767676 | #ededed | #ededed | #c9c9c9 | #c9c9c9 |
#ababab | #ababab | #626262 | #626262 | #f0f0f0 | #f0f0f0 | #a7a7a7 | #a7a7a7 |
#bcbcbc | #bcbcbc | #4e4e4e | #4e4e4e | #f3f3f3 | #f3f3f3 | #868686 | #868686 |
#cccccc | #cccccc | #3b3b3b | #3b3b3b | #f6f6f6 | #f6f6f6 | #646464 | #646464 |
#dddddd | #dddddd | #272727 | #272727 | #f9f9f9 | #f9f9f9 | #434343 | #434343 |
#eeeeee | #eeeeee | #131313 | #131313 | #fcfcfc | #fcfcfc | #212121 | #212121 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <label> auf Farbwert #ebebeb und die Hintergrundfarbe von <label> auf Farbwert #8a8a8a. Als Schriftart setzen wir courier new und als Schriftgröße entscheiden wir uns für 9px.
<style type="text/css"><!-- label { font-family:courier new; color:#ebebeb; font-size:9px; background-color:#8a8a8a; } //--> </style>
Mehr zu label können Sie in Formulare in HTML finden. Die Beschreibung vom hier gezeigten HTML-Tag label finden Sie in der HTML Referenz unter <label>.