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 #b4b4b4 | Schriftfarbwert #242424 | |||||
Detail | : | Hintergrund #b4b4b4 | Detail | : | Schrift #242424 | |
Farbwert | : | #b4b4b4 | Farbwert | : | #242424 | |
Farbe | : | gray180 | Farbe | : | gray36 | |
HTML | : | #b4b4b4 | HTML | : | #242424 | |
HTML (Wert) | : | #b4b4b4 | HTML (Wert) | : | #242424 | |
CSS | : | #b4b4b4 | CSS | : | #242424 | |
CSS (Wert) | : | #b4b4b4 | CSS (Wert) | : | #242424 | |
CSS (kürzest) | : | #b4b4b4 | CSS (kürzest) | : | #242424 | |
CSS (RGB) | : | rgb(180,180,180) | CSS (RGB) | : | rgb(36,36,36) | |
CSS (%RGB) | : | rgb(70%,70%,70%) | CSS (%RGB) | : | rgb(14%,14%,14%) |
Verlauf Hintergrundfarbwert #b4b4b4 nach Schriftfarbwert #242424 | |||||||
#b4b4b4 | #9f9f9f | #8a8a8a | #767676 | #616161 | #4d4d4d | #383838 | #242424 |
#b4b4b4 | #9f9f9f | #8a8a8a | #767676 | #616161 | #4d4d4d | #383838 | #242424 |
Kombination von #b4b4b4 und #242424 | |||||||
Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. 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. | Die Ähnlichkeit der Farben #242424 und #b4b4b4 ergibt sich zu 64.35%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 35.65%. #242424 eignet sich nicht als Schriftfarbe auf Hintergrund #b4b4b4. Zwar ist der Helligkeitsunterschied ok, die Farben selbst sind zu ähnlich. |
Hintergrundfarbwert #b4b4b4 | Schriftfarbwert #242424 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#b4b4b4 | #b4b4b4 | #b4b4b4 | #b4b4b4 | #242424 | #242424 | #242424 | #242424 |
#bebebe | #bebebe | #9a9a9a | #9a9a9a | #434343 | #434343 | #1e1e1e | #1e1e1e |
#c9c9c9 | #c9c9c9 | #808080 | #808080 | #626262 | #626262 | #191919 | #191919 |
#d4d4d4 | #d4d4d4 | #666666 | #666666 | #818181 | #818181 | #141414 | #141414 |
#dedede | #dedede | #4d4d4d | #4d4d4d | #a1a1a1 | #a1a1a1 | #0f0f0f | #0f0f0f |
#e9e9e9 | #e9e9e9 | #333333 | #333333 | #c0c0c0 | #c0c0c0 | #0a0a0a | #0a0a0a |
#f4f4f4 | #f4f4f4 | #191919 | #191919 | #dfdfdf | #dfdfdf | #050505 | #050505 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <center> auf Farbwert #242424 und die Hintergrundfarbe von <center> auf Farbwert #b4b4b4. Als Schriftart wählen wir arial. Als Schriftgröße wählen wir 123%.
<style type="text/css"><!-- center { font-size:123%; color:#242424; background-color:#b4b4b4; font-family:arial; } //--> </style>
Weiteres zum Thema finden Sie in Grundlegende Gestaltungselemente in HTML. Die Beschreibung des Befehl center finden Sie in der HTML Referenz unter <center>.