  {"id":21095,"date":"2025-02-20T08:54:22","date_gmt":"2025-02-20T13:54:22","guid":{"rendered":"https:\/\/carleton.ca\/webaccessibility\/?page_id=21095"},"modified":"2025-06-09T08:12:50","modified_gmt":"2025-06-09T12:12:50","slug":"avoiding-colour-to-alert-users-to-meaning","status":"publish","type":"page","link":"https:\/\/carleton.ca\/webaccessibility\/avoiding-colour-to-alert-users-to-meaning\/","title":{"rendered":"Avoiding colour to alert users to meaning"},"content":{"rendered":"\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n            <div class=\"cu-textmedia flex flex-col lg:flex-row mx-auto gap-6 md:gap-10 my-6 md:my-12 first:mt-0 max-w-5xl\">\n        <div class=\"justify-start cu-textmedia-content cu-prose-first-last\" style=\"flex: 0 0 100%;\">\n            <header class=\"font-light prose-xl cu-pageheader md:prose-2xl cu-component-updated cu-prose-first-last\">\n                                    <h1 class=\"cu-prose-first-last font-semibold !mt-2 mb-4 md:mb-6 relative after:absolute after:h-px after:bottom-0 after:bg-cu-red after:left-px text-3xl md:text-4xl lg:text-5xl lg:leading-[3.5rem] pb-5 after:w-10 text-cu-black-700 not-prose\">\n                        Avoiding colour to alert users to meaning\n                    <\/h1>\n                \n                                \n                            <\/header>\n\n                    <\/div>\n\n            <\/div>\n\n    <\/div>\n<\/section>\n\n\n\n<h2 id=\"accessibility\" class=\"wp-block-heading\">Accessibility<\/h2>\n\n\n\n<p>Alerting your users is important and we have many ways to do this. The best way is almost always text\/language.<\/p>\n\n\n\n<h2 id=\"reason\" class=\"wp-block-heading\">Reason<\/h2>\n\n\n\n<p>Some methods used can stop users from being able to get clear information. This can be because they cannot perceive colour, for example.<\/p>\n\n\n\n<h2 id=\"best-practice\" class=\"wp-block-heading\">Best practice<\/h2>\n\n\n\n<p>If you want to <em class=\"myprefix-text-italic\">alert<\/em> folks to something, the best way to do this is always through clear, concise language. This is the base method because, as long as the language is succinct and the font is clear they will be able to access the text by reading it visually or by using assistive technology. <\/p>\n\n\n\n<p>You can employ other methods. You can <a href=\"https:\/\/carleton.ca\/cutheme-docs\/block-library\/design-blocks\/alerts-block\/\">read about the alerts block in cuTheme<\/a>, for example. They look like this:<\/p>\n\n\n<div class=\"flex p-4 rounded-md cu-alert cu-alert--info not-prose\">\n\n            <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewbox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" class=\"w-8 h-8\">\n            <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z\"><\/path>\n        <\/svg>\n    \n    <div class=\"w-full ml-3\">\n        <p class=\"text-base md:text-lg mt-0.5 font-semibold\">\n            Here is some information \n        <\/p>\n            <\/div>\n<\/div>\n\n\n<div class=\"flex p-4 rounded-md cu-alert cu-alert--error not-prose\">\n\n            <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewbox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" class=\"w-8 h-8\">\n            <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z\"><\/path>\n        <\/svg>\n    \n    <div class=\"w-full ml-3\">\n        <p class=\"text-base md:text-lg mt-0.5 font-semibold\">\n            Oops! An Error!\n        <\/p>\n            <\/div>\n<\/div>\n\n\n<div class=\"flex p-4 rounded-md cu-alert cu-alert--warning not-prose\">\n\n            <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewbox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" class=\"w-8 h-8\">\n            <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M12 9v3.75m0-10.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.75c0 5.592 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.57-.598-3.75h-.152c-3.196 0-6.1-1.25-8.25-3.286Zm0 13.036h.008v.008H12v-.008Z\"><\/path>\n        <\/svg>\n    \n    <div class=\"w-full ml-3\">\n        <p class=\"text-base md:text-lg mt-0.5 font-semibold\">\n            Danger, Will Robinson!\n        <\/p>\n            <\/div>\n<\/div>\n\n\n<div class=\"flex p-4 rounded-md cu-alert cu-alert--success not-prose\">\n\n            <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewbox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" class=\"w-8 h-8\">\n            <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"><\/path>\n        <\/svg>\n    \n    <div class=\"w-full ml-3\">\n        <p class=\"text-base md:text-lg mt-0.5 font-semibold\">\n            You did it &#8211; Well done!\n        <\/p>\n            <\/div>\n<\/div>\n\n\n\n<p>Note that although they are different colours, it is not the colour alone which signals the meaning. The language is the main way to signify the meaning of the alert. In addition, there is an icon which adds meaning.<\/p>\n\n\n\n<h2 id=\"example-of-less-accessible-practices\" class=\"wp-block-heading\">Example of less accessible practices<\/h2>\n\n\n\n<p>Relying on colour alone can leave people guessing. If you are unable to perceive colour because of &#8220;colour blindness&#8221; or are accessing the content via a screen reader, the presence of colour is either moot or misleading. For example, <\/p>\n\n\n\n<p><em class=\"myprefix-text-italic\">Should you invest in a vacation timeshare in Ottawa for February?<\/em><\/p>\n\n\n<div class=\"flex p-4 rounded-md cu-alert cu-alert--error not-prose\">\n\n            <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewbox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" class=\"w-8 h-8\">\n            <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z\"><\/path>\n        <\/svg>\n    \n    <div class=\"w-full ml-3\">\n        <p class=\"text-base md:text-lg mt-0.5 font-semibold\">\n            We think this colour answers the question for you!\n        <\/p>\n            <\/div>\n<\/div>\n\n\n\n<p>&#8230;especially when the text is also ambiguous.<\/p>\n\n\n\n<h2 id=\"additional-benefits\" class=\"wp-block-heading\">Additional benefits<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong class=\"myprefix-text-bold\">Usability<\/strong>: For anyone, the use of colour could be misleading. Culturally, colours have different meanings in different societies or age groups. Avoiding reliance on colour as a visual signal makes content less ambiguous.<\/li>\n\n\n\n<li><strong class=\"myprefix-text-bold\">SEO<\/strong>: The more you place the meaning of your content into text, the easier it is for search engines to index your page. Search engines don&#8217;t index based on colour.<\/li>\n\n\n\n<li><strong class=\"myprefix-text-bold\">Marketing<\/strong>: The easier it is for people to understand content the easier it is to find information. Generally, this help promote ÐÓ°ÉÔ­´´ as a place where information in easy to find and accessible. <\/li>\n<\/ul>\n\n\n\n<h2 id=\"what-wcag-says\" class=\"wp-block-heading\">What WCAG says<\/h2>\n\n\n\n<p>(Be sure to <a href=\"https:\/\/app.pope.tech\/result-documentation\">learn more about errors and alerts<\/a>.)<\/p>\n\n\n\n<p>From WCAG:<\/p>\n\n\n\n<p>Their success criteria is: &#8220;Color is not used as the only visual means of conveying information, indicating an action, prompting a response, or distinguishing a visual element.&#8221;<\/p>\n\n\n\n<p><a href=\"https:\/\/www.w3.org\/WAI\/WCAG21\/Understanding\/use-of-color.html\">Learn more about WCAG says about this issue<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Accessibility Alerting your users is important and we have many ways to do this. The best way is almost always text\/language. Reason Some methods used can stop users from being able to get clear information. This can be because they cannot perceive colour, for example. Best practice If you want to alert folks to something, [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_cu_dining_location_slug":"","footnotes":"","_links_to":"","_links_to_target":""},"cu_page_type":[18,14,22,23],"class_list":["post-21095","page","type-page","status-publish","hentry","cu_page_type-accessibility","cu_page_type-general","cu_page_type-images","cu_page_type-text-and-hyperlinks"],"acf":{"cu_post_thumbnail":""},"_links":{"self":[{"href":"https:\/\/carleton.ca\/webaccessibility\/wp-json\/wp\/v2\/pages\/21095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carleton.ca\/webaccessibility\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/carleton.ca\/webaccessibility\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/carleton.ca\/webaccessibility\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/carleton.ca\/webaccessibility\/wp-json\/wp\/v2\/comments?post=21095"}],"version-history":[{"count":5,"href":"https:\/\/carleton.ca\/webaccessibility\/wp-json\/wp\/v2\/pages\/21095\/revisions"}],"predecessor-version":[{"id":21312,"href":"https:\/\/carleton.ca\/webaccessibility\/wp-json\/wp\/v2\/pages\/21095\/revisions\/21312"}],"wp:attachment":[{"href":"https:\/\/carleton.ca\/webaccessibility\/wp-json\/wp\/v2\/media?parent=21095"}],"wp:term":[{"taxonomy":"cu_page_type","embeddable":true,"href":"https:\/\/carleton.ca\/webaccessibility\/wp-json\/wp\/v2\/cu_page_type?post=21095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}