Color vision deficiency (CVD) affects 8.5% of the population and leads to adifferent visual perception of colors. Though this has been known for decades,colormaps with many colors across the visual spectra are often used torepresent data, leading to the potential for misinterpretation or difficultywith interpretation by someone with this deficiency. Until the creation of themodule presented here, there were no colormaps mathematically optimized for CVDusing modern color appearance models. While there have been some attempts tomake aesthetically pleasing or subjectively tolerable colormaps for those withCVD, our goal was to make optimized colormaps for the most accurate perceptionof scientific data by as many viewers as possible. We developed a Pythonmodule, cmaputil, to create CVD-optimized colormaps, which imports colormapsand modifies them to be perceptually uniform in CVD-safe colorspace whilelinearizing and maximizing the brightness range. The module is made availableto the science community to enable others to easily create their ownCVD-optimized colormaps. Here, we present an example CVD-optimized colormapcreated with this module that is optimized for viewing by those without a CVDas well as those with red-green colorblindness. This colormap, cividis, enablesnearly-identical visual-data interpretation to both groups, is perceptuallyuniform in hue and brightness, and increases in brightness linearly.