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 gray2 | |||||
Detail | : | Hintergrund #bababa | Detail | : | Schrift gray2 | |
Farbwert | : | #bababa | Farbe | : | gray2 | |
Farbe | : | gray186 | Farbwert | : | #020202 | |
HTML | : | #bababa | HTML | : | gray2 | |
HTML (Wert) | : | #bababa | HTML (Wert) | : | #020202 | |
CSS | : | #bababa | CSS | : | gray2 | |
CSS (Wert) | : | #bababa | CSS (Wert) | : | #020202 | |
CSS (kürzest) | : | #bababa | CSS (kürzest) | : | #020202 | |
CSS (RGB) | : | rgb(186,186,186) | CSS (RGB) | : | rgb(2,2,2) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(0%,0%,0%) |
Verlauf Hintergrundfarbwert #bababa nach Schriftfarbe gray2 | |||||||
#bababa | #9f9f9f | #858585 | #6b6b6b | #505050 | #363636 | #1c1c1c | #020202 |
#bababa | #9f9f9f | #858585 | #6b6b6b | #505050 | #363636 | #1c1c1c | #020202 |
Kombination von #bababa und gray2 | |||||||
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. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. | Die Ähnlichkeit von gray2 und #bababa beträgt 49.09%. Die Lesbarkeit dieser Farbkombination liegt damit bei 50.91%. gray2 eignet sich als Schriftfarbe auf Hintergrund #bababa, weil sowohl der Helligkeitsunterschied als auch der Unterschied in den Farben in Ordnung sind. |
Hintergrundfarbwert #bababa | Schriftfarbe gray2 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#bababa | #bababa | #bababa | #bababa | #020202 | #020202 | #020202 | #020202 |
#c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f | #262626 | #262626 | #010101 | #010101 |
#cdcdcd | #cdcdcd | #848484 | #848484 | #4a4a4a | #4a4a4a | #010101 | #010101 |
#d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a | #6e6e6e | #6e6e6e | #010101 | #010101 |
#e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f | #929292 | #929292 | #000000 | #000000 |
#ebebeb | #ebebeb | #353535 | #353535 | #b6b6b6 | #b6b6b6 | #000000 | #000000 |
#f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a | #dadada | #dadada | #000000 | #000000 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <blockquote> auf Farbe gray2 und die Hintergrundfarbe von <blockquote> auf Farbwert #bababa. Die Schriftart setzen wir auf monospace. Als Schriftgröße wählen wir 82%.
<style type="text/css"><!-- blockquote { color: gray2; font-size: 82%; background-color: #bababa; font-family: monospace; } //--> </style>
Weiteres zum Thema erfahren Sie in Blockorientierte Elemente in HTML. Der HTML-Befehl blockquote ist in der HTML Referenz unter <blockquote> beschrieben.
Für dieses Beispiel umranden wir <ins> mit einem gepunkteten, 5 Pixel dicken Rahmen in Farbe gray2 . Die Hintergrundfarbe für <ins> färben wir mit Farbwert #bababa. Mit HTML geht dies kaum. Daher formatieren wir mit CSS.
<style type="text/css"><!-- ins { border-width:5px; border-style:dotted; border-color:gray2; background-color:#bababa; } //--> </style>
Die Beschreibung vom HTML-Befehl ins finden Sie in der HTML Referenz unter <ins>.