Repository: matplotlib/matplotlib
File: lib/matplotlib/_cm.py (Python)

Code before:

_Dark2_data = (
    (0.10588235294117647, 0.61960784313725492, 0.46666666666666667),
    (0.85098039215686272, 0.37254901960784315, 0.00784313725490196),
    (0.45882352941176469, 0.4392156862745098,  0.70196078431372544),
    (0.90588235294117647, 0.16078431372549021, 0.54117647058823526),
    (0.4,                 0.65098039215686276, 0.11764705882352941),
    (0.90196078431372551, 0.6705882352941176,  0.00784313725490196),
    (0.65098039215686276, 0.46274509803921571, 0.11372549019607843),
    (0.4,                 0.4,                 0.4                ),
    )

# Okabe-Ito accessible and print-friendly color palette .
# By Masataka Okabe (Jikei Medical School) and Kei Ito (University of Tokyo).
# Qualitative color palette that is unambiguous regardless of whether
# the viewer has colorblindness. https://jfly.uni-koeln.de/color/#pallet

_okabe_ito_data = (
    (0.0, 0.0, 0.0),                        # black
    (0.901960784, 0.623529412, 0.0),        # e69f00
    (0.337254902, 0.705882353, 0.91372549),  # 56b4e9
    (0.0, 0.619607843, 0.450980392),        # 009e73
    (0.9412, 0.894117647, 0.258823529),     # f0e442
    (0.0, 0.447058824, 0.698039216),        # 0072b2
    (0.835294118, 0.368627451, 0.0),        # d55e00
    (0.8, 0.474509804, 0.654901961),        # cc79a7
)

_Paired_data = (
    (0.65098039215686276, 0.80784313725490198, 0.8901960784313725 ),
    (0.12156862745098039, 0.47058823529411764, 0.70588235294117652),
    (0.69803921568627447, 0.87450980392156863, 0.54117647058823526),
    (0.2,                 0.62745098039215685, 0.17254901960784313),
    (0.98431372549019602, 0.60392156862745094, 0.6                ),
    (0.8901960784313725,  0.10196078431372549, 0.10980392156862745),
    (0.99215686274509807, 0.74901960784313726, 0.43529411764705883),
    (1.0,                 0.49803921568627452, 0.0                ),
    (0.792156862745098,   0.69803921568627447, 0.83921568627450982),
    (0.41568627450980394, 0.23921568627450981, 0.60392156862745094),
    (1.0,                 1.0,                 0.6                ),
    (0.69411764705882351, 0.34901960784313724, 0.15686274509803921),
    )

_Pastel1_data = (
    (0.98431372549019602, 0.70588235294117652, 0.68235294117647061),
    (0.70196078431372544, 0.80392156862745101, 0.8901960784313725 ),
    (0.8,                 0.92156862745098034, 0.77254901960784317),
    (0.87058823529411766, 0.79607843137254897, 0.89411764705882357),
    (0.99607843137254903, 0.85098039215686272, 0.65098039215686276),
    (1.0,                 1.0,                 0.8                ),
    (0.89803921568627454, 0.84705882352941175, 0.74117647058823533),

Review comment (suggestion):
Not sure whether it's significant, but let's use some more digits for consistency. The values here should be what you get from `matplotlib.colors.to_rgb(hex_value)`.

Code after:

_Dark2_data = (
    (0.10588235294117647, 0.61960784313725492, 0.46666666666666667),
    (0.85098039215686272, 0.37254901960784315, 0.00784313725490196),
    (0.45882352941176469, 0.4392156862745098,  0.70196078431372544),
    (0.90588235294117647, 0.16078431372549021, 0.54117647058823526),
    (0.4,                 0.65098039215686276, 0.11764705882352941),
    (0.90196078431372551, 0.6705882352941176,  0.00784313725490196),
    (0.65098039215686276, 0.46274509803921571, 0.11372549019607843),
    (0.4,                 0.4,                 0.4                ),
    )

# Okabe-Ito accessible and print-friendly color palette.
# By Masataka Okabe (Jikei Medical School) and Kei Ito (University of Tokyo).
# Qualitative color palette that is unambiguous regardless of whether
# the viewer has colorblindness. https://jfly.uni-koeln.de/color/#pallet

_okabe_ito_data = (
    (0.0, 0.0, 0.0),                                                # black
    (0.9019607843137255, 0.6235294117647059, 0.0),                  # e69f00
    (0.33725490196078434, 0.7058823529411765, 0.9137254901960784),  # 56b4e9
    (0.0, 0.6196078431372549, 0.45098039215686275),                 # 009e73
    (0.9411764705882353, 0.8941176470588236, 0.25882352941176473),  # f0e442
    (0.0, 0.4470588235294118, 0.6980392156862745),                  # 0072b2
    (0.8352941176470589, 0.3686274509803922, 0.0),                  # d55e00
    (0.8, 0.4745098039215686, 0.6549019607843137),                  # cc79a7
)

_Paired_data = (
    (0.65098039215686276, 0.80784313725490198, 0.8901960784313725 ),
    (0.12156862745098039, 0.47058823529411764, 0.70588235294117652),
    (0.69803921568627447, 0.87450980392156863, 0.54117647058823526),
    (0.2,                 0.62745098039215685, 0.17254901960784313),
    (0.98431372549019602, 0.60392156862745094, 0.6                ),
    (0.8901960784313725,  0.10196078431372549, 0.10980392156862745),
    (0.99215686274509807, 0.74901960784313726, 0.43529411764705883),
    (1.0,                 0.49803921568627452, 0.0                ),
    (0.792156862745098,   0.69803921568627447, 0.83921568627450982),
    (0.41568627450980394, 0.23921568627450981, 0.60392156862745094),
    (1.0,                 1.0,                 0.6                ),
    (0.69411764705882351, 0.34901960784313724, 0.15686274509803921),
    )

_Pastel1_data = (
    (0.98431372549019602, 0.70588235294117652, 0.68235294117647061),
    (0.70196078431372544, 0.80392156862745101, 0.8901960784313725 ),
    (0.8,                 0.92156862745098034, 0.77254901960784317),
    (0.87058823529411766, 0.79607843137254897, 0.89411764705882357),
    (0.99607843137254903, 0.85098039215686272, 0.65098039215686276),
    (1.0,                 1.0,                 0.8                ),
    (0.89803921568627454, 0.84705882352941175, 0.74117647058823533),