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 #141414 | Schriftfarbwert #a4a4a4 | |||||
Detail | : | Hintergrund #141414 | Detail | : | Schrift #a4a4a4 | |
Farbwert | : | #141414 | Farbwert | : | #a4a4a4 | |
Farbe | : | gray20 | Farbe | : | gray164 | |
HTML | : | #141414 | HTML | : | #a4a4a4 | |
HTML (Wert) | : | #141414 | HTML (Wert) | : | #a4a4a4 | |
CSS | : | #141414 | CSS | : | #a4a4a4 | |
CSS (Wert) | : | #141414 | CSS (Wert) | : | #a4a4a4 | |
CSS (kürzest) | : | #141414 | CSS (kürzest) | : | #a4a4a4 | |
CSS (RGB) | : | rgb(20,20,20) | CSS (RGB) | : | rgb(164,164,164) | |
CSS (%RGB) | : | rgb(7%,7%,7%) | CSS (%RGB) | : | rgb(64%,64%,64%) |
Verlauf Hintergrundfarbwert #141414 nach Schriftfarbwert #a4a4a4 | |||||||
#141414 | #282828 | #3d3d3d | #515151 | #666666 | #7a7a7a | #8f8f8f | #a4a4a4 |
#141414 | #282828 | #3d3d3d | #515151 | #666666 | #7a7a7a | #8f8f8f | #a4a4a4 |
Kombination von #141414 und #a4a4a4 | |||||||
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 vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit von #a4a4a4 und #141414 beträgt 64.81%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 35.19%. #a4a4a4 ist nicht als Schriftfarbe auf Hintergrund #141414 geeignet. Zwar ist der Helligkeitsunterschied gut, doch die Farben selbst sind zu ähnlich. |
Hintergrundfarbwert #141414 | Schriftfarbwert #a4a4a4 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#141414 | #141414 | #141414 | #141414 | #a4a4a4 | #a4a4a4 | #a4a4a4 | #a4a4a4 |
#353535 | #353535 | #111111 | #111111 | #b1b1b1 | #b1b1b1 | #8c8c8c | #8c8c8c |
#575757 | #575757 | #0e0e0e | #0e0e0e | #bebebe | #bebebe | #757575 | #757575 |
#787878 | #787878 | #0b0b0b | #0b0b0b | #cbcbcb | #cbcbcb | #5d5d5d | #5d5d5d |
#9a9a9a | #9a9a9a | #080808 | #080808 | #d8d8d8 | #d8d8d8 | #464646 | #464646 |
#bbbbbb | #bbbbbb | #050505 | #050505 | #e5e5e5 | #e5e5e5 | #2e2e2e | #2e2e2e |
#dddddd | #dddddd | #020202 | #020202 | #f2f2f2 | #f2f2f2 | #171717 | #171717 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Bei diesem Beispiel ändern wir die Textfarbe von <acronym> auf Farbwert #a4a4a4 und die Hintergrundfarbe von <acronym> auf Farbwert #141414. Die Schriftart ändern wir auf arial und als Schriftgröße wählen wir 110%.
<style type="text/css"><!-- acronym { font-size:110%; font-family:arial; background-color:#141414; color:#a4a4a4; } //--> </style>
Mehr zum hier gezeigten Befehl <acronym>.