> ## Documentation Index
> Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt
> Use this file to discover all available pages before exploring further.

# Color accessibility in JavaScript (video tutorial)

[githublink]: https://github.com/cloudinary-devs/color-accessibility

## Overview

This video tutorial shows you how to analyze your images for color accessibility, and apply transformations both to simulate how color blind people may experience your images, and to assist them to distinguish similar-looking colors.

## Video tutorial

  This video is brought to you by Cloudinary's video player - embed your own!Use the controls to set the playback speed, navigate to chapters of interest and select subtitles in your preferred language.

> **TIP**: :title=View the code

You can find the code from this tutorial in [GitHub][githublink].
## Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.### Introduction
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=0 :sec=00 :player=cld} | Cloudinary can help you to see your images through the eyes of a color blind person, both subjectively and objectively, and provides transformations to make them more accessible.
|

### Why you should care about color accessibility
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=0 :sec=19 :player=cld} | One in twelve men, and one in two hundred women suffer from Color Vision Deficiency. That's a significant proportion of the population who may miss vital information or are unable to engage fully with your site. Cloudinary allows you to experience all the different types of color blindness, by applying simple transformations.
|

### How to simulate color blindness
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=0 :sec=47 :player=cld} | In a JavaScript environment, [install and configure the Cloudinary JavaScript SDK](javascript_quick_start) for your product environment, import the `simulateColorBlind` effect, and apply the effect your image.  Here, `publicId` and `colorType` are both strings defined elsewhere in the [app](https://github.com/cloudinary-devs/color-accessibility/blob/main/src/index.js) (see the full list of conditions in the [Transformation URL API Reference](transformation_reference#e_simulate_colorblind)):

```js
import { simulateColorBlind } from "@cloudinary/url-gen/actions/effect";

const myImage = cld.image(publicId);

myImage.effect(simulateColorBlind().condition(colorType));
```

### How to assist with color blindness
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=1 :sec=16 :player=cld} |  You can apply stripes or an X-ray effect to images to help color blind people to distinguish one color from another. Import `assistColorBlind` and apply either the `xray()` or `stripesStrength()` version of the effect to your image.  For stripes, specify the strength of the stripes from 1 to 100:
|

```js
import { assistColorBlind } from "@cloudinary/url-gen/actions/effect";

myImage.effect(assistColorBlind().stripesStrength(20));
```

### Analyze your images objectively
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=1 :sec=59 :player=cld} | The [Accessibility analysis](accessibility_analysis) feature lets you analyze your images objectively, to determine which of your images may cause problems for color blind people. Set the `accessibility_analysis` option to `true` when uploading images to return a color blind accessibility score, together with an analysis of the issues and the colors that may be the most problematic. See an example in this [GitHub repo](https://github.com/cloudinary-devs/color-accessibility-upload).
|

## Keep learning

> **READING**:
>
> * Learn more about Cloudinary's [color blind effects](effects_and_artistic_enhancements#colorblind_accessibility_effects).

> * Discover other [image](image_transformations) and [video](video_manipulation_and_delivery) transformations.

> * Check out the [Transformation reference](transformation_reference) for a listing of all Cloudinary transformations, including syntax details and examples.

> * Watch more [Dev Hints videos](https://www.youtube.com/playlist?list=PL8dVGjLA2oMpaTbvoKCaRNBMQzBUIv7N8) on the [Cloudinary YouTube channel](https://www.youtube.com/cloudinary).

> * Learn how to [ensure asset accessibility](ecommerce_best_practices#ensure_asset_accessibility) in your e-commerce workflows.

#### If you like this, you might also like...

  
  
  
    Configure the JavaScript SDK
    Install and configure the Cloudinary JavaScript SDK 
  

  
  
  
    Remove Backgrounds and Add Drop Shadows
    Remove image backgrounds and add drop shadows in a React app 
  

  
  
  
    Auto-Tag Images in Node.js
    Tag assets automatically during upload with AI in Node.js 
  

&nbsp;

&nbsp;Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.
&nbsp;
