How to Convert Temperature (K) to RGB: Algorithm and Sample Code (2024)

Converting temperature (Kelvin) to RGB: an overview

If you don’t know what “color temperature” is, start here.

While working on a “Color Temperature” tool for PhotoDemon, I spent an evening trying to track down a simple, straightforward algorithm for converting between temperature (in Kelvin) and RGB values. This seemed like an easy algorithm to find, since many photo editors provide tools for correcting an image’s color temperature in post-production, and every modern camera - including smartphones - provides a way to adjust white balance based on the lighting conditions of a shot.

How to Convert Temperature (K) to RGB: Algorithm and Sample Code (1)

Example of a camera white balance screen. Image courtesy of http://digitalcamerareviews2011online.blogspot.com

Little did I know, but it’s pretty much impossible to find a reliable temperature to RGB conversion formula. Granted, there are some algorithms out there, but most work by converting temperature to the XYZ color space, to which you could add your own RGB transformation after the fact. Such algorithms seem to be based off AR Robertson’s method, one implementation of which is here, while another is here.

Unfortunately, that approach isn’t really a mathematical formula - it’s just glorified look-up table interpolation. That might be a reasonable solution under certain circ*mstances, but when you factor in the additional XYZ -> RGB transformation required, it’s just too slow and overwrought for simple real-time color temperature adjustment.

So I wrote my own algorithm, and it works pretty damn well. Here’s how I did it.

Caveats for using this algorithm

Caveat 1: my algorithm provides a high-quality approximation, but it’s not accurate enough for serious scientific use. It’s designed primarily for photo manipulation - so don’t try and use it for astronomy or medical imaging.

Caveat 2: due to its relative simplicity, this algorithm is fast enough to work in real-time on reasonably sized images (I tested it on 12 megapixel shots), but for best results you should apply mathematical optimizations specific to your programming language. I’m presenting it here without math optimizations so as to not over-complicate it.

Caveat 3: this algorithm is only designed to be used between 1000 K and 40000 K, which is a nice spectrum for photography. (Actually, it’s way larger than most photographic situations call for.) While it will work for temperatures outside these ranges, estimation quality will decline.

Special thanks to Mitchell Charity

First off, I owe a big debt of gratitude to the source data I used to generate these algorithms - Mitchell Charity’s raw blackbody datafile at http://www.vendian.org/mncharity/dir3/blackbody/UnstableURLs/bbr_color.html. Charity provides two datasets, and my algorithm uses the CIE 1964 10-degree color matching function. A discussion of the CIE 1931 2-degree CMF with Judd Vos corrections versus the 1964 10-degree set is way beyond the scope of this article, but you can start here for a more comprehensive analysis if you’re so inclined.

The Algorithm: sample output

Here’s the output of the algorithm from 1000 K to 40000 K:

How to Convert Temperature (K) to RGB: Algorithm and Sample Code (2)

The white point occurs at 6500-6600 K, which is perfect for photo manipulation purposes on a modern LCD monitor.

Here’s a more detailed shot of the algorithm in the interesting photographic range, which is 1500 K to 15000 K:

How to Convert Temperature (K) to RGB: Algorithm and Sample Code (3)

As you can see, banding is minimal - which is a big improvement over the aforementioned look-up table methods. The algorithm also does a great job of preserving the slightly yellow cast leading up to the white point, which is important for imitating daylight in post-production photo manipulation.

How I arrived at this algorithm

My first step in reverse-engineering a reliable formula was to plot Charity’s original blackbody values. You can download my whole worksheet here in LibreOffice / OpenOffice .ods format (430kb).

Here’s how the data looks when plotted:

How to Convert Temperature (K) to RGB: Algorithm and Sample Code (4)

Mitchell Charity’s original Temperature (K) to RGB (sRGB) data, plotted in LibreOffice Calc. Again, these are based off the CIE 1964 10-degree CMFs. The white point, as desired, occurs between 6500 K and 6600 K (the peak on the left-hand side of the chart). (Source: http://www.vendian.org/mncharity/dir3/blackbody/UnstableURLs/bbr_color.html)

From this, it’s easy to note that there are a few floors and ceilings that make our algorithm easier. Specifically:

  • Red values below 6600 K are always 255
  • Blue values below 2000 K are always 0
  • Blue values above 6500 K are always 255

It’s also important to note that for purposes of fitting a curve to the data, green is best treated as two separate curves - one for temperatures below 6600 K, and a separate one for temperatures above that point.

From here, I separated the data (without the “always 0” and “always 255” segments) into individual color components. In a perfect world, a curve could then be fitted to each set of points, but unfortunately it wasn’t that simple. Because there’s a large disparity between the X and Y values in the plot - the x-values are all over 1000, and they are plotted in 100 point segments, while the y values all fall between 255 and 0 - it was necessary to transpose the x data in order to get a better fit. For optimization purposes, I stuck to first dividing the x value (the temperature) by 100 across each color, followed by an additional subtraction if it led to a significantly better fit. Here are the resultant charts for each curve, along with the best-fit curve and corresponding R-squared value:

How to Convert Temperature (K) to RGB: Algorithm and Sample Code (5)

How to Convert Temperature (K) to RGB: Algorithm and Sample Code (6)

How to Convert Temperature (K) to RGB: Algorithm and Sample Code (7)

How to Convert Temperature (K) to RGB: Algorithm and Sample Code (8)

Apologies for the horrifically poor font kerning and hinting in those charts. I love LibreOffice for many things, but its inability to do font aliasing on charts is downright shameful. I also don’t like having to extract charts from screenshots because they don’t have an export option, but that’s a rant best saved for some other day.

As you can see, the curves all fit reasonably well, with R-square values above .987. I could have spent more time really tweaking the curves, but for purposes of photo manipulation these are plenty close enough. No layperson is going to be able to tell that the curves don’t exactly fit raw idealized blackbody observations, right?

The algorithm

Using that data, here’s the algorithm, in all its glory.

First, pseudocode:

Start with a temperature, in Kelvin, somewhere between 1000 and 40000. (Other values may work, but I can't make any promises about the quality of the algorithm's estimates above 40000 K.)Note also that the temperature and color variables need to be declared as floating-point.Set Temperature = Temperature \ 100Calculate Red:If Temperature <= 66 ThenRed = 255ElseRed = Temperature - 60Red = 329.698727446 * (Red ^ -0.1332047592)If Red < 0 Then Red = 0If Red > 255 Then Red = 255End IfCalculate Green:If Temperature <= 66 ThenGreen = TemperatureGreen = 99.4708025861 * Ln(Green) - 161.1195681661If Green < 0 Then Green = 0If Green > 255 Then Green = 255ElseGreen = Temperature - 60Green = 288.1221695283 * (Green ^ -0.0755148492)If Green < 0 Then Green = 0If Green > 255 Then Green = 255End IfCalculate Blue:If Temperature >= 66 ThenBlue = 255ElseIf Temperature <= 19 ThenBlue = 0ElseBlue = Temperature - 10Blue = 138.5177312231 * Ln(Blue) - 305.0447927307If Blue < 0 Then Blue = 0If Blue > 255 Then Blue = 255End IfEnd If

In the pseudocode above, note that Ln() means natural logarithm. Note also that you can omit the “If color < 0” checks if you will only ever supply temperatures in the recommended range. (You still need to leave the “If color > 255” checks, though.)

As for actual code, here’s the exact Visual Basic function I’m using in PhotoDemon. It’s not yet optimized (for example, the logarithms would be much faster via look-up table) but at least the code is short and readable:

'Given a temperature (in Kelvin), estimate an RGB equivalentPrivate Sub getRGBfromTemperature(ByRef r As Long, ByRef g As Long, ByRef b As Long, ByVal tmpKelvin As Long) Static tmpCalc As Double 'Temperature must fall between 1000 and 40000 degrees If tmpKelvin < 1000 Then tmpKelvin = 1000 If tmpKelvin > 40000 Then tmpKelvin = 40000 'All calculations require tmpKelvin \ 100, so only do the conversion once tmpKelvin = tmpKelvin \ 100 'Calculate each color in turn 'First: red If tmpKelvin <= 66 Then r = 255 Else 'Note: the R-squared value for this approximation is .988 tmpCalc = tmpKelvin - 60 tmpCalc = 329.698727446 * (tmpCalc ^ -0.1332047592) r = tmpCalc If r < 0 Then r = 0 If r > 255 Then r = 255 End If 'Second: green If tmpKelvin <= 66 Then 'Note: the R-squared value for this approximation is .996 tmpCalc = tmpKelvin tmpCalc = 99.4708025861 * Log(tmpCalc) - 161.1195681661 g = tmpCalc If g < 0 Then g = 0 If g > 255 Then g = 255 Else 'Note: the R-squared value for this approximation is .987 tmpCalc = tmpKelvin - 60 tmpCalc = 288.1221695283 * (tmpCalc ^ -0.0755148492) g = tmpCalc If g < 0 Then g = 0 If g > 255 Then g = 255 End If 'Third: blue If tmpKelvin >= 66 Then b = 255 ElseIf tmpKelvin <= 19 Then b = 0 Else 'Note: the R-squared value for this approximation is .998 tmpCalc = tmpKelvin - 10 tmpCalc = 138.5177312231 * Log(tmpCalc) - 305.0447927307 b = tmpCalc If b < 0 Then b = 0 If b > 255 Then b = 255 End If End Sub

This function was used to generate the sample output near the start of this article, so I can guarantee that it works.

Sample images

Here’s a great example of what color temperature adjustments can do. The image below – a promotional poster for the HBO series True Blood – nicely demonstrates the potential of color temperature adjustments. On the left is the original shot; on the right, a color temperature adjustment using the code above. In one click, a nighttime scene can been recast in daylight.

How to Convert Temperature (K) to RGB: Algorithm and Sample Code (9)

The actual color temperature tool in PhotoDemon looks like this:

How to Convert Temperature (K) to RGB: Algorithm and Sample Code (10)

Download it here to see it in action.

addendum October 2014

Renaud Bédard has put together a great online demonstration of this algorithm (including a translation to GLSL). Check it out here, and thank you to Renaud for sharing!

addendum April 2015

Neil B has helpfully provided a better version of the original curve-fitting functions, which results in slightly modified temperature coefficients. His excellent article describes the changes in detail.

addendum January 2020

David has ported this code to Swift.

Tom Yaxley has ported it to javascript.

Christophe Carpentier has ported it to Java.

Mike D Sutton has ported it to node.js.

Robert Atkinson has re-fit the data using Mathematica (which offers much more powerful fitting features than LibreOffice, obviously!).

addendum November 2020

m-lima has ported this code to Rust.

addendum January 2021

petrklus has ported this code to python. (Thank you to nestorst for notifying me!)

addendum March 2021

teckel12 has ported this code to PHP.

addendum October 2021

Haroon Atcha has ported this code to R.

addendum January 2022

Kiryl Ambrazheichyk has ported this code to C#.

Jorge Valle Hurtado has ported this code to C++ for Unreal Engine.

How to Convert Temperature (K) to RGB: Algorithm and Sample Code (2024)

FAQs

What is K in RGB? ›

Temperature. K. Color: rgb(255,108, 0) Hex: #FF6C00.

How is color temperature measured? ›

Colour temperature is measured in degrees of the Kelvin scale, which is usually abbreviated to 'K. ' It is measured on a numbered scale, where the higher the number, the 'cooler,' or bluer the light. The lower the number, the 'warmer,' or yellower the light.

Can a color in HSV be converted to RGB? ›

RGB = hsv2rgb( HSV ) converts the hue, saturation, and value (HSV) values of an HSV image to red, green, and blue values of an RGB image. rgbmap = hsv2rgb( hsvmap ) converts an HSV colormap to an RGB colormap.

How do you convert RGB to color? ›

Hex to RGB conversion

Get the 2 left digits of the hex color code and convert to decimal value to get the red color level. Get the 2 middle digits of the hex color code and convert to decimal value to get the green color level.

What is 6500K in RGB? ›

6500K @ 10 degree angle, the RGB values are 255 249 253.

Why do we use K means clustering for color quantization? ›

Performs a pixel-wise Vector Quantization (VQ) of an image of the summer palace (China), reducing the number of colors required to show the image from 96,615 unique colors to 64, while preserving the overall appearance quality.

What colour is 4000K? ›

4000K Color Range

The 4000K color temperature range for LEDs is neutral white. This color range produces a balanced color tone, not too blue and not too yellow.

What is L * a * b * stand for? ›

November 2010) The CIELAB color space, also referred to as L*a*b* , is a color space defined by the International Commission on Illumination (abbreviated CIE) in 1976. (Referring to CIELAB as "Lab" without asterisks should be avoided to prevent confusion with Hunter Lab.)

What colour is 6500K? ›

6500K appears as pure white, which is very close to natural daylight white on a cloudy day. To further clarify it, the color temperatures between 4000K – 6500K may remind you of the sunlight at noon. While the LED lights may be manufactured to emit colors in different tones, from white light to cool blue light.

How do you convert RGB to HSV algorithm? ›

Converting RGB to HSV

H = 360 - cos-1[ (R - ½G - ½B)/√R² + G² + B² - RG - RB - GB ] if B > G. Inverse cosine is calculated in degrees.

Why RGB is converted to HSV? ›

R, G, B in RGB are all co-related to the color luminance( what we loosely call intensity),i.e., We cannot separate color information from luminance. HSV or Hue Saturation Value is used to separate image luminance from color information. This makes it easier when we are working on or need luminance of the image/frame.

How do you convert an RGB color to his HSV space? ›

Convert RGB Image to HSV Image

Convert the image to the HSV color space. HSV = rgb2hsv(RGB); Process the HSV image. This example increases the saturation of the image by multiplying the S channel by a scale factor.

How do I convert an Image to RGB? ›

How To convert An Indexed Image to RGB Color Mode in Photoshop

How do you decode a color code? ›

Hex color codes start with a pound sign or hashtag (#) and are followed by six letters and/or numbers. The first two letters/numbers refer to red, the next two refer to green, and the last two refer to blue. The color values are defined in values between 00 and FF (instead of from 0 to 255 in RGB).

What does 6500K color temperature mean? ›

A: Actually, 6500K means 6500 degrees Kelvin. It has nothing to do with brightness whatsoever. It's the temperature color. 6500K is equivalent to the color of light provided by an overcast, cloudy day, which is slightly (very slightly) bluer than mid-day sun.

What type of light is 6500K? ›

4600K-6500K: gives off a bright amount of blue-white light, similar to that of daylight; best for display areas and work environments where very bright illumination is needed. 6500K and up: gives off a bright bluish hue of light, often found in commercial locations; best for bright task lighting .

Which is brighter 5000K or 6500K? ›

Since 6500K is a cooler color temperature, it can often appear to be brighter than the warm-toned 5000K.

How does color quantization work? ›

In computer graphics, color quantization or color image quantization is quantization applied to color spaces; it is a process that reduces the number of distinct colors used in an image, usually with the intention that the new image should be as visually similar as possible to the original image.

What basis does K-means clustering define clusters? ›

A key limitation of k-means is its cluster model. The concept is based on spherical clusters that are separable so that the mean converges towards the cluster center. The clusters are expected to be of similar size, so that the assignment to the nearest cluster center is the correct assignment.

How do you cluster an image? ›

Schematic overview for clustering of images.

Clustering of images is a multi-step process for which the steps are to pre-process the images, extract the features, cluster the images on similarity, and evaluate for the optimal number of clusters using a measure of goodness.

What K is Yellowlight? ›

3000K = YELLOW

As seen on the graph, 3000 kelvin is typically a yellow color commonly found in fog lights. Yellow light supposedly penetrates further because of its long wavelength, but it's still much smaller than fog particles. It also helps increase visibility to oncoming traffic.

What does 6000K mean? ›

6000K is a cool color temperature and defined as “Day White” color. Usually, cooler light be perceived as” bright enough” and look awesome if when they come to automotive lighting. The color temperature 6000K has the satisfied conditions as above mentioned.

What does 4000K mean? ›

Kelvin is often used to measure color temperature of light or to determine what the light color actually looks like. A piece of metal heated up to 4,000 degrees will look like a cool white color. Thus, calling it a 4000K light makes more sense. The overall Kelvin scale ranges from 1,000K to 10,000K.

What is the CIELAB color system? ›

CIELAB or CIE L*a*b* is a device-independent, 3D color space that enables accurate measurement and comparison of all perceivable colors using three color values. In this color space, numerical differences between values roughly correspond to the amount of change humans see between colors.

What is RGB to Lab? ›

RGB operates on three channels: red, green and blue. Lab is a conversion of the same information to a lightness component L*, and two color components - a* and b*. Lightness is kept separate from color, so that you can adjust one without affecting the other.

How is hue angle calculated? ›

In both colour spaces, hue angle is calculated h = arctan (b/a), which is between 0 and 360 degrees and corresponds to the hue circle. Since a is the redness-greenness and b is the yellowness-blueness component, h = 0 approximates the appearance of red, h = 90 yellow, h = 180 green, and h = 270 blue object surfaces.

How many K is warm white? ›

At the lower end of the scale, from 2000K to 3000K, the light produced is called “warm white” and ranges from orange to yellow-white in appearance.

What is the difference between 5000K and 6000K? ›

The color temperature of 5000K appears somewhat yellow, while the color temperature of 6000K appears almost pure white. A comparison of the 6000K and 5000K exactly shows that the 6000K has a greater percentage of blue and less yellow and also red.

What is brighter 4000K or 5000K? ›

However, the visible impression of brightness is dependent on the color temperature, so although 4000K and 5000K both emit a bright light, the 5000k will feel slightly brighter than 4000K. This is because it emits more blue light which is at the higher end of the visible spectrum.

What is the difference between RGB and HSV? ›

HSV is a cylindrical color model that remaps the RGB primary colors into dimensions that are easier for humans to understand. Like the Munsell Color System, these dimensions are hue, saturation, and value. Hue specifies the angle of the color on the RGB color circle.

How do I convert an image from RGB to HSV in Python? ›

In OpenCV, the values of the Hue channel range from 0 to 179, whereas the Saturation and Value channels range from 0 to 255. In OpenCV, to convert an RGB image to HSV image, we use the cv2. cvtColor() function. This function is used to convert an image from one color space to another.

How do I convert RGB image to HSV in OpenCV? ›

OpenCV has cvtColor function which is used for converting an image from one color space to another. This function accepts color conversion code. COLOR_BGR2HSV code allows to convert from RGB to HSV color space.

How do you calculate RGB saturation? ›

The formula for Saturation uses the Min(RGB), Max(RGB) values and Luminosity. We have calculated the Luminosity before, L = 0,555. Our formula will be (A) as L = 0,555 < 1. We also know Max(RGB) = 0,898 and Min(RGB) = 0,212.

Why HSV is used in image processing? ›

Color (Image Processing Toolbox) The HSV color space (hue, saturation, value) is often used by people who are selecting colors (e.g., of paints or inks) from a color wheel or palette, because it corresponds better to how people experience color than the RGB color space does.

Is HSV more accurate than RGB? ›

The proposed algorithms using both RGB and HSV color space are able to detect the 3 standard types of colored images namely Red, Yellow and Blue. The experiment shows that the HSV color algorithm achieved better detection accuracy compared to RGB color space.

How do you convert HSI to RGB? ›

Equations to Convert HSI Values to RGB Values

B = I + IS*[1 - cos(H-120)/cos(180-H)]. B = I + 2IS. B = I + IS*cos(H-240)/cos(300-H). MAKE IT!

How do you convert RGB to HSI in Python? ›

To convert RGB color values to HSV color values in Python, import colorsys library, call rgb_to_hsv() function, and pass the Red, Green, and Blue values as arguments. rgb_to_hsv() function takes Red, Blue, and Green values as arguments, and returns a tuple containing Hue, Saturation, and Value.

What is full form of HSV in Python? ›

HSV - (hue, saturation, value), also known as HSB (hue, saturation, brightness), is often used by artists because it is often more natural to think about a color in terms of hue and saturation than in terms of additive or subtractive color components.

What is RGB image format? ›

An RGB file is a color bitmap image, saved in a file format created by Silicon Graphics (SGI). It contains binary data used to show an image using the RGB color model. RGB files are similar to . SGI files.

How do you convert an image to RGB in Python? ›

“how to convert grayscale image to rgb in python” Code Answer's
  1. import cv2.
  2. image = cv2. imread('C:/Users/N/Desktop/Test.jpg')
  3. gray = cv2. cvtColor(image, cv2. COLOR_BGR2GRAY)
  4. cv2. imshow('Original image',image)
  5. cv2. imshow('Gray image', gray)

How do I find the RGB value of an image in Python? ›

How get the RGB values of an image using PIL in Python
  1. filename = "sample.jpg"
  2. img = Image. open(filename)
  3. img. show() Display image.
  4. colors = img. getpixel((320,240)) Get the RGB values at coordinate x = 320, y = 240.
  5. print(colors)

What does RGB stand for? ›

RGB LED means red, blue and green LEDs. RGB LED products combine these three colors to produce over 16 million hues of light. Note that not all colors are possible.

How do I convert RGB to CMYK? ›

If you're wanting to convert an image from RGB to CMYK, then simply open the image in Photoshop. Then, navigate to Image > Mode > CMYK.

What is the Colour code of white? ›

The hex code for white is #FFFFFF.

How do you set RGB values in Python? ›

Show activity on this post.
  1. get the RGB color of the pixel [r,g,b]=img.getpixel((x, y))
  2. update new rgb value r = r + rtint g = g + gtint b = b + btint value = (r,g,b)
  3. assign new rgb value back to pixel img.putpixel((x, y), value)
14 Mar 2018

How does RGB work in Python? ›

In more technical terms, RGB describes a color as a tuple of three components. Each component can take a value between 0 and 255, where the tuple (0, 0, 0) represents black and (255, 255, 255) represents white.

How do you find the color code in Python? ›

“python color” Code Answer's
  1. from colorama import init.
  2. from colorama import Fore.
  3. init()
  4. print(Fore. BLUE + 'Hello')
  5. print(Fore. RED + 'Hello')
  6. print(Fore. YELLOW + 'Hello')
  7. print(Fore. GREEN + 'Hello')
  8. print(Fore. WHITE + 'Hello')

What does RGB stand for? ›

RGB LED means red, blue and green LEDs. RGB LED products combine these three colors to produce over 16 million hues of light. Note that not all colors are possible.

Why is RGB 255? ›

Since 255 is the maximum value, dividing by 255 expresses a 0-1 representation. Each channel (Red, Green, and Blue are each channels) is 8 bits, so they are each limited to 256, in this case 255 since 0 is included.

Why 255 is white? ›

The most common pixel format is the byte image, where this number is stored as an 8-bit integer giving a range of possible values from 0 to 255. Typically zero is taken to be black, and 255 is taken to be white. Values in between make up the different shades of gray.

What do the RGB numbers mean? ›

The first and second digits represent the red level; the third and fourth digits represent the green level; the fifth and sixth digits represent the blue level. In order to actually display the colors for all possible values, the computer display system must have 24 bits to describe the color in each pixel.

What is the value range for RGB? ›

RGB values are used to specify colors. Red, green and blue are specified with values between 0 and 255. One color is specified with a combination of three values.

When should we use RGB? ›

Graphic designers and print providers use the RGB color model for any type of media that transmits light, such as computer screens. RGB is ideal for digital media designs because these mediums emit color as red, green, or blue light.

What is RGB input? ›

An input port on your television labeled "RGB-PC Input," or something similar, is used to accept a video signal from a computer. These ports connect to standard VGA cables just like the ones used to connect a desktop computer to its monitor.

How do you find RGB? ›

How to Know RGB Color Code - YouTube

What is RGB color format? ›

RGB stands for the three primary colors, Red, Green and Blue. This model uses light to make their colors bright and if you were to mix all three of them you would get a pure white. Your screen mixes red, green and blue light to produce the colors you see on your screen.

What is a color code? ›

Color codes are ways of representing the colors we see everyday in a format that a computer can interpret and display. Commonly used in websites and other software applications, there are a variety of formats. The two that will be introduced here are the Hex Color Codes, and the RGB color codes.

What colour is Ffffff? ›

#FFFFFF means full FF amounts of Red, Green, and Blue. The result is WHITE.

What color is RGB 0 0? ›

Example
#rgb#rrggbbrgb(integer)
#000#000000rgb(0,0,0)
#FFF#FFFFFFrgb(255,255,255)
#F00#FF0000rgb(255,0,0)
#0F0#00FF00rgb(0,255,0)
1 more row

What RGB value is 255255255? ›

The RGB color 255, 255, 255 is a light color, and the websafe version is hex FFFFFF, and the color name is white.

How are RGB values measured? ›

RGB is a combination of Red, Green and Blue. These colors can be combined in various proportions to obtain any color in the visible spectrum. Each level is measured by the range of decimal numbers from 0 to 255 (256 levels for each color). For example, if a color has zero Blue, it will be a mixture of Red and Green.

What color is #000000? ›

#000000 color name is Black color. #000000 hex color red value is 0, green value is 0 and the blue value of its RGB is 0. Cylindrical-coordinate representations (also known as HSL) of color #000000 hue: 0.00 , saturation: 0.00 and the lightness value of 000000 is 0.00.

How many bit is RGB? ›

Usually, RGB, grayscale, and CMYK images contain 8 bits of data per color channel. That is why an RGB image is often referred to as 24-bit RGB (8 bits x 3 channels), a grayscale image is referred to as 8-bit grayscale (8 bits x channel), and a CMYK image is referred to as 32-bit CMYK (8 bits x 4 channels).

Top Articles
Latest Posts
Article information

Author: Laurine Ryan

Last Updated:

Views: 5833

Rating: 4.7 / 5 (77 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Laurine Ryan

Birthday: 1994-12-23

Address: Suite 751 871 Lissette Throughway, West Kittie, NH 41603

Phone: +2366831109631

Job: Sales Producer

Hobby: Creative writing, Motor sports, Do it yourself, Skateboarding, Coffee roasting, Calligraphy, Stand-up comedy

Introduction: My name is Laurine Ryan, I am a adorable, fair, graceful, spotless, gorgeous, homely, cooperative person who loves writing and wants to share my knowledge and understanding with you.