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 gray102 | |||||
Detail | : | Hintergrund #bababa | Detail | : | Schrift gray102 | |
Farbwert | : | #bababa | Farbe | : | gray102 | |
Farbe | : | gray186 | Farbwert | : | #666666 | |
HTML | : | #bababa | HTML | : | gray102 | |
HTML (Wert) | : | #bababa | HTML (Wert) | : | #666666 | |
CSS | : | #bababa | CSS | : | gray102 | |
CSS (Wert) | : | #bababa | CSS (Wert) | : | #666666 | |
CSS (kürzest) | : | #bababa | CSS (kürzest) | : | #666 | |
CSS (RGB) | : | rgb(186,186,186) | CSS (RGB) | : | rgb(102,102,102) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(40%,40%,40%) |
Verlauf Hintergrundfarbwert #bababa nach Schriftfarbe gray102 | |||||||
#bababa | #aeaeae | #a2a2a2 | #969696 | #8a8a8a | #7e7e7e | #727272 | #666666 |
#bababa | #aeaeae | #a2a2a2 | #969696 | #8a8a8a | #7e7e7e | #727272 | #666666 |
Kombination von #bababa und gray102 | |||||||
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. Cras id velit ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit von gray102 und #bababa beträgt 85.91%. Die Lesbarkeit dieser Kombination liegt damit bei 14.09%. gray102 ist nicht als Schriftfarbe auf Hintergrund #bababa geeignet. Weder der Helligkeitsunterschied noch der Farbunterschied sind ausreichend. |
Hintergrundfarbwert #bababa | Schriftfarbe gray102 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#bababa | #bababa | #bababa | #bababa | #666666 | #666666 | #666666 | #666666 |
#c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f | #7b7b7b | #7b7b7b | #575757 | #575757 |
#cdcdcd | #cdcdcd | #848484 | #848484 | #919191 | #919191 | #484848 | #484848 |
#d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a | #a7a7a7 | #a7a7a7 | #3a3a3a | #3a3a3a |
#e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f | #bdbdbd | #bdbdbd | #2b2b2b | #2b2b2b |
#ebebeb | #ebebeb | #353535 | #353535 | #d3d3d3 | #d3d3d3 | #1d1d1d | #1d1d1d |
#f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a | #e9e9e9 | #e9e9e9 | #0e0e0e | #0e0e0e |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
In diesem Beispiel ändern wir die Textfarbe von <label> auf Farbe gray102 und die Hintergrundfarbe von <label> auf Farbwert #bababa. Als Schriftart wählen wir monospace und setzen die Schriftgröße auf 13px.
<style type="text/css"><!-- label { background-color: #bababa; font-family: monospace; color: gray102; font-size: 13px; } //--> </style>
Mehr zu label können Sie in Formulare in HTML lesen. Der hier genutzte HTML-Befehl label ist in der HTML Referenz unter <label> ausführlich beschrieben.