{"id":35,"date":"2024-10-21T04:32:27","date_gmt":"2024-10-21T04:32:27","guid":{"rendered":"https:\/\/techkubo.com\/css\/?p=35"},"modified":"2025-05-12T12:45:18","modified_gmt":"2025-05-12T12:45:18","slug":"css-colors","status":"publish","type":"post","link":"https:\/\/techkubo.com\/css\/css-colors\/","title":{"rendered":"CSS Colors"},"content":{"rendered":"\n<p>Colors are one of the most commonly used style properties in CSS. You can apply colors to a wide range of elements, including text, borders, and backgrounds. In CSS, you use the <code>color<\/code> property for text color and the <code>background-color<\/code> property for background color.<\/p>\n\n\n\n<p><strong>Text Color Example:<\/strong><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;css&quot;,&quot;mime&quot;:&quot;text\/css&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;CSS&quot;,&quot;language&quot;:&quot;CSS&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;css&quot;}\">p {\n  color: blue;\n}<\/pre><\/div>\n\n\n\n<p><strong>Background Color Example: <\/strong><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;css&quot;,&quot;mime&quot;:&quot;text\/css&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;CSS&quot;,&quot;language&quot;:&quot;CSS&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;css&quot;}\">body {\n  background-color: lightgray;\n}<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>CSS Color Formats<\/strong><\/h2>\n\n\n\n<p><strong>1. Color Keywords<\/strong><\/p>\n\n\n\n<p>CSS provides basic color keywords like <code>red<\/code>, <code>blue<\/code>, <code>green<\/code>, <code>black<\/code>, <code>white<\/code>, etc. This is the easiest method for applying basic colors.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;css&quot;,&quot;mime&quot;:&quot;text\/css&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;CSS&quot;,&quot;language&quot;:&quot;CSS&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;css&quot;}\">h1 {\n  color: red;\n}<\/pre><\/div>\n\n\n\n<p><strong>2. HEX Color Codes<\/strong><\/p>\n\n\n\n<p>A HEX color code is a six-digit code representing a color, starting with a <code>#<\/code>. Each pair of digits represents the intensity of red, green, and blue (RGB), ranging from 00 to FF.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;css&quot;,&quot;mime&quot;:&quot;text\/css&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;CSS&quot;,&quot;language&quot;:&quot;CSS&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;css&quot;}\">p {\n  color: #3498db; \/* A shade of blue *\/\n}<\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>#3498db<\/code> is broken down as:\n<ul class=\"wp-block-list\">\n<li><code>34<\/code> (red),<\/li>\n\n\n\n<li><code>98<\/code> (green),<\/li>\n\n\n\n<li><code>db<\/code> (blue).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><strong>3. RGB Color<\/strong><\/p>\n\n\n\n<p>The RGB format allows you to specify a color using its red, green, and blue components, with values ranging from 0 to 255.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;css&quot;,&quot;mime&quot;:&quot;text\/css&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;CSS&quot;,&quot;language&quot;:&quot;CSS&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;css&quot;}\">h2 {\n  color: rgb(255, 99, 71); \/* A shade of red *\/\n}<\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This example represents <strong>Tomato Red<\/strong> with:\n<ul class=\"wp-block-list\">\n<li><code>255<\/code> for red,<\/li>\n\n\n\n<li><code>99<\/code> for green,<\/li>\n\n\n\n<li><code>71<\/code> for blue.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><strong>4. RGBA (RGB with Alpha)<\/strong><\/p>\n\n\n\n<p>RGBA is similar to RGB but with an added alpha (opacity) value. The alpha value ranges from 0 (completely transparent) to 1 (fully opaque).<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;css&quot;,&quot;mime&quot;:&quot;text\/css&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;CSS&quot;,&quot;language&quot;:&quot;CSS&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;css&quot;}\">div {\n  background-color: rgba(0, 0, 0, 0.5); \/* 50% transparent black *\/\n}<\/pre><\/div>\n\n\n\n<p><strong>5. HSL Color <\/strong><\/p>\n\n\n\n<p>HSL stands for Hue, Saturation, and Lightness. Hue is a degree on the color wheel (0-360), saturation is a percentage (0% is grayscale, 100% is full color), and lightness is also a percentage (0% is black, 100% is white).<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;css&quot;,&quot;mime&quot;:&quot;text\/css&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;CSS&quot;,&quot;language&quot;:&quot;CSS&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;css&quot;}\">body {\n  background-color: hsl(120, 100%, 50%); \/* Pure green *\/\n}<\/pre><\/div>\n\n\n\n<p><strong>6. HSLA (HSL with Alpha)<\/strong><\/p>\n\n\n\n<p>Similar to RGBA, HSLA adds an alpha value for transparency.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;css&quot;,&quot;mime&quot;:&quot;text\/css&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;CSS&quot;,&quot;language&quot;:&quot;CSS&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;css&quot;}\">section {\n  background-color: hsla(120, 100%, 50%, 0.5); \/* 50% transparent green *\/\n}<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>CSS Colors Using Different Color Formats<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;HTML&quot;,&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n  &lt;style&gt;\n    \/* Using color keywords *\/\n    h1 {\n      color: darkblue;\n    }\n\n    \/* Using HEX color *\/\n    p {\n      color: #ff6347; \/* Tomato *\/\n    }\n\n    \/* Using RGB color *\/\n    h2 {\n      color: rgb(60, 179, 113); \/* Medium Sea Green *\/\n    }\n\n    \/* Using RGBA with transparency *\/\n    div {\n      background-color: rgba(255, 255, 0, 0.3); \/* Transparent Yellow *\/\n    }\n\n    \/* Using HSL color *\/\n    footer {\n      background-color: hsl(240, 100%, 50%); \/* Blue *\/\n    }\n  &lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n\n  &lt;h1&gt;Welcome to CSS Colors&lt;\/h1&gt;\n  &lt;p&gt;This is an example of using different color formats in CSS.&lt;\/p&gt;\n\n  &lt;h2&gt;This is a heading with RGB color&lt;\/h2&gt;\n  &lt;div&gt;This div has a transparent background.&lt;\/div&gt;\n\n  &lt;footer&gt;This footer uses HSL color for its background.&lt;\/footer&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"512\" src=\"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1.png\" alt=\"\" class=\"wp-image-38\" style=\"width:1200px;height:auto\" srcset=\"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1.png 1024w, https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1-300x150.png 300w, https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1-768x384.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Choosing the Right Color Format<\/strong><\/h2>\n\n\n\n<p><strong>Keywords: <\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>HEX<\/strong>: Commonly used in web design and supported by all browsers.<\/li>\n\n\n\n<li><strong>RGB\/RGBA<\/strong>: Great for fine-tuning colors with more precision.<\/li>\n\n\n\n<li><strong>HSL\/HSLA<\/strong>: Intuitive for adjusting hue, saturation, and lightness values.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>CSS Labs<\/strong><\/h2>\n\n\n\n<iframe src=\"https:\/\/techkubo.com\/javascript-sim.html\" title=\"Try HTML on TechKubo\" width=\"100%\" height=\"500\"><\/iframe>\n","protected":false},"excerpt":{"rendered":"<p>Colors are one of the most commonly used style properties in CSS. You can apply colors to a wide range [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","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":"","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":""},"categories":[1],"tags":[],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-css"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CSS Colors - CSS Tutorial<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techkubo.com\/css\/css-colors\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CSS Colors - CSS Tutorial\" \/>\n<meta property=\"og:description\" content=\"Colors are one of the most commonly used style properties in CSS. You can apply colors to a wide range [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techkubo.com\/css\/css-colors\/\" \/>\n<meta property=\"og:site_name\" content=\"CSS Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-21T04:32:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-12T12:45:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Manong\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Manong\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/techkubo.com\/css\/css-colors\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/techkubo.com\/css\/css-colors\/\"},\"author\":{\"name\":\"Manong\",\"@id\":\"https:\/\/techkubo.com\/css\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965\"},\"headline\":\"CSS Colors\",\"datePublished\":\"2024-10-21T04:32:27+00:00\",\"dateModified\":\"2025-05-12T12:45:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/techkubo.com\/css\/css-colors\/\"},\"wordCount\":268,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/techkubo.com\/css\/#organization\"},\"image\":{\"@id\":\"https:\/\/techkubo.com\/css\/css-colors\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1.png\",\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/techkubo.com\/css\/css-colors\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/techkubo.com\/css\/css-colors\/\",\"url\":\"https:\/\/techkubo.com\/css\/css-colors\/\",\"name\":\"CSS Colors - CSS Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/techkubo.com\/css\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/techkubo.com\/css\/css-colors\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/techkubo.com\/css\/css-colors\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1.png\",\"datePublished\":\"2024-10-21T04:32:27+00:00\",\"dateModified\":\"2025-05-12T12:45:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/techkubo.com\/css\/css-colors\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/techkubo.com\/css\/css-colors\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techkubo.com\/css\/css-colors\/#primaryimage\",\"url\":\"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1.png\",\"contentUrl\":\"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1.png\",\"width\":1024,\"height\":512},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/techkubo.com\/css\/css-colors\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/techkubo.com\/css\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS Colors\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/techkubo.com\/css\/#website\",\"url\":\"https:\/\/techkubo.com\/css\/\",\"name\":\"CSS Tutorial\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/techkubo.com\/css\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/techkubo.com\/css\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/techkubo.com\/css\/#organization\",\"name\":\"CSS Tutorial\",\"url\":\"https:\/\/techkubo.com\/css\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techkubo.com\/css\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2025\/01\/cropped-Techkubo-logo-1-1.png\",\"contentUrl\":\"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2025\/01\/cropped-Techkubo-logo-1-1.png\",\"width\":1620,\"height\":1178,\"caption\":\"CSS Tutorial\"},\"image\":{\"@id\":\"https:\/\/techkubo.com\/css\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/techkubo.com\/css\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965\",\"name\":\"Manong\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techkubo.com\/css\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g\",\"caption\":\"Manong\"},\"sameAs\":[\"https:\/\/techkubo.com\"],\"url\":\"https:\/\/techkubo.com\/css\/author\/manong\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CSS Colors - CSS Tutorial","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techkubo.com\/css\/css-colors\/","og_locale":"en_US","og_type":"article","og_title":"CSS Colors - CSS Tutorial","og_description":"Colors are one of the most commonly used style properties in CSS. You can apply colors to a wide range [&hellip;]","og_url":"https:\/\/techkubo.com\/css\/css-colors\/","og_site_name":"CSS Tutorial","article_published_time":"2024-10-21T04:32:27+00:00","article_modified_time":"2025-05-12T12:45:18+00:00","og_image":[{"width":1024,"height":512,"url":"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1.png","type":"image\/png"}],"author":"Manong","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Manong","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techkubo.com\/css\/css-colors\/#article","isPartOf":{"@id":"https:\/\/techkubo.com\/css\/css-colors\/"},"author":{"name":"Manong","@id":"https:\/\/techkubo.com\/css\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965"},"headline":"CSS Colors","datePublished":"2024-10-21T04:32:27+00:00","dateModified":"2025-05-12T12:45:18+00:00","mainEntityOfPage":{"@id":"https:\/\/techkubo.com\/css\/css-colors\/"},"wordCount":268,"commentCount":0,"publisher":{"@id":"https:\/\/techkubo.com\/css\/#organization"},"image":{"@id":"https:\/\/techkubo.com\/css\/css-colors\/#primaryimage"},"thumbnailUrl":"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1.png","articleSection":["CSS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techkubo.com\/css\/css-colors\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techkubo.com\/css\/css-colors\/","url":"https:\/\/techkubo.com\/css\/css-colors\/","name":"CSS Colors - CSS Tutorial","isPartOf":{"@id":"https:\/\/techkubo.com\/css\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techkubo.com\/css\/css-colors\/#primaryimage"},"image":{"@id":"https:\/\/techkubo.com\/css\/css-colors\/#primaryimage"},"thumbnailUrl":"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1.png","datePublished":"2024-10-21T04:32:27+00:00","dateModified":"2025-05-12T12:45:18+00:00","breadcrumb":{"@id":"https:\/\/techkubo.com\/css\/css-colors\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techkubo.com\/css\/css-colors\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techkubo.com\/css\/css-colors\/#primaryimage","url":"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1.png","contentUrl":"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2024\/10\/CSS-colors-Image1.png","width":1024,"height":512},{"@type":"BreadcrumbList","@id":"https:\/\/techkubo.com\/css\/css-colors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techkubo.com\/css\/"},{"@type":"ListItem","position":2,"name":"CSS Colors"}]},{"@type":"WebSite","@id":"https:\/\/techkubo.com\/css\/#website","url":"https:\/\/techkubo.com\/css\/","name":"CSS Tutorial","description":"","publisher":{"@id":"https:\/\/techkubo.com\/css\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techkubo.com\/css\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techkubo.com\/css\/#organization","name":"CSS Tutorial","url":"https:\/\/techkubo.com\/css\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techkubo.com\/css\/#\/schema\/logo\/image\/","url":"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2025\/01\/cropped-Techkubo-logo-1-1.png","contentUrl":"https:\/\/techkubo.com\/css\/wp-content\/uploads\/sites\/5\/2025\/01\/cropped-Techkubo-logo-1-1.png","width":1620,"height":1178,"caption":"CSS Tutorial"},"image":{"@id":"https:\/\/techkubo.com\/css\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/techkubo.com\/css\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965","name":"Manong","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techkubo.com\/css\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g","caption":"Manong"},"sameAs":["https:\/\/techkubo.com"],"url":"https:\/\/techkubo.com\/css\/author\/manong\/"}]}},"_links":{"self":[{"href":"https:\/\/techkubo.com\/css\/wp-json\/wp\/v2\/posts\/35"}],"collection":[{"href":"https:\/\/techkubo.com\/css\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techkubo.com\/css\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techkubo.com\/css\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techkubo.com\/css\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":6,"href":"https:\/\/techkubo.com\/css\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"predecessor-version":[{"id":269,"href":"https:\/\/techkubo.com\/css\/wp-json\/wp\/v2\/posts\/35\/revisions\/269"}],"wp:attachment":[{"href":"https:\/\/techkubo.com\/css\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techkubo.com\/css\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techkubo.com\/css\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}