colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes

Carries out mapping between assorted color spaces including RGB, HSV, HLS, CIEXYZ, CIELUV, HCL (polar CIELUV), CIELAB, and polar CIELAB. Qualitative, sequential, and diverging color palettes based on HCL colors are provided along with corresponding ggplot2 color scales. Color palette choice is aided by an interactive app (with either a Tcl/Tk or a shiny graphical user interface) and shiny apps with an HCL color picker and a color vision deficiency emulator. Plotting functions for displaying and assessing palettes include color swatches, visualizations of the HCL space, and trajectories in HCL and/or RGB spectrum. Color manipulation functions include: desaturation, lightening/darkening, mixing, and simulation of color vision deficiencies (deutanomaly, protanomaly, tritanomaly). Details can be found on the project web page at <> and in the accompanying scientific paper: Zeileis et al. (2020, Journal of Statistical Software, <doi:10.18637/jss.v096.i01>).

Version: 2.1-0
Depends: R (≥ 3.0.0), methods
Imports: graphics, grDevices, stats
Suggests: datasets, utils, KernSmooth, MASS, kernlab, mvtnorm, vcd, tcltk, shiny, shinyjs, ggplot2, dplyr, scales, grid, png, jpeg, knitr, rmarkdown, RColorBrewer, rcartocolor, scico, viridis, wesanderson
Published: 2023-01-23
DOI: 10.32614/CRAN.package.colorspace
Author: Ross Ihaka [aut], Paul Murrell ORCID iD [aut], Kurt Hornik ORCID iD [aut], Jason C. Fisher ORCID iD [aut], Reto Stauffer ORCID iD [aut], Claus O. Wilke ORCID iD [aut], Claire D. McWhite ORCID iD [aut], Achim Zeileis ORCID iD [aut, cre]
Maintainer: Achim Zeileis <Achim.Zeileis at>
License: BSD_3_clause + file LICENSE
NeedsCompilation: yes
Citation: colorspace citation info
Materials: NEWS
CRAN checks: colorspace results


Reference manual: colorspace.pdf
Vignettes: colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes
HCL-Based Color Palettes in R


Package source: colorspace_2.1-0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): colorspace_2.1-0.tgz, r-oldrel (arm64): colorspace_2.1-0.tgz, r-release (x86_64): colorspace_2.1-0.tgz, r-oldrel (x86_64): colorspace_2.1-0.tgz
Old sources: colorspace archive

Reverse dependencies:

Reverse depends: bamlss, biclust, BiplotGUI, cabootcrs, grpCox, MineICA, mixAK, NonParRolCor, prefmod, R2BayesX, rcaiman, RolWinMulCor, smacof, VIM, W2CWM2C
Reverse imports: anacor, animalEKF, APCtools, autoimage, autonomics, bartMan, bayesianVARs, BayesX, bea.R, bigMap, BioRssay, BiplotGUI, categoryCompare, ccrs, cds, ChemoSpec2D, circlize, clevRvis, CliquePercolation, cmsaf, cmsafvis, colorblindcheck, colorBlindness, colorist, colorpatch, colorRamp2, colorsGen, cols4all, ComplexHeatmap, ComplexUpset, condvis2, copula, corr2D, CRABS, cranly, DepthProc, dittoSeq, EcotoneFinder, effects, eRm, eseis, espadon, expectreg, forecast, frontiles, ftsa, geiger, GeneTonic, getspres, ggblanket, ggcharts, gggenomes, ggrasp, ggseqplot, ggwordcloud, Gifi, gmoviz, gpairs, gptstudio, GRaNIE, gwasforest, hbamr, heatmaply, HH, Hmisc, hues, HYPEtools, insurancerating, InterCellar, iNZightPlots, iNZightTS, IOHanalyzer, IsotopeR, JOPS, ldaPrototype, lessR, levi, MapGAM, mapStats, mcmcplots, MCMCvis, mergenstudio, metafolio, munsell, netboost, NetOrigin, NMF, OpenRepGrid, optimization, orthos, pals, PanViz, phyloregion, Polychrome, PRECAST, pRolocGUI, qgraph, rainbow, randomcoloR, RavenR, RcmdrMisc, rCNV, RegionalST, rms, roloc, rolocISCCNBS, semPlot, seriation, SGP, simplecolors, simplifyEnrichment, simPop, simsalapar, singleCellTK, smallsets, smoothAPC, SPARTAAS, SpatialCPie, stray, subspace, swatches, Thresher, TIMP, trackeRapp, TraMineR, TraMineRextras, TreeDist, treemap, TreeTools, ucie, vcd, ViSiElse, visTree, vivid, Wats, WeightedTreemaps, wheatmap, whomds, xaringanthemer
Reverse suggests: AlphaMissenseR, aqp, atpolR, berryFunctions, BiodiversityR, BloodCancerMultiOmics2017, casebase, cba, collapsibleTree, cotram, csa, cubble, cxhull, dataquieR, DataVisualizations, dendextend, DEoptim, EBcoexpress, eks, emojifont, finalsize, flexsurv, flowViz, ggplotify, grImport, Guerry, hermiter, hetGP, HPiP, httk, IBMPopSim, IncDTW, IsoriX, lattice, LBSPR, LocalControl, mlt.docreg, movMF, mulgar, mvord, netmeta, nodiv, PairViz, palettes, party, r3js, rasterVis, rattle, Rcmdr, regsem, reservr, retrofit, RGraphics, rpanel, SCpubr, sSNAPPY, surveillance, SWMPr, tbm, tcpl,, tourr, tpSVG, tram, tramnet, tramvs, unhcrthemes, UpAndDownPlots, viridis, wacolors, WRS2
Reverse enhances: shades


Please use the canonical form to link to this page.