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 #cccccc | Schriftfarbwert #cfcfcf | |||||
Detail | : | Hintergrund #cccccc | Detail | : | Schrift #cfcfcf | |
Farbwert | : | #cccccc | Farbwert | : | #cfcfcf | |
Farbe | : | gray204 | Farbe | : | gray207 | |
HTML | : | #cccccc | HTML | : | #cfcfcf | |
HTML (Wert) | : | #cccccc | HTML (Wert) | : | #cfcfcf | |
CSS | : | #cccccc | CSS | : | #cfcfcf | |
CSS (Wert) | : | #cccccc | CSS (Wert) | : | #cfcfcf | |
CSS (kürzest) | : | #ccc | CSS (kürzest) | : | #cfcfcf | |
CSS (RGB) | : | rgb(204,204,204) | CSS (RGB) | : | rgb(207,207,207) | |
CSS (%RGB) | : | rgb(80%,80%,80%) | CSS (%RGB) | : | rgb(81%,81%,81%) |
Verlauf Hintergrundfarbwert #cccccc nach Schriftfarbwert #cfcfcf | |||||||
#cccccc | #cccccc | #cccccc | #cdcdcd | #cdcdcd | #cecece | #cecece | #cfcfcf |
#cccccc | #cccccc | #cccccc | #cdcdcd | #cdcdcd | #cecece | #cecece | #cfcfcf |
Kombination von #cccccc und #cfcfcf | |||||||
Cras id velit ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. 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. | Die Ähnlichkeit der Farben #cfcfcf und #cccccc beträgt 95.09%. Die Lesbarkeit dieser Kombination von Farben liegt damit bei 4.91%. #cfcfcf eignet sich nicht als Schriftfarbe auf Hintergrund #cccccc, weil sowohl Helligkeit als auch die Farben zu ähnlich sind. |
Hintergrundfarbwert #cccccc | Schriftfarbwert #cfcfcf | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#cccccc | #cccccc | #cccccc | #cccccc | #cfcfcf | #cfcfcf | #cfcfcf | #cfcfcf |
#d3d3d3 | #d3d3d3 | #aeaeae | #aeaeae | #d5d5d5 | #d5d5d5 | #b1b1b1 | #b1b1b1 |
#dadada | #dadada | #919191 | #919191 | #dcdcdc | #dcdcdc | #939393 | #939393 |
#e1e1e1 | #e1e1e1 | #747474 | #747474 | #e3e3e3 | #e3e3e3 | #767676 | #767676 |
#e9e9e9 | #e9e9e9 | #575757 | #575757 | #eaeaea | #eaeaea | #585858 | #585858 |
#f0f0f0 | #f0f0f0 | #3a3a3a | #3a3a3a | #f1f1f1 | #f1f1f1 | #3b3b3b | #3b3b3b |
#f7f7f7 | #f7f7f7 | #1d1d1d | #1d1d1d | #f8f8f8 | #f8f8f8 | #1d1d1d | #1d1d1d |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <label> auf Farbwert #cfcfcf und die Hintergrundfarbe von <label> auf Farbwert #cccccc. Die Schriftart ändern wir auf arial und als Schriftgröße entscheiden wir uns für 13px.
<style type="text/css"><!-- label { color:#cfcfcf; font-family:arial; background-color:#cccccc; font-size:13px; } //--> </style>
Mehr zu label erfahren Sie in Formulare in HTML. Einzelheiten vom Befehl <label>.