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 #3c3c3c | Schriftfarbwert #a8a8a8 | |||||
Detail | : | Hintergrund #3c3c3c | Detail | : | Schrift #a8a8a8 | |
Farbwert | : | #3c3c3c | Farbwert | : | #a8a8a8 | |
Farbe | : | gray60 | Farbe | : | gray168 | |
HTML | : | #3c3c3c | HTML | : | #a8a8a8 | |
HTML (Wert) | : | #3c3c3c | HTML (Wert) | : | #a8a8a8 | |
CSS | : | #3c3c3c | CSS | : | #a8a8a8 | |
CSS (Wert) | : | #3c3c3c | CSS (Wert) | : | #a8a8a8 | |
CSS (kürzest) | : | #3c3c3c | CSS (kürzest) | : | #a8a8a8 | |
CSS (RGB) | : | rgb(60,60,60) | CSS (RGB) | : | rgb(168,168,168) | |
CSS (%RGB) | : | rgb(23%,23%,23%) | CSS (%RGB) | : | rgb(65%,65%,65%) |
Verlauf Hintergrundfarbwert #3c3c3c nach Schriftfarbwert #a8a8a8 | |||||||
#3c3c3c | #4b4b4b | #5a5a5a | #6a6a6a | #797979 | #898989 | #989898 | #a8a8a8 |
#3c3c3c | #4b4b4b | #5a5a5a | #6a6a6a | #797979 | #898989 | #989898 | #a8a8a8 |
Kombination von #3c3c3c und #a8a8a8 | |||||||
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. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit von #a8a8a8 und #3c3c3c beträgt 77.91%. Die Lesbarkeit dieser Farbkombination liegt damit bei 22.09%. Auf Hintergrund #3c3c3c ist #a8a8a8 ungeeignet, da sich die Helligkeit und Farben zu ähnlich sind. |
Hintergrundfarbwert #3c3c3c | Schriftfarbwert #a8a8a8 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#3c3c3c | #3c3c3c | #3c3c3c | #3c3c3c | #a8a8a8 | #a8a8a8 | #a8a8a8 | #a8a8a8 |
#575757 | #575757 | #333333 | #333333 | #b4b4b4 | #b4b4b4 | #909090 | #909090 |
#737373 | #737373 | #2a2a2a | #2a2a2a | #c0c0c0 | #c0c0c0 | #787878 | #787878 |
#8f8f8f | #8f8f8f | #222222 | #222222 | #cdcdcd | #cdcdcd | #606060 | #606060 |
#ababab | #ababab | #191919 | #191919 | #d9d9d9 | #d9d9d9 | #484848 | #484848 |
#c7c7c7 | #c7c7c7 | #111111 | #111111 | #e6e6e6 | #e6e6e6 | #303030 | #303030 |
#e3e3e3 | #e3e3e3 | #080808 | #080808 | #f2f2f2 | #f2f2f2 | #181818 | #181818 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <label> auf Farbwert #a8a8a8 und die Hintergrundfarbe von <label> auf Farbwert #3c3c3c. Die Schriftart setzen wir auf monospace. Als Schriftgröße wählen wir 81%.
<style type="text/css"><!-- label { color:#a8a8a8; background-color:#3c3c3c; font-size:81%; font-family:monospace; } //--> </style>
Mehr zum Thema finden Sie in Formulare in HTML. Mehr zum Befehl label ist in der HTML Referenz bei <label> ausführlich beschrieben.