The gplots package has a function named col2hex():

library(gplots)
col2hex("gold1")
"#FFD700"
Answer from GordonShumway on Stack Overflow
🌐
RGB Color Picker
rgbcolorpicker.com
RGB Color Picker
The intensity of each color is represented with a value from 0-255, where 0 is the lowest intensity and 255 is the highest. RGB is an additive color model, meaning that light emitted from the display adds colors together to create a desired color. When all three colors are combined at their maximum intensity (255 each), they produce white.
🌐
RapidTables
rapidtables.com › convert › color › rgb-to-hex.html
RGB to Hex Color Converter
Hex to RGB converter ► · Convert the red, green and blue color values from decimal to hex. Concatenate the 3 hex values of the red, green and blue togather: RRGGBB. Convert red color (255,0,0) to hex color code: R = 25510 = FF16 · G = 010 = 0016 · B = 010 = 0016 ·
🌐
HTML Color Codes
htmlcolorcodes.com
HTML Color Codes
Get HTML color codes, Hex color codes, RGB, HSL and OKLCH values with our color pickers, color wheel, color chart and HTML color names. Let's go!
🌐
W3Schools
w3schools.com › colors › colors_rgb.asp
Colors RGB and RGBA
Each parameter (red, green, and blue) defines the intensity of the color with a value between 0 and 255. For example, rgb(255, 0, 0) is displayed as red, because red is set to its highest value (255), and the other two (green and blue) are set to 0.
🌐
Wikipedia
en.wikipedia.org › wiki › RGB_color_model
RGB color model - Wikipedia
2 weeks ago - The name of the model comes from the initials of the three additive primary colors— red, green, and blue. The main purpose of the RGB color model is for the sensing, representation, and display of images in electronic systems, such as televisions ...
Find elsewhere
🌐
W3Schools
w3schools.com › colors › colors_picker.asp
HTML Color Picker
Colors HOME Color Names Color Values Color Groups Color Shades Color Picker Color Mixer Color Converter Color RGB Color HEX Color HSL Color HWB Color CMYK Color NCol Color Gradient Color Theory Color Wheels Color currentcolor Color Hues Color Schemes Color Palettes Color Brands Color W3.CSS Color Metro UI Color Win8 Color Flat UI Color Psychology
🌐
RapidTables
rapidtables.com › convert › color › hex-to-rgb.html
Hex to RGB Color Converter
Convert red hex color code FF0000 to RGB color: Hex = FF0000 · So the RGB colors are: R = FF16 = 25510 · G = 0016 = 010 · B = 0016 = 010 · Or · RGB = (255, 0, 0) Convert gold hex color code FFD700 to RGB color: Hex = FFD700 · So the RGB colors are: R = FF16 = 25510 ·
🌐
Wikipedia
en.wikipedia.org › wiki › RGB_color_spaces
RGB color spaces - Wikipedia
6 days ago - Both xyY and uʹ,vʹ are derived from the CIE 1931 color space, a device independent space also known as XYZ which covers the full gamut of human-perceptible colors visible to the CIE 2° standard observer. RGB color spaces are well-suited to describing the electronic display of color, such as computer monitors and color television.
🌐
Color Hex
color-hex.com › popular-colors.php
Popular Colors
Popular Colors · List of most favorited colors by our users · #ff80ed 4578 · #065535 1232 · #000000 1079 · #133337 822 · #ffc0cb 744 · #ffffff 648 · #008080 597 · #ffe4e1 595
🌐
RGB.to
rgb.to
Convert Hex color #af0e55 to Rgb, Pantone, RAL, HSL, HSV, HSB, JSON. Get color scheme.
HEX color #af0e55 to RGB, Pantone, RAL, HSL and HSB formats. Convert it to JSON format and generate color schemes for your design.
🌐
meyerweb
meyerweb.com › eric › tools › color-blend
Color Blender
The Color Blender is licensed under a Creative Commons Attribution-ShareAlike 1.0 License · This tool is provided without warranty, guarantee, or much in the way of explanation. Note that use of this tool may or may not crash your browser, lock up your machine, erase your hard drive, or e-mail ...
🌐
Figma
figma.com › resource library › design basics › what is rgb?
What is RGB Color? Definition & How It Works | Figma
RGB (red, green, blue) produces colors on digital screens through a combination of red, green, and blue light. Read on to learn how it works.
🌐
Partner Marketing Hub
partnermarketinghub.withgoogle.com › brands › google-play › visual-identity › color-palette
Color palette - Partner Marketing Hub
Please note that secondary colors are only used for call-to-actions, in digital applications. For print, please select from the primary color palette. Hex #0F9D58 · rgb 15, 157, 88 · cmyk 83, 12, 88 · Hex #F4B400 · rgb 244, 180, 0 · cmyk ...
🌐
RGBA Color Picker
rgbacolorpicker.com
RGBA Color Picker
RGB 565 is an alternative representation of RGB colors that uses 16 bits to represent the color: 5 bits for red, 6 bits for green, and 5 bits for blue. This color space is used in some embedded systems, such as microcontrollers.
🌐
Seaborn
seaborn.pydata.org › tutorial › color_palettes.html
Choosing color palettes — seaborn 0.13.2 documentation
The return value is an object that wraps a list of RGB tuples with a few useful methods, such as conversion to hex codes and a rich HTML representation. Calling color_palette() with no arguments will return the current default color palette that matplotlib (and most seaborn functions) will use if colors are not otherwise specified.
🌐
R Graph Gallery
r-graph-gallery.com › 43-rgb-colors.html
Calling a color with the rgb() function in R – the R Graph Gallery
To use the function: rgb(red, green, blue, alpha) : quantity of red (between 0 and 1), of green and of blue, and finally transparency (alpha). This picture shows the colors you get for a given red value (Y axis), green value (X axis) and blue value.
🌐
Espirian
espirian.co.uk › home › rgb and hex colours
RGB and HEX colours
April 13, 2015 - To produce other colours, we just need to use different combinations of values. If you’re not used to additive colour, the results might sometimes seem a little counterintuitive. For example, yellow is red plus green: RGB(255, 255, 0).