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 #212121 | Schriftfarbwert #aeaeae | |||||
Detail | : | Hintergrund #212121 | Detail | : | Schrift #aeaeae | |
Farbwert | : | #212121 | Farbwert | : | #aeaeae | |
Farbe | : | gray33 | Farbe | : | gray174 | |
HTML | : | #212121 | HTML | : | #aeaeae | |
HTML (Wert) | : | #212121 | HTML (Wert) | : | #aeaeae | |
CSS | : | #212121 | CSS | : | #aeaeae | |
CSS (Wert) | : | #212121 | CSS (Wert) | : | #aeaeae | |
CSS (kürzest) | : | #212121 | CSS (kürzest) | : | #aeaeae | |
CSS (RGB) | : | rgb(33,33,33) | CSS (RGB) | : | rgb(174,174,174) | |
CSS (%RGB) | : | rgb(12%,12%,12%) | CSS (%RGB) | : | rgb(68%,68%,68%) |
Verlauf Hintergrundfarbwert #212121 nach Schriftfarbwert #aeaeae | |||||||
#212121 | #353535 | #494949 | #5d5d5d | #717171 | #858585 | #999999 | #aeaeae |
#212121 | #353535 | #494949 | #5d5d5d | #717171 | #858585 | #999999 | #aeaeae |
Kombination von #212121 und #aeaeae | |||||||
Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit von #aeaeae und #212121 beträgt 65.44%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 34.56%. Auf Hintergrund #212121 ist #aeaeae ungeeignet. Zwar ist der Helligkeitsunterschied ok, die Farben selbst sind sich zu ähnlich. |
Hintergrundfarbwert #212121 | Schriftfarbwert #aeaeae | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#212121 | #212121 | #212121 | #212121 | #aeaeae | #aeaeae | #aeaeae | #aeaeae |
#404040 | #404040 | #1c1c1c | #1c1c1c | #b9b9b9 | #b9b9b9 | #959595 | #959595 |
#606060 | #606060 | #171717 | #171717 | #c5c5c5 | #c5c5c5 | #7c7c7c | #7c7c7c |
#808080 | #808080 | #121212 | #121212 | #d0d0d0 | #d0d0d0 | #636363 | #636363 |
#9f9f9f | #9f9f9f | #0e0e0e | #0e0e0e | #dcdcdc | #dcdcdc | #4a4a4a | #4a4a4a |
#bfbfbf | #bfbfbf | #090909 | #090909 | #e7e7e7 | #e7e7e7 | #313131 | #313131 |
#dfdfdf | #dfdfdf | #040404 | #040404 | #f3f3f3 | #f3f3f3 | #181818 | #181818 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <label> auf Farbwert #aeaeae und die Hintergrundfarbe von <label> auf Farbwert #212121. Die Schriftart ändern wir auf arial und ändern die Schriftgröße auf 13px.
<style type="text/css"><!-- label { color: #aeaeae; font-family: arial; font-size: 13px; background-color: #212121; } //--> </style>
Mehr zum Thema erfahren Sie in Formulare in HTML. Einzelheiten vom hier verwendeten Tag label sind in der HTML Referenz bei <label> genau beschrieben.