Digital Color Meter

On Apple OS X systems, if you want to identify the text color or background color on an image or within a window, you can use the Digital Color Meter application, which you will find in Applications/Utilities, as a color picker. When you move the mouse pointer over the area containing the color you wish to identify, you will see the color displayed within a box in the Digital Color Meter and codes identifying the color. E.g., for the instance below, the color is a light gray with the L*a*b* lab color space values of 88.05, 1.53, and -1.16.

Digital Color Meter - L*a*b*

You can select other color standards, e.g., the RGB color model (red, green, blue) from the dropdown display list. The options are as follows:
  1. Display native values
  2. Display in sRGB
  3. Display in Generic RGB
  4. Display in Adobe RGB
  5. Display in L*a*b*

E.g., Generic RBB:

Digital Color Meter - RGB

If you wish to use the color in the HTML code for a webpage, you can use rgb(red,green,blue), substituting the given numbers for the respective rgb values, e.g.:

<span style="background-color: rgb(231,231,231)">A test</span>

I've found that selecting "Display in sRGB" for the color standard in the Digital Color Meter when I use the application on my MacBook Pro laptop gives RGB values that more closely match the color I've selected in a window on the laptop with the Digital Color Meter to the color that will be displayed in a webpage when I use rgb(r,g,b) to set the color of an element on a web page to match the color used in the window on the laptop. The sRGB standard for RGB color space was created by Microsoft Corporation and HP in 1996 to be used for monitors, printers, and the Internet.

If you wish to convert the values to the hexadecimal color codes commonly used to specify colors on web pages, you can obtain the equivalent HTML colors by using an RGB to Hex Value Calculator


TechRabbit ad 300x250

Justdeals Daily Electronics Deals1x1 px