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 #a3a3a3 | Schriftfarbe gray64 | |||||
Detail | : | Hintergrund #a3a3a3 | Detail | : | Schrift gray64 | |
Farbwert | : | #a3a3a3 | Farbe | : | gray64 | |
Farbe | : | gray163 | Farbwert | : | #404040 | |
HTML | : | #a3a3a3 | HTML | : | gray64 | |
HTML (Wert) | : | #a3a3a3 | HTML (Wert) | : | #404040 | |
CSS | : | #a3a3a3 | CSS | : | gray64 | |
CSS (Wert) | : | #a3a3a3 | CSS (Wert) | : | #404040 | |
CSS (kürzest) | : | #a3a3a3 | CSS (kürzest) | : | #404040 | |
CSS (RGB) | : | rgb(163,163,163) | CSS (RGB) | : | rgb(64,64,64) | |
CSS (%RGB) | : | rgb(63%,63%,63%) | CSS (%RGB) | : | rgb(25%,25%,25%) |
Verlauf Hintergrundfarbwert #a3a3a3 nach Schriftfarbe gray64 | |||||||
#a3a3a3 | #949494 | #868686 | #787878 | #6a6a6a | #5c5c5c | #4e4e4e | #404040 |
#a3a3a3 | #949494 | #868686 | #787878 | #6a6a6a | #5c5c5c | #4e4e4e | #404040 |
Kombination von #a3a3a3 und gray64 | |||||||
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. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. | Die Ähnlichkeit von gray64 und #a3a3a3 beträgt 80.43%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 19.57%. gray64 eignet sich nicht als Schriftfarbe auf Hintergrund #a3a3a3. Die Helligkeit und Farben sind sich zu ähnlich. |
Hintergrundfarbwert #a3a3a3 | Schriftfarbe gray64 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#a3a3a3 | #a3a3a3 | #a3a3a3 | #a3a3a3 | #404040 | #404040 | #404040 | #404040 |
#b0b0b0 | #b0b0b0 | #8b8b8b | #8b8b8b | #5b5b5b | #5b5b5b | #363636 | #363636 |
#bdbdbd | #bdbdbd | #747474 | #747474 | #767676 | #767676 | #2d2d2d | #2d2d2d |
#cacaca | #cacaca | #5d5d5d | #5d5d5d | #919191 | #919191 | #242424 | #242424 |
#d7d7d7 | #d7d7d7 | #454545 | #454545 | #adadad | #adadad | #1b1b1b | #1b1b1b |
#e4e4e4 | #e4e4e4 | #2e2e2e | #2e2e2e | #c8c8c8 | #c8c8c8 | #121212 | #121212 |
#f1f1f1 | #f1f1f1 | #171717 | #171717 | #e3e3e3 | #e3e3e3 | #090909 | #090909 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Für dieses Beispiel ändern wir die Textfarbe von <form> auf Farbe gray64 und die Hintergrundfarbe von <form> auf Farbwert #a3a3a3. Als Schriftart wählen wir verdana. Die Schriftgröße setzen wir auf 125%.
<style type="text/css"><!-- form { font-size:125%; background-color:#a3a3a3; color:gray64; font-family:verdana; } //--> </style>
Mehr zu form können Sie in Formulare in HTML erfahren. Weiteres zum hier gezeigten HTML-Befehl form lesen Sie in der HTML Referenz unter <form>.
Für dieses Beispiel umranden wir <col> mit einem . Die Hintergrundfarbe für <col> färben wir entsprechend mit Farbwert #a3a3a3. Mit HTML ist das kaum möglich. Daher formatieren wir hier mit CSS.
<style type="text/css"><!-- col { border-width:4px; border-color:gray64; border-style:dashed; background-color:#a3a3a3; } //--> </style>
Weiteres zu col erfahren Sie in Tabellen in HTML. Beschreibung des HTML-Tag <col>.