{"id":118,"date":"2024-05-21T08:44:02","date_gmt":"2024-05-21T06:44:02","guid":{"rendered":"https:\/\/blog.sutilweb.eu\/?page_id=118"},"modified":"2024-05-21T08:44:03","modified_gmt":"2024-05-21T06:44:03","slug":"13-colores-en-formato-hexadecimal","status":"publish","type":"page","link":"https:\/\/sutilweb.eu\/index.php\/lenguajes\/html5\/html5-manual\/13-colores-en-formato-hexadecimal\/","title":{"rendered":"13. Colores en formato hexadecimal"},"content":{"rendered":"\n<p>Un <strong>color hexadecimal<\/strong> se especifica con: #<strong><em>RRGGBB<\/em><\/strong>, donde los enteros hexadecimales <strong>RR<\/strong> (rojo), <strong>GG<\/strong> (verde) y <strong>BB<\/strong> (azul) especifican los componentes del color. En HTML, se puede especificar un color usando un valor hexadecimal en la forma:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#rrggbb<\/pre>\n\n\n\n<p>Donde <strong><em>rr<\/em><\/strong> (rojo), <strong><em>gg<\/em><\/strong> (verde) y <strong><em>bb<\/em><\/strong> (azul) son valores hexadecimales entre <strong><em>00<\/em><\/strong> y <strong><em>ff<\/em><\/strong> (igual que decimal 0-255).<\/p>\n\n\n\n<p>Por ejemplo, <strong><em>#ff0000<\/em><\/strong> se muestra en rojo, porque el rojo est\u00e1 configurado en su valor m\u00e1s alto (<strong><em>ff<\/em><\/strong>) y los otros dos (verde y azul) est\u00e1n configurados en 00. Otro ejemplo, <strong><em>#00ff00<\/em><\/strong> se muestra como verde, porque el verde se establece en su valor m\u00e1s alto (<strong><em>ff<\/em><\/strong>) y los otros dos (rojo y azul) se establecen en 00. Para mostrar negro, establezca todos los par\u00e1metros de color en 00, as\u00ed: <strong><em>#000000<\/em><\/strong>. Para mostrar blanco, establezca todos los par\u00e1metros de color en <strong><em>ff<\/em><\/strong>, as\u00ed: <strong><em>#ffffff<\/em><\/strong>. Experimenta mezclando los valores HEX a continuaci\u00f3n:<\/p>\n\n\n\n<p><strong>Ejm<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"305\" src=\"https:\/\/blog.sutilweb.eu\/wp-content\/uploads\/2024\/05\/Colores-en-formato-hexadecimal-1.png\" alt=\"\" class=\"wp-image-119\" srcset=\"https:\/\/sutilweb.eu\/wp-content\/uploads\/2024\/05\/Colores-en-formato-hexadecimal-1.png 716w, https:\/\/sutilweb.eu\/wp-content\/uploads\/2024\/05\/Colores-en-formato-hexadecimal-1-300x128.png 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Sombras de gris<\/h2>\n\n\n\n<p>Los tonos de gris a menudo se definen utilizando valores iguales para los tres par\u00e1metros.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"304\" src=\"https:\/\/blog.sutilweb.eu\/wp-content\/uploads\/2024\/05\/Colores-en-formato-hexadecimal-2.png\" alt=\"\" class=\"wp-image-120\" srcset=\"https:\/\/sutilweb.eu\/wp-content\/uploads\/2024\/05\/Colores-en-formato-hexadecimal-2.png 708w, https:\/\/sutilweb.eu\/wp-content\/uploads\/2024\/05\/Colores-en-formato-hexadecimal-2-300x129.png 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Un color hexadecimal se especifica con: #RRGGBB, donde los enteros hexadecimales RR (rojo), GG (verde) y BB (azul) especifican los [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":41,"menu_order":12,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-118","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Sutil Web","author_link":"https:\/\/sutilweb.eu\/index.php\/author\/sutilweb\/"},"uagb_comment_info":0,"uagb_excerpt":"Un color hexadecimal se especifica con: #RRGGBB, donde los enteros hexadecimales RR (rojo), GG (verde) y BB (azul) especifican los [&hellip;]","_links":{"self":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":1,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/118\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/118\/revisions\/121"}],"up":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/41"}],"wp:attachment":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/media?parent=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}