Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to make palette for R-G-colorblindness #398

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

markuspeloquin
Copy link

This produces an adjusted Solarized palette that evenly spaces hues
between blue & yellow, keeping everything else the same. It gives the
highest possible contrast for Deuteranopia.

SOLARIZED HEX
--------- -------
yellow    #b58900
orange    #cb4916
red       #dc2f51
magenta   #bb36d3
violet    #6c76c4
blue      #268bd2
cyan      #2aa189
green     #189900

@markuspeloquin
Copy link
Author

markuspeloquin commented Dec 12, 2019

I am not colorblind, but tested this out on a coworker. He mentioned to me before that red and green look the same in diffs.

He says he's keeping it :).

This produces an adjusted Solarized palette that evenly spaces hues
between blue & yellow, keeping everything else the same. It gives the
highest possible contrast for Deuteranopia.

For terminals with 24-bit color support, it also displays the palette.

SOLARIZED HEX
--------- -------
yellow    #b58900
orange    #cb4916
red       #dc2f51
magenta   #bb36d3
violet    #6c76c4
blue      #268bd2
cyan      #2aa189
green     #189900
@markuspeloquin
Copy link
Author

I had the script also print the colors to the terminal. And my best guess at what it looks like flattened.

Screenshot from 2019-12-12 11-28-17

(I say 'flat' to mean that I'm remapping colors on the green side to the red side of the color wheel.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant