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 #484848 | Schriftfarbwert #bababa | |||||
Detail | : | Hintergrund #484848 | Detail | : | Schrift #bababa | |
Farbwert | : | #484848 | Farbwert | : | #bababa | |
Farbe | : | gray72 | Farbe | : | gray186 | |
HTML | : | #484848 | HTML | : | #bababa | |
HTML (Wert) | : | #484848 | HTML (Wert) | : | #bababa | |
CSS | : | #484848 | CSS | : | #bababa | |
CSS (Wert) | : | #484848 | CSS (Wert) | : | #bababa | |
CSS (kürzest) | : | #484848 | CSS (kürzest) | : | #bababa | |
CSS (RGB) | : | rgb(72,72,72) | CSS (RGB) | : | rgb(186,186,186) | |
CSS (%RGB) | : | rgb(28%,28%,28%) | CSS (%RGB) | : | rgb(72%,72%,72%) |
Verlauf Hintergrundfarbwert #484848 nach Schriftfarbwert #bababa | |||||||
#484848 | #585858 | #686868 | #787878 | #898989 | #999999 | #a9a9a9 | #bababa |
#484848 | #585858 | #686868 | #787878 | #898989 | #999999 | #a9a9a9 | #bababa |
Kombination von #484848 und #bababa | |||||||
Cras vestibulum tristique erat, ac interdum justo cursus in. 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 id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | #bababa ist nicht als Schriftfarbe auf Hintergrund #484848 geeignet, da sich die Helligkeit und Farben zu ähnlich sind. Die Ähnlichkeit von #bababa und #484848 ergibt sich zu 77.56%. Die Lesbarkeit dieser Kombination von Farben liegt damit bei 22.44%. |
Hintergrundfarbwert #484848 | Schriftfarbwert #bababa | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#484848 | #484848 | #484848 | #484848 | #bababa | #bababa | #bababa | #bababa |
#626262 | #626262 | #3d3d3d | #3d3d3d | #c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f |
#7c7c7c | #7c7c7c | #333333 | #333333 | #cdcdcd | #cdcdcd | #848484 | #848484 |
#969696 | #969696 | #292929 | #292929 | #d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a |
#b0b0b0 | #b0b0b0 | #1e1e1e | #1e1e1e | #e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f |
#cacaca | #cacaca | #141414 | #141414 | #ebebeb | #ebebeb | #353535 | #353535 |
#e4e4e4 | #e4e4e4 | #0a0a0a | #0a0a0a | #f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier umranden wir <label> mit einem doppelten, 2 Punkte dicken Rahmen in Farbwert #bababa . Die Hintergrundfarbe für <label> setzen wir auf Farbwert #484848. Das ist mit HTML so kaum möglich. Deshalb nutzen wir hier CSS.
<style type="text/css"><!-- label { border:2pt double #bababa; background-color:#484848; } //--> </style>
Weiteres zum Thema können Sie in Formulare in HTML nachsehen. Zur Beschreibung vom Tag <label>.