Skip to content

colorspace

A Toolbox for Manipulating and Assessing Colors and Palettes

v2.1-2 · Sep 22, 2025 · BSD_3_clause + file LICENSE

Description

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 <https://colorspace.R-Forge.R-project.org/> and in the accompanying scientific paper: Zeileis et al. (2020, Journal of Statistical Software, <doi:10.18637/jss.v096.i01>).

Downloads

CRAN

441.7K

Last 30 days

139th

1.5M

Last 90 days

5.8M

Last year

Trend: -13.6% (30d vs prior 30d)

r2u CRAN

3.6K

Last 30 days

13.7K

Last 90 days

37.4K

Last year

Trend: -27% (30d vs prior 30d)

autoCRAN

25

Last 7 days

64

Last 30 days

2

All-time

⚠ Shared name: this package is also shipped elsewhere on openSUSE, so this count is not exclusive to autoCRAN (it is an upper bound).

CRAN Check Status

2 NOTE
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang NOTE
r-devel-linux-x86_64-fedora-gcc NOTE
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-fedora-clang

running R code from vignettes

‘hcl-colors.Rnw’ using ‘UTF-8’... NOTE
differences from ‘hcl-colors.Rout.save’
151,152d150
< Warning in filled.contour(xr, yr, matrix(as.numeric(preds), nrow = length(xr),  :
<   'col' has length 26 but should have length 25 (= length(levels) - 1, with length(levels) = 26); colors will be recycled or ignored
NOTE r-devel-linux-x86_64-fedora-gcc

running R code from vignettes

‘hcl-colors.Rnw’ using ‘UTF-8’... NOTE
differences from ‘hcl-colors.Rout.save’
151,152d150
< Warning in filled.contour(xr, yr, matrix(as.numeric(preds), nrow = length(xr),  :
<   'col' has length 26 but should have length 25 (= length(levels) - 1, with length(levels) = 26); colors will be recycled or ignored

Check History

NOTE 11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 30, 2026
NOTE r-devel-linux-x86_64-fedora-clang

running R code from vignettes

‘hcl-colors.Rnw’ using ‘UTF-8’... NOTE
differences from ‘hcl-colors.Rout.save’
151,152d150
< Warning in filled.contour(xr, yr, matrix(as.numeric(preds), nrow = length(xr),  :
<   'col' has length 26 but should have length 25 (= length(levels) - 1, with length(levels) = 26); colors will be recycled or ignored
NOTE r-devel-linux-x86_64-fedora-gcc

running R code from vignettes

‘hcl-colors.Rnw’ using ‘UTF-8’... NOTE
differences from ‘hcl-colors.Rout.save’
151,152d150
< Warning in filled.contour(xr, yr, matrix(as.numeric(preds), nrow = length(xr),  :
<   'col' has length 26 but should have length 25 (= length(levels) - 1, with length(levels) = 26); colors will be recycled or ignored
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 27, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 14, 2026
WARNING r-release-linux-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘colorspace.Rmd’ using rmarkdown
--- finished re-building ‘colorspace.Rmd’

--- re-building ‘hcl-colors.Rnw’ using Sweave
Loading required package: grid
KernSmooth 2.23 loaded
Copyright M. P. W
...[truncated]...
document}
                     
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘hcl-colors.Rnw’

SUMMARY: processing the following file failed:
  ‘hcl-colors.Rnw’

Error: Vignette re-building failed.
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 11, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 10, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.7/colorspace.Rcheck/00install.out' for details.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 25, 2026
ERROR r-release-macos-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘colorspace.Rmd’ using rmarkdown
--- finished re-building ‘colorspace.Rmd’

--- re-building ‘hcl-colors.Rnw’ using Sweave
Loading required package: grid

Error: processing vignette 'hcl-colors.Rnw' f
...[truncated]...
bel = preliminaries) 
Error in library("mvtnorm") : there is no package called ‘mvtnorm’

--- failed re-building ‘hcl-colors.Rnw’

SUMMARY: processing the following file failed:
  ‘hcl-colors.Rnw’

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 24, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 22, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/colorspace.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (244)

Dependency Network

Dependencies Reverse dependencies NonParRolCor R2BayesX RolWinMulCor VIM W2CWM2C bamlss cabootcrs grpCox mixAK prefmod smacof APCtools BayesX BioRssay CNSigs +229 more reverse deps colorspace

Version History

28 tracked
new 2.1-2 Mar 10, 2026
updated 2.1-2 ← 2.1-1 diff Sep 21, 2025
updated 2.1-1 ← 2.1-0 diff Jul 25, 2024
updated 2.1-0 ← 2.0-3 diff Jan 22, 2023
updated 2.0-3 ← 2.0-2 diff Feb 20, 2022
updated 2.0-2 ← 2.0-1 diff Jun 23, 2021
updated 2.0-1 ← 2.0-0 diff May 3, 2021
updated 2.0-0 ← 1.4-1 diff Nov 10, 2020
updated 1.4-1 ← 1.4-0 diff Mar 17, 2019
updated 1.4-0 ← 1.3-2 diff Jan 12, 2019
updated 1.3-2 ← 1.3-1 diff Dec 13, 2016
updated 1.3-1 ← 1.3-0 diff Nov 17, 2016
updated 1.3-0 ← 1.2-7 diff Nov 9, 2016
updated 1.2-7 ← 1.2-6 diff Oct 10, 2016
updated 1.2-6 ← 1.2-5 diff Mar 10, 2015