“Web colors are colors used in displaying web pages on the World Wide Web; they can be described by way of three methods: a color may be specified as an RGB triplet, in hexadecimal format (a hex triplet) or according to its common English name in some cases. A color tool or other graphics software is often used to generate color values. In some uses, hexadecimal color codes are specified with notation using a leading number sign” (Wikipedia)
color=read.csv("color_srgb.csv")
head(color)
## Name HEX RGB
## 1 White #FFFFFF rgb(100,100,100)
## 2 Silver #C0C0C0 rgb(75,75,75)
## 3 Gray #808080 rgb(50,50,50)
## 4 Black #000000 rgb(0,0,0)
## 5 Red #FF0000 rgb(100,0,0)
## 6 Maroon #800000 rgb(50,0,0)
Here you can see some common colors and their hexidecimal codes and RGB triplets.
library(knitr)
kable(color[1:16, ], caption = "Color Table." )
| Name | HEX | RGB |
|---|---|---|
| White | #FFFFFF | rgb(100,100,100) |
| Silver | #C0C0C0 | rgb(75,75,75) |
| Gray | #808080 | rgb(50,50,50) |
| Black | #000000 | rgb(0,0,0) |
| Red | #FF0000 | rgb(100,0,0) |
| Maroon | #800000 | rgb(50,0,0) |
| Yellow | #FFFF00 | rgb(100,100,0) |
| Olive | #808000 | rgb(50,50,0) |
| Lime | #00FF00 | rgb(0,100,0) |
| Green | #008000 | rgb(0,50,0) |
| Aqua | #00FFFF | rgb(0,100,100) |
| Teal | #008080 | rgb(0,50,50) |
| Blue | #0000FF | rgb(0,0,100) |
| Navy | #000080 | rgb(0,0,50) |
| Fuchsia | #FF00FF | rgb(100,0,100) |
| Purple | #800080 | rgb(50,0,50) |
This image shows the wide range of colors available for use in digital imaging in wheel format
Some of my favorite colors and their HEX codes are:
Yellow (#f7fca9)
Blue (#70a7ff)
Green (#074703)
Pink (#f2bdde)
[Web colors - Wikipedia] (https://en.wikipedia.org/wiki/Web_colors)
Xie Y (2025). knitr: A General-Purpose Package for Dynamic Report Generation in R. R package version 1.51, https://yihui.org/knitr/.
Yihui Xie (2015) Dynamic Documents with R and knitr. 2nd edition. Chapman and Hall/CRC. ISBN 978-1498716963
Yihui Xie (2014) knitr: A Comprehensive Tool for Reproducible Research in R. In Victoria Stodden, Friedrich Leisch and Roger D. Peng, editors, Implementing Reproducible Computational Research. Chapman and Hall/CRC. ISBN 978-1466561595