von Thomas Salvador.
Farben werden in HTML entweder mit ihrem Namen oder mit ihrem Wert beschrieben.
HTML verfügt seit jeher über 17 Standard Farbnamen.
Sie entstehen dadurch, dass die 8 Grundfarben jeweils maximal und zu 50% enthalten sind.
Zu diesen 16 Farben kommt mit grey eine alternative Schreibweise für gray.
Hintergrundfarbwert #ffffff | Schriftfarbe fuchsia | |||||
Detail | : | Hintergrund #ffffff | Detail | : | Schrift fuchsia | |
Farbwert | : | #ffffff | Farbe | : | fuchsia | |
Farbe | : | white | Farbwert | : | #ff00ff | |
HTML | : | #ffffff | HTML | : | fuchsia | |
HTML (Wert) | : | #ffffff | HTML (Wert) | : | #ff00ff | |
CSS | : | #ffffff | CSS | : | fuchsia | |
CSS (Wert) | : | #ffffff | CSS (Wert) | : | #ff00ff | |
CSS (kürzest) | : | #fff | CSS (kürzest) | : | #f0f | |
CSS (RGB) | : | rgb(255,255,255) | CSS (RGB) | : | rgb(255,0,255) | |
CSS (%RGB) | : | rgb(100%,100%,100%) | CSS (%RGB) | : | rgb(100%,0%,100%) |
Verlauf Hintergrundfarbwert #ffffff nach Schriftfarbe fuchsia | |||||||
#ffffff | #ffdaff | #ffb6ff | #ff91ff | #ff6dff | #ff48ff | #ff24ff | #ff00ff |
#ffffff | #ffdaff | #ffb6ff | #ff91ff | #ff6dff | #ff48ff | #ff24ff | #ff00ff |
Kombination von #ffffff und fuchsia | |||||||
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. Cras id velit ante. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. | fuchsia eignet sich nicht als Schriftfarbe auf Hintergrund #ffffff, weil der Unterschied in den Farben zu gering ist Die Ähnlichkeit von fuchsia und #ffffff ergibt sich zu 85.07%. Die Lesbarkeit dieser Farbkombination liegt damit bei 14.93%. |
Hintergrundfarbwert #ffffff | Schriftfarbe fuchsia | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#ffffff | #ffffff | #ffffff | #ffffff | #ff00ff | #ff00ff | #ff00ff | #ff00ff |
#ffffff | #ffffff | #dadada | #dadada | #ff24ff | #ff24ff | #da00da | #da00da |
#ffffff | #ffffff | #b6b6b6 | #b6b6b6 | #ff48ff | #ff48ff | #b600b6 | #b600b6 |
#ffffff | #ffffff | #919191 | #919191 | #ff6dff | #ff6dff | #910091 | #910091 |
#ffffff | #ffffff | #6d6d6d | #6d6d6d | #ff91ff | #ff91ff | #6d006d | #6d006d |
#ffffff | #ffffff | #484848 | #484848 | #ffb6ff | #ffb6ff | #480048 | #480048 |
#ffffff | #ffffff | #242424 | #242424 | #ffdaff | #ffdaff | #240024 | #240024 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Für dieses Beispiel umranden wir <img> mit einem . Die Hintergrundfarbe für <img> setzen wir entsprechend auf Farbwert #ffffff. Das ist mit HTML kaum möglich. Wir nutzen daher CSS.
<style type="text/css"><!-- img { border-style:double; border-width:4px; background-color:#ffffff; border-color:fuchsia; } //--> </style>
Mehr zum Thema finden Sie in Grafik in HTML. Weiteres zum hier verwendeten Tag <img>.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / #ffffff | |
black | #000000 | + | black | #000000 | black / #ffffff | |
blue | #0000ff | + | blue | #0000ff | blue / #ffffff | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / #ffffff | |
gray | #808080 | + | gray | #808080 | gray / #ffffff | |
grey | #808080 | + | grey | #808080 | grey / #ffffff | |
green | #008000 | + | green | #008000 | green / #ffffff | |
lime | #00ff00 | + | lime | #00ff00 | lime / #ffffff | |
maroon | #800000 | + | maroon | #800000 | maroon / #ffffff | |
navy | #000080 | + | navy | #000080 | navy / #ffffff | |
olive | #808000 | + | olive | #808000 | olive / #ffffff | |
purple | #800080 | + | purple | #800080 | purple / #ffffff | |
red | #ff0000 | + | red | #ff0000 | red / #ffffff | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / #ffffff | |
teal | #008080 | + | teal | #008080 | teal / #ffffff | |
white | #ffffff | + | white | #ffffff | white / #ffffff | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / #ffffff |