{"id":2226,"date":"2015-11-07T14:56:50","date_gmt":"2015-11-07T14:56:50","guid":{"rendered":"http:\/\/photos-infographiste.com\/diario\/?p=2226"},"modified":"2018-08-02T13:29:08","modified_gmt":"2018-08-02T13:29:08","slug":"les-couleurs-html","status":"publish","type":"post","link":"https:\/\/photos-infographiste.com\/diario\/les-couleurs-html\/","title":{"rendered":"Couleurs html"},"content":{"rendered":"<blockquote><p>Internet<\/p><\/blockquote>\n<h1>Les couleurs hmtl<\/h1>\n<p><a href=\"http:\/\/photos-infographiste.com\/diario\/wp-content\/uploads\/2015\/11\/rgb-350_350.jpg\"><img loading=\"lazy\" src=\"http:\/\/photos-infographiste.com\/diario\/wp-content\/uploads\/2015\/11\/rgb-350_350-300x300.jpg\" alt=\"Les couleurs rvb\" width=\"225\" height=\"225\" class=\"alignleftm\"\/><\/a\/><\/p>\n<h6>Les&nbsp;couleurs&nbsp;en html sont d\u00e9finies par 3 nombres hexad\u00e9cimaux repr\u00e9sentant les tons de Rouge, de Vert et de Bleu (selon le codage RVB <em>(Red Green Blue, en anglais : RGB)<\/em> de la couleur choisie. la syntaxe de codage d&#8217;une couleur en html est la suivante : color:#rrvvbb.<\/h6>\n<div style=\"background-color:#FF0000; width:auto;float:left;padding:1%;color:#FFF;\">ff0000 rouge<\/div>\n<div style=\"background-color:#00FF00; width:auto;float:left;padding:1%;color:#FFF;\">00ff00 vert<\/div>\n<div style=\"background-color:#0000FF; width:auto;float:left;padding:1%;color:#FFF;\">00ffff bleu<\/div>\n<div class=\"net\"><\/div>\n<p><!--more--><\/p>\n<h3>Le mode hexad\u00e9cimal<\/h3>\n<p>rr, vv et bb repr\u00e9sentent respectivement un nombre hexad\u00e9cimal entre 00 et ff pour le Rouge, le Vert et le Bleu&nbsp;; ff est la valeur la plus forte, 00, la plus sombre.<\/p>\n<p>Vous recherchez une couleur bien pr\u00e9cise pour l&#8217;ins\u00e9rer sur votre site&nbsp;?<\/p>\n<div style=\"background-color:#884DA7; color:#FFF;width:auto;float:left;padding:1%;\">Am\u00e9thyste, #884DA7<\/div>\n<div style=\"background-color:#E0115F; width:auto;float:left;padding:1%;\">Rubis, #E0115F<\/div>\n<div style=\"background-color:#01D758; width:auto;float:left;padding:1%;\">Emeraude, #01D758<\/div>\n<div style=\"background-color:#F0C300; width:auto;float:left;padding:1%;\">Ambre jaune, #F0C300<\/div>\n<div style=\"background-color:#0131B4; color:#FFF;width:auto;float:left;padding:1%;\">Bleu saphir, #0131B4<\/div>\n<div style=\"background-color:#996600; width:auto;float:left;padding:1%;\">Or, #996600<\/div>\n<div style=\"background-color:#808000; width:auto;float:left;padding:1%;\">Olive, #808000<\/div>\n<div style=\"background-color:#E0CDA9; width:auto;float:left;padding:1%;\">Sable, #E0CDA9<\/div>\n<div style=\"background-color:#947F60; width:auto;float:left;padding:1%;\">Havane, #947F60<\/div>\n<div style=\"background-color:#54F98D; width:auto;float:left;padding:1%;\">Menthe \u00e0 l&#8217;eau, #54F98D<\/div>\n<div style=\"background-color:#462E01; color:#FFF;width:auto;float:left;padding:1%;\">Caf\u00e9, #462E01<\/div>\n<div style=\"background-color:#FF6347; width:auto;float:left;padding:1%;\">Tomate, #FF6347<\/div>\n<div style=\"background-color:#4B0082; color:#FFF;width:auto;float:left;padding:1%;\">Indigo, #4B0082<\/div>\n<div style=\"background-color:#811453; color:#FFF;width:auto;float:left;padding:1%;\">Prune, #811453<\/div>\n<div style=\"background-color:#BEF574; width:auto;float:left;padding:1%;\">Pistache, #BEF574<\/div>\n<div style=\"background-color:#800080; color:#FFF;width:auto;float:left;padding:1%;\">Pourpre, #800080<\/div>\n<div style=\"background-color:#BB0B0B; width:auto;float:left;padding:1%;\">Cerise, #BB0B0B<\/div>\n<div style=\"background-color:#FFDE75; width:auto;float:left;padding:1%;\">Ma\u00efs, #FFDE75<\/div>\n<div style=\"background-color:#850606; color:#FFF;width:auto;float:left;padding:1%;\">Sang, #850606<\/div>\n<div style=\"background-color:#F7FF3C; width:auto;float:left;padding:1%;\">Citron, #F7FF3C<\/div>\n<div style=\"background-color:#000080; color:#FFF;width:auto;float:left;padding:1%;\">Bleu marin, #000080<\/div>\n<div style=\"background-color:#C7CF00; width:auto;float:left;padding:1%;\">Moutarde, #C7CF00<\/div>\n<div style=\"background-color:#7E3300; color:#FFF;width:auto;float:left;padding:1%;\">Caramel, #7E3300<\/div>\n<div style=\"background-color:#E6E6FA; width:auto;float:left;padding:1%;\">Bleu lavande, #E6E6FA<\/div>\n<div style=\"background-color:#FF7F50; width:auto;float:left;padding:1%;\">Corail, #FF7F50<\/div>\n<div style=\"background-color:#C60800; color:#FFF;width:auto;float:left;padding:1%;\">Coquelicot, #C60800<\/div>\n<div style=\"background-color:#1560BD; width:auto;float:left;padding:1%;\">Denim, #1560BD<\/div>\n<div style=\"background-color:#77B5FE; width:auto;float:left;padding:1%;\">Bleu ciel, #77B5FE<\/div>\n<div style=\"background-color:#F9429E; width:auto;float:left;padding:1%;\">Rose bonbon, #F9429E<\/div>\n<div class=\"net\">&nbsp;<\/div>\n<p>\u2022 Un site qui recense les principales couleurs, tr\u00e8s bien fait et joli esth\u00e9tiquement, un peu ancien de conception, une vraie mine d&#8217;or pour trouver une couleur&nbsp;:<a href=\" http:\/\/www.letoileauxsecrets.fr\/couleurs\/couleurs-vert.html\" title=\"Les couleurs html \" target=\"_blank\"> www.letoileauxsecrets.fr<\/a><\/p>\n<p>\u2022 Un autre site, tr\u00e8s complet \u00e9galement, avec les correspondances cmyk, pantone &#8230;&nbsp;: <a href=\"http:\/\/toutes-les-couleurs.com\" title=\"Toutes les gammes de couleurs\" target=\"_blank\">toutes-les-couleurs.com<\/a><\/p>\n<h3>Le mode rgba<\/h3>\n<p>Les valeurs R, V, et B allant de 0 (noir) \u00e0 255 (blanc),la valeur alpha allant de 0 (transparent) \u00e0 1 (visible). Si on veut un effet de transparence, on utilise le codage rgba : color:rbga(255, 255, 255, 0.8). 0.8 indiquant l&#8217;opacit\u00e9 qui est 80&nbsp;% ici. Voir aussi l&#8217;article&nbsp;: <a href=\"?p=1600\" title=\"Les propri\u00e9t\u00e9s css3\">Les propri\u00e9t\u00e9s CSS3<\/a><\/p>\n<h3>Le mode hsl<\/h3>\n<p>Les fonctions hsl() ou hsla() sont bas\u00e9s sur Teinte (H), Saturation (S) et Lumi\u00e8re (L):<br \/>\n&#8211; Teinte: valeur de couleur sur un cercle chromatique de 0\u00b0 (Rouge) \u00e0 360\u00b0 (Rouge). A 60\u00b0: Jaune, \u00e0 120\u00b0: Vert, \u00e0 180\u00b0: Cyan, \u00e0 240\u00b0: Bleu, \u00e0 300\u00b0: Magenta.<br \/>\n&#8211; Saturation: de 0 \u00e0 100%<br \/>\n&#8211; Lumi\u00e8re ou Luminance: de 0 (enti\u00e8rement noir) \u00e0 100% (enti\u00e8rement blanc). 50% correspond \u00e0 la teinte de base.\n<\/p>\n<p>Le mode hsla&nbsp;: la valeur &#8220;a&#8221; indique la transparence ou l&#8217;opacit\u00e9 de la couleur.<\/p>\n<h4>Exemple hsl<\/h4>\n<div style=\"background-color: hsl(180, 100%, 100%); color:#000;width:auto;float:left;padding:1%;\">Rouge<\/div>\n<div style=\"background-color: hsl(0, 100%, 50%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(0, 100%, 50%)<\/div>\n<div style=\"background-color: hsl(0, 50%, 50%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(0, 50%, 50%)<\/div>\n<div style=\"background-color: hsl(0, 25%, 50%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(0, 25%, 50%)<\/div>\n<div style=\"background-color: hsl(0, 100%, 50%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(0, 100%, 50%)<\/div>\n<div style=\"background-color: hsl(0, 100%, 100%); color:#000;width:auto;float:left;padding:1%;\">hsl(0, 100%, 100%)<\/div>\n<div style=\"background-color: hsl(0, 100%, 75%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(0, 100%, 75%)<\/div>\n<div style=\"background-color: hsl(0, 100%, 25%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(0, 100%, 25%)<\/div>\n<div style=\"background-color: hsl(0, 100%, 5%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(0, 100%, 5%)<\/div>\n<div style=\"background-color: hsl(180, 100%, 100%); color:#000;width:auto;float:left;padding:1%;\">Turquoise<\/div>\n<div style=\"background-color: hsl(180, 100%, 50%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(180, 100%, 50%)<\/div>\n<div style=\"background-color: hsl(180, 50%, 50%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(180, 50%, 50%)<\/div>\n<div style=\"background-color: hsl(180, 25%, 50%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(180, 25%, 50%)<\/div>\n<div style=\"background-color: hsl(180, 100%, 50%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(180, 100%, 50%)<\/div>\n<div style=\"background-color: hsl(180, 100%, 100%); color:#000;width:auto;float:left;padding:1%;\">hsl(180, 100%, 100%)<\/div>\n<div style=\"background-color: hsl(180, 100%, 75%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(180, 100%, 75%)<\/div>\n<div style=\"background-color: hsl(180, 100%, 25%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(180, 100%, 25%)<\/div>\n<div style=\"background-color: hsl(180, 100%, 5%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(180, 100%, 5%)<\/div>\n<div style=\"background-color: hsl(180, 100%, 100%); color:#000;width:auto;float:left;padding:1%;\">Citron vert<\/div>\n<div style=\"background-color: hsl(120, 100%, 50%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(120, 100%, 50%)<\/div>\n<div style=\"background-color: hsl(120, 50%, 50%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(120, 50%, 50%)<\/div>\n<div style=\"background-color: hsl(120, 25%, 50%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(120, 25%, 50%)<\/div>\n<div style=\"background-color: hsl(120, 100%, 50%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(120, 100%, 50%)<\/div>\n<div style=\"background-color: hsl(120, 100%, 100%); color:#000;width:auto;float:left;padding:1%;\">hsl(120, 100%, 100%)<\/div>\n<div style=\"background-color: hsl(120, 100%, 75%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(120, 100%, 75%)<\/div>\n<div style=\"background-color: hsl(120, 100%, 25%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(120, 100%, 25%)<\/div>\n<div style=\"background-color: hsl(120, 100%, 5%); color:#FFF;width:auto;float:left;padding:1%;\">hsl(120, 100%, 5%)<\/div>\n<div class=\"net\"><\/div>\n<h4>Exemple hsla<\/h4>\n<div style=\"background-color: hsla(240, 100%, 50%, 0.5); color:#FFF;width:auto;float:left;padding:1% 2%;\">hsla(240, 100%, 50%, 0.5)<\/div>\n<div style=\"background-color: hsla(60, 100%, 50%, 0.5); color:#000;width:auto;float:left;padding:1% 2%;margin-left:-2%;\">hsla(60, 100%, 50%, 0.5)<\/div>\n<div style=\"background-color: hsla(120, 100%, 50%, 0.5); color:#000;width:auto;float:left;padding:1% 2%;margin-left:-2%;\">hsla(120, 100%, 50%, 0.5)<\/div>\n<div class=\"net\"><\/div>\n<p>&nbsp;<\/p>\n<p><strong>Avantages<\/strong><\/p>\n<p><p>On peut tr\u00e8s vite trouver soient les couleurs compl\u00e9mentaires, en ajoutant 180\u00b0 \u00e0 la valeur teinte (h)&nbsp;; soient les couleurs analogues ou couleurs adjacentes&nbsp;: on enl\u00e8ve ou ajoute \u00e0 la valeur de la teinte des angles de 30\u00b0&nbsp; ou des couleurs monochromes en jouant sur la valeur &#8220;s&#8221; saturation. <\/p>\n<p><strong>Inconv\u00e9nients<\/strong><\/p>\n<p><a href=\"http:\/\/photos-infographiste.com\/diario\/wp-content\/uploads\/2015\/11\/capture-ecran-colorzilla.jpg\" title=\"addon colorzilla pour firefox\" target=\"_blank;\"><img loading=\"lazy\" src=\"http:\/\/photos-infographiste.com\/diario\/wp-content\/uploads\/2015\/11\/capture-ecran-colorzilla-300.jpg\" alt=\"addon firefox colorzilla\" width=\"300\" height=\"160\" class=\"alignleftm_25\" \/><\/a><\/p>\n<p>Les logiciels de graphisme les plus fr\u00e9quents n&#8217;utilisent pas le m\u00eame mode que CSS. Il faut donc utiliser un convertisseur, notamment <a href=\"http:\/\/www.colorzilla.com\/\" title=\"outil de conversion de couleur\" target=\"_blank\">ColorZilla<\/a>, disponible \u00e9galement sous forme d&#8217;<em>Addon<\/em>, ici > <a href=\"http:\/\/www.colorzilla.com\/firefox\" title=\"outil de conversion de couleur\" target=\"_blank\">ColorZilla, addon pour Firefox<\/a>. La propri\u00e9t\u00e9 CSS3 hsl(a), n&#8217;est reconnue qu&#8217;\u00e0 partir d&#8217;IE9 pour Internet Explorer, il faut donc doubler la d\u00e9claration css, si on veut utiliser ce mode. Exemple&nbsp;: <span style=\"font-family:monospace;\">couleur{background-color:#FF0000;background-color:hsl(0, 100%, 50%);}<\/span>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Internet Les couleurs hmtl Les&nbsp;couleurs&nbsp;en html sont d\u00e9finies par 3 nombres hexad\u00e9cimaux repr\u00e9sentant les tons de Rouge, de Vert et de Bleu (selon le codage RVB (Red Green Blue, en anglais : RGB) de la couleur choisie. la syntaxe de codage d&#8217;une couleur en html est la suivante : color:#rrvvbb. ff0000 rouge 00ff00 vert 00ffff &hellip; <a href=\"https:\/\/photos-infographiste.com\/diario\/les-couleurs-html\/\" class=\"more-link\">Continuer la lecture de <span class=\"screen-reader-text\">Couleurs html<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2298,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"link","meta":[],"categories":[3,4],"tags":[],"_links":{"self":[{"href":"https:\/\/photos-infographiste.com\/diario\/wp-json\/wp\/v2\/posts\/2226"}],"collection":[{"href":"https:\/\/photos-infographiste.com\/diario\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/photos-infographiste.com\/diario\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/photos-infographiste.com\/diario\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/photos-infographiste.com\/diario\/wp-json\/wp\/v2\/comments?post=2226"}],"version-history":[{"count":88,"href":"https:\/\/photos-infographiste.com\/diario\/wp-json\/wp\/v2\/posts\/2226\/revisions"}],"predecessor-version":[{"id":4274,"href":"https:\/\/photos-infographiste.com\/diario\/wp-json\/wp\/v2\/posts\/2226\/revisions\/4274"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/photos-infographiste.com\/diario\/wp-json\/wp\/v2\/media\/2298"}],"wp:attachment":[{"href":"https:\/\/photos-infographiste.com\/diario\/wp-json\/wp\/v2\/media?parent=2226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/photos-infographiste.com\/diario\/wp-json\/wp\/v2\/categories?post=2226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/photos-infographiste.com\/diario\/wp-json\/wp\/v2\/tags?post=2226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}