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 #bababa | Schriftfarbe gray55 | |||||
Detail | : | Hintergrund #bababa | Detail | : | Schrift gray55 | |
Farbwert | : | #bababa | Farbe | : | gray55 | |
Farbe | : | gray186 | Farbwert | : | #373737 | |
HTML | : | #bababa | HTML | : | gray55 | |
HTML (Wert) | : | #bababa | HTML (Wert) | : | #373737 | |
CSS | : | #bababa | CSS | : | gray55 | |
CSS (Wert) | : | #bababa | CSS (Wert) | : | #373737 | |
CSS (kürzest) | : | #bababa | CSS (kürzest) | : | #373737 | |
CSS (RGB) | : | rgb(186,186,186) | CSS (RGB) | : | rgb(55,55,55) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(21%,21%,21%) |
Verlauf Hintergrundfarbwert #bababa nach Schriftfarbe gray55 | |||||||
#bababa | #a7a7a7 | #949494 | #818181 | #6f6f6f | #5c5c5c | #494949 | #373737 |
#bababa | #a7a7a7 | #949494 | #818181 | #6f6f6f | #5c5c5c | #494949 | #373737 |
Kombination von #bababa und gray55 | |||||||
Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras id velit ante. Cras vestibulum tristique erat, ac interdum justo cursus in. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | gray55 ist nicht als Schriftfarbe auf Hintergrund #bababa geeignet. Zwar ist der Helligkeitsunterschied gut, die Farben selbst sind sich jedoch zu ähnlich. Die Ähnlichkeit von gray55 und #bababa beträgt 70.79%. Die Lesbarkeit dieser Kombination liegt damit bei 29.21%. |
Hintergrundfarbwert #bababa | Schriftfarbe gray55 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#bababa | #bababa | #bababa | #bababa | #373737 | #373737 | #373737 | #373737 |
#c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f | #535353 | #535353 | #2f2f2f | #2f2f2f |
#cdcdcd | #cdcdcd | #848484 | #848484 | #707070 | #707070 | #272727 | #272727 |
#d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a | #8c8c8c | #8c8c8c | #1f1f1f | #1f1f1f |
#e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f | #a9a9a9 | #a9a9a9 | #171717 | #171717 |
#ebebeb | #ebebeb | #353535 | #353535 | #c5c5c5 | #c5c5c5 | #0f0f0f | #0f0f0f |
#f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a | #e2e2e2 | #e2e2e2 | #070707 | #070707 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <acronym> auf Farbe gray55. Die Schriftart setzen wir auf courier new und vergrößern die Schriftgröße auf 121%. Wir unterstreichen den Inhalt von <acronym> mit Hilfe eines gestrichelten Rahmens mit 1 Pixel Dicke in Farbwert #bababa. In HTML geht das kaum. Daher formatieren wir hier mit CSS.
<style type="text/css"><!-- acronym { border-bottom-color: #bababa; font-size: 121%; border-bottom-width: 1px; border-bottom-style: dashed; color: gray55; font-family: courier new; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zum hier verwendeten HTML-Tag <acronym>.