Free plan

Color blindness preview

See how a picture looks to people with colour blindness
POST
/v1/images/color-blindness
Deuteranopia
Original
OriginalDeuteranopia

About this tool

Shows how your picture looks to someone who has trouble seeing certain colours (colour blindness), such as red, green or blue, or who sees no colour at all. You can set how strong the effect is and show the result next to the original. It helps you check that your design does not depend on colour alone.
For example, you check that a chart that uses red and green can still be understood.

How to use it

  1. Choose this tool.
  2. Add your picture with Upload or drag and drop.
  3. Choose the type of colour blindness and how strong it is.
  4. Choose to show only the result or the original beside it, then press Generate.
  5. Look at the result or download it.

What you get back

You get a new picture showing how it looks with colour blindness, which you can download.
GOOD TO KNOW
A simulation for design checks (Machado et al. 2009 matrices in linear light), not a medical tool. With layout=all, type and severity apply to all four conditions (severity) and type is ignored. Counts as one image per picture.
TEST IT LIVE

Try Color blindness preview in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Images
Plan
Free
Method
POST
Endpoint
/v1/images/color-blindness
Tool ID
images.color-blindness
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Image
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/images/color-blindness" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'images=@photo.jpg' \
  -F 'type=deuteranopia' \
  -F 'severity=1' \
  -F 'layout=single'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.colorBlindness({
    "images": 'photo.jpg',
    "type": "deuteranopia",
    "severity": 1,
    "layout": "single"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->colorBlindness([
    'images' => 'photo.jpg',
    'type' => 'deuteranopia',
    'severity' => 1,
    'layout' => 'single',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Show how a picture looks to a person with protanopia, deuteranopia, tritanopia or achromatopsia, at full or partial strength, alone or next to the original, to check that a design does not rely on colour alone.

Color blindness preview accepts JPEG, PNG, WEBP, GIF, AVIF, TIFF, SVG, SVGZ, BMP, ICO, APNG, PNM and 9 more. You can send several files in one request.

Color blindness preview is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/images/color-blindness with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.