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.
Hintergrundfarbe teal | Schriftfarbe maroon | |||||
Detail | : | Hintergrund teal | Detail | : | Schrift maroon | |
Farbe | : | teal | Farbe | : | maroon | |
Farbwert | : | #008080 | Farbwert | : | #800000 | |
HTML | : | teal | HTML | : | maroon | |
HTML (Wert) | : | #008080 | HTML (Wert) | : | #800000 | |
CSS | : | teal | CSS | : | maroon | |
CSS (Wert) | : | #008080 | CSS (Wert) | : | #800000 | |
CSS (kürzest) | : | #008080 | CSS (kürzest) | : | #800000 | |
CSS (RGB) | : | rgb(0,128,128) | CSS (RGB) | : | rgb(128,0,0) | |
CSS (%RGB) | : | rgb(0%,50%,50%) | CSS (%RGB) | : | rgb(50%,0%,0%) |
Verlauf Hintergrundfarbe teal nach Schriftfarbe maroon | |||||||
#008080 | #126d6d | #245b5b | #364949 | #493636 | #5b2424 | #6d1212 | #800000 |
#008080 | #126d6d | #245b5b | #364949 | #493636 | #5b2424 | #6d1212 | #800000 |
Kombination von teal und maroon | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. 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. | Auf Hintergrund teal ist maroon ungeeignet. Weder der Helligkeitsunterschied noch der Farbunterschied sind gross genug. Die Ähnlichkeit von maroon und teal beträgt 89.08%. Die Lesbarkeit dieser Kombination ergibt sich zu 10.92%. |
Hintergrundfarbe teal | Schriftfarbe maroon | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#008080 | #008080 | #008080 | #008080 | #800000 | #800000 | #800000 | #800000 |
#249292 | #249292 | #006d6d | #006d6d | #922424 | #922424 | #6d0000 | #6d0000 |
#48a4a4 | #48a4a4 | #005b5b | #005b5b | #a44848 | #a44848 | #5b0000 | #5b0000 |
#6db6b6 | #6db6b6 | #004949 | #004949 | #b66d6d | #b66d6d | #490000 | #490000 |
#91c8c8 | #91c8c8 | #003636 | #003636 | #c89191 | #c89191 | #360000 | #360000 |
#b6dada | #b6dada | #002424 | #002424 | #dab6b6 | #dab6b6 | #240000 | #240000 |
#daecec | #daecec | #001212 | #001212 | #ecdada | #ecdada | #120000 | #120000 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern Hher die Textfarbe von <label> auf Farbe maroon. Die Schriftart setzen wir auf arial und verringern die Schriftgröße auf 86%. Wir unterstreichen den Inhalt von <label> mit Hilfe eines einfallenden Rahmens mit 2 Pixel Dicke in Farbe teal. Mit HTML geht dies nicht. Daher formatieren wir mit CSS.
<style type="text/css"><!-- label { color: maroon; font-size: 86%; font-family: arial; border-bottom: 2px inset teal; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Mehr zu label lesen Sie in Formulare in HTML. Die Beschreibung vom Tag label erfahren Sie in der HTML Referenz unter <label>.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / teal | |
black | #000000 | + | black | #000000 | black / teal | |
blue | #0000ff | + | blue | #0000ff | blue / teal | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / teal | |
gray | #808080 | + | gray | #808080 | gray / teal | |
grey | #808080 | + | grey | #808080 | grey / teal | |
green | #008000 | + | green | #008000 | green / teal | |
lime | #00ff00 | + | lime | #00ff00 | lime / teal | |
maroon | #800000 | + | maroon | #800000 | maroon / teal | |
navy | #000080 | + | navy | #000080 | navy / teal | |
olive | #808000 | + | olive | #808000 | olive / teal | |
purple | #800080 | + | purple | #800080 | purple / teal | |
red | #ff0000 | + | red | #ff0000 | red / teal | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / teal | |
teal | #008080 | + | teal | #008080 | teal / teal | |
white | #ffffff | + | white | #ffffff | white / teal | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / teal |