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 #161616 | Schriftfarbe gray135 | |||||
Detail | : | Hintergrund #161616 | Detail | : | Schrift gray135 | |
Farbwert | : | #161616 | Farbe | : | gray135 | |
Farbe | : | gray22 | Farbwert | : | #878787 | |
HTML | : | #161616 | HTML | : | gray135 | |
HTML (Wert) | : | #161616 | HTML (Wert) | : | #878787 | |
CSS | : | #161616 | CSS | : | gray135 | |
CSS (Wert) | : | #161616 | CSS (Wert) | : | #878787 | |
CSS (kürzest) | : | #161616 | CSS (kürzest) | : | #878787 | |
CSS (RGB) | : | rgb(22,22,22) | CSS (RGB) | : | rgb(135,135,135) | |
CSS (%RGB) | : | rgb(8%,8%,8%) | CSS (%RGB) | : | rgb(52%,52%,52%) |
Verlauf Hintergrundfarbwert #161616 nach Schriftfarbe gray135 | |||||||
#161616 | #262626 | #363636 | #464646 | #565656 | #666666 | #767676 | #878787 |
#161616 | #262626 | #363636 | #464646 | #565656 | #666666 | #767676 | #878787 |
Kombination von #161616 und gray135 | |||||||
Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. 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. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. | Auf Hintergrund #161616 ist gray135 ungeeignet. Die Helligkeit und Farben sind sich zu ähnlich. Die Ähnlichkeit der Farben gray135 und #161616 ergibt sich zu 76.01%. Die Lesbarkeit dieser Kombination ergibt sich zu 23.99%. |
Hintergrundfarbwert #161616 | Schriftfarbe gray135 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#161616 | #161616 | #161616 | #161616 | #878787 | #878787 | #878787 | #878787 |
#373737 | #373737 | #121212 | #121212 | #989898 | #989898 | #737373 | #737373 |
#585858 | #585858 | #0f0f0f | #0f0f0f | #a9a9a9 | #a9a9a9 | #606060 | #606060 |
#797979 | #797979 | #0c0c0c | #0c0c0c | #bababa | #bababa | #4d4d4d | #4d4d4d |
#9b9b9b | #9b9b9b | #090909 | #090909 | #cbcbcb | #cbcbcb | #393939 | #393939 |
#bcbcbc | #bcbcbc | #060606 | #060606 | #dcdcdc | #dcdcdc | #262626 | #262626 |
#dddddd | #dddddd | #030303 | #030303 | #ededed | #ededed | #131313 | #131313 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <label> auf Farbe gray135 und die Hintergrundfarbe von <label> auf Farbwert #161616. Die Schriftart ändern wir auf courier new. Als Schriftgröße setzen wir 13px.
<style type="text/css"><!-- label { color: gray135; font-family: courier new; font-size: 13px; background-color: #161616; } //--> </style>
Weiteres zu label können Sie in Formulare in HTML nachlesen. Der Tag label ist in der HTML Referenz bei <label> genau zusammengestellt.