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 gray88 | Schriftfarbwert #525252 | |||||
Detail | : | Hintergrund gray88 | Detail | : | Schrift #525252 | |
Farbe | : | gray88 | Farbwert | : | #525252 | |
Farbwert | : | #585858 | Farbe | : | gray82 | |
HTML | : | gray88 | HTML | : | #525252 | |
HTML (Wert) | : | #585858 | HTML (Wert) | : | #525252 | |
CSS | : | gray88 | CSS | : | #525252 | |
CSS (Wert) | : | #585858 | CSS (Wert) | : | #525252 | |
CSS (kürzest) | : | #585858 | CSS (kürzest) | : | #525252 | |
CSS (RGB) | : | rgb(88,88,88) | CSS (RGB) | : | rgb(82,82,82) | |
CSS (%RGB) | : | rgb(34%,34%,34%) | CSS (%RGB) | : | rgb(32%,32%,32%) |
Verlauf Hintergrundfarbe gray88 nach Schriftfarbwert #525252 | |||||||
#585858 | #575757 | #565656 | #555555 | #545454 | #535353 | #525252 | #525252 |
#585858 | #575757 | #565656 | #555555 | #545454 | #535353 | #525252 | #525252 |
Kombination von gray88 und #525252 | |||||||
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 vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. | #525252 ist nicht als Schriftfarbe auf Hintergrund gray88 geeignet, da die Unterschiede in der Helligkeit und Farbe zu gering sind. Die Ähnlichkeit der Farben #525252 und gray88 beträgt 94.77%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 5.23%. |
Hintergrundfarbe gray88 | Schriftfarbwert #525252 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#585858 | #585858 | #585858 | #585858 | #525252 | #525252 | #525252 | #525252 |
#6f6f6f | #6f6f6f | #4b4b4b | #4b4b4b | #6a6a6a | #6a6a6a | #464646 | #464646 |
#878787 | #878787 | #3e3e3e | #3e3e3e | #838383 | #838383 | #3a3a3a | #3a3a3a |
#9f9f9f | #9f9f9f | #323232 | #323232 | #9c9c9c | #9c9c9c | #2e2e2e | #2e2e2e |
#b7b7b7 | #b7b7b7 | #252525 | #252525 | #b4b4b4 | #b4b4b4 | #232323 | #232323 |
#cfcfcf | #cfcfcf | #191919 | #191919 | #cdcdcd | #cdcdcd | #171717 | #171717 |
#e7e7e7 | #e7e7e7 | #0c0c0c | #0c0c0c | #e6e6e6 | #e6e6e6 | #0b0b0b | #0b0b0b |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern für dieses Beispiel die Textfarbe von <address> auf Farbwert #525252 und die Hintergrundfarbe von <address> auf Farbe gray88. Als Schriftart setzen wir monospace. Die Schriftgröße setzen wir auf 13px.
<style type="text/css"><!-- address { color:#525252; background-color:gray88; font-size:13px; font-family:monospace; } //--> </style>
Weiteres zum Thema address finden Sie in Blockorientierte Elemente in HTML. Weiteres zum HTML-Befehl address ist in der HTML Referenz unter <address> beschrieben.