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).
Hintergrundfarbe gray25 | Schriftfarbe gray135 | |||||
Detail | : | Hintergrund gray25 | Detail | : | Schrift gray135 | |
Farbe | : | gray25 | Farbe | : | gray135 | |
Farbwert | : | #191919 | Farbwert | : | #878787 | |
HTML | : | gray25 | HTML | : | gray135 | |
HTML (Wert) | : | #191919 | HTML (Wert) | : | #878787 | |
CSS | : | gray25 | CSS | : | gray135 | |
CSS (Wert) | : | #191919 | CSS (Wert) | : | #878787 | |
CSS (kürzest) | : | #191919 | CSS (kürzest) | : | #878787 | |
CSS (RGB) | : | rgb(25,25,25) | CSS (RGB) | : | rgb(135,135,135) | |
CSS (%RGB) | : | rgb(9%,9%,9%) | CSS (%RGB) | : | rgb(52%,52%,52%) |
Verlauf Hintergrundfarbe gray25 nach Schriftfarbe gray135 | |||||||
#191919 | #282828 | #383838 | #484848 | #575757 | #676767 | #777777 | #878787 |
#191919 | #282828 | #383838 | #484848 | #575757 | #676767 | #777777 | #878787 |
Kombination von gray25 und gray135 | |||||||
Cras vestibulum tristique erat, ac interdum justo cursus in. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. | gray135 eignet sich nicht als Schriftfarbe auf Hintergrund gray25, weil sich die Helligkeit und Farben zu ähnlich sind. Die Ähnlichkeit von gray135 und gray25 beträgt 76.69%. Die Lesbarkeit dieser Farbkombination liegt damit bei 23.31%. |
Hintergrundfarbe gray25 | Schriftfarbe gray135 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#191919 | #191919 | #191919 | #191919 | #878787 | #878787 | #878787 | #878787 |
#393939 | #393939 | #151515 | #151515 | #989898 | #989898 | #737373 | #737373 |
#5a5a5a | #5a5a5a | #111111 | #111111 | #a9a9a9 | #a9a9a9 | #606060 | #606060 |
#7b7b7b | #7b7b7b | #0e0e0e | #0e0e0e | #bababa | #bababa | #4d4d4d | #4d4d4d |
#9c9c9c | #9c9c9c | #0a0a0a | #0a0a0a | #cbcbcb | #cbcbcb | #393939 | #393939 |
#bdbdbd | #bdbdbd | #070707 | #070707 | #dcdcdc | #dcdcdc | #262626 | #262626 |
#dedede | #dedede | #030303 | #030303 | #ededed | #ededed | #131313 | #131313 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Eine Überschrift der 1. Stufe erzeugen Sie mit HTML-Tag <h1>. Diese können Sie hervorheben und farblich gestalten.
Hier ändern wir die Textfarbe von <h1> auf Farbe gray135 und die Hintergrundfarbe von <h1> auf Farbe gray25. Als Schriftart setzen wir monospace und als Schriftgröße entscheiden wir uns für 113%.
<style type="text/css"><!-- h1 { color:gray135; font-size:113%; background-color:gray25; font-family:monospace; } //--> </style>
Weiteres zum Thema lesen Sie in Grundlegende Gestaltungselemente in HTML. Mehr zum hier verwendeten HTML-Tag <h1>.