Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 157099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:26:37+00:00 2026-05-11T10:26:37+00:00

When converting from RGB to grayscale, it is said that specific weights to channels

  • 0

When converting from RGB to grayscale, it is said that specific weights to channels R, G, and B ought to be applied. These weights are: 0.2989, 0.5870, 0.1140.

It is said that the reason for this is different human perception/sensibility towards these three colors. Sometimes it is also said these are the values used to compute NTSC signal.

However, I didn’t find a good reference for this on the web. What is the source of these values?

See also these previous questions: here and here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:26:38+00:00Added an answer on May 11, 2026 at 10:26 am

    The specific numbers in the question are from CCIR 601 (see Wikipedia article).

    If you convert RGB -> grayscale with slightly different numbers / different methods, you won’t see much difference at all on a normal computer screen under normal lighting conditions — try it.

    Here are some more links on color in general:

    Wikipedia Luma

    Bruce Lindbloom ‘s outstanding web site

    chapter 4 on Color in the book by Colin Ware, "Information Visualization", isbn 1-55860-819-2; this long link to Ware in books.google.com may or may not work

    cambridgeincolor : excellent, well-written "tutorials on how to acquire, interpret and process digital photographs using a visually-oriented approach that emphasizes concept over procedure"

    Should you run into "linear" vs "nonlinear" RGB, here’s part of an old note to myself on this. Repeat, in practice you won’t see much difference.


    ### RGB -> ^gamma -> Y -> L*

    In color science, the common RGB values, as in html rgb( 10%, 20%, 30% ), are called "nonlinear" or Gamma corrected. "Linear" values are defined as

    Rlin = R^gamma,  Glin = G^gamma,  Blin = B^gamma 

    where gamma is 2.2 for many PCs. The usual R G B are sometimes written as R’ G’ B’ (R’ = Rlin ^ (1/gamma)) (purists tongue-click) but here I’ll drop the ‘.

    Brightness on a CRT display is proportional to RGBlin = RGB ^ gamma, so 50% gray on a CRT is quite dark: .5 ^ 2.2 = 22% of maximum brightness. (LCD displays are more complex; furthermore, some graphics cards compensate for gamma.)

    To get the measure of lightness called L* from RGB, first divide R G B by 255, and compute

    Y = .2126 * R^gamma + .7152 * G^gamma + .0722 * B^gamma 

    This is Y in XYZ color space; it is a measure of color "luminance". (The real formulas are not exactly x^gamma, but close; stick with x^gamma for a first pass.)

    Finally,

    L* = 116 * Y ^ 1/3 - 16 

    "… aspires to perceptual uniformity [and] closely matches human perception of lightness." — Wikipedia Lab color space

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 123k
  • Answers 123k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Your code is good, the only problem is that you… May 12, 2026 at 1:04 am
  • Editorial Team
    Editorial Team added an answer Is it possible to expand this feature to smart pointers… May 12, 2026 at 1:04 am
  • Editorial Team
    Editorial Team added an answer You may change the link on page to say ww.mysite.com/test/myapp/testfunction… May 12, 2026 at 1:04 am

Related Questions

In JavaScript, when converting from a float to a string, how can I get
I finally found an answer to my question when I wanted to post it!
i was using Iconv library on Ruby to convert encoding from UTF-8 to UTF-32,
I'm trying to deploy elmah . For inexplicable reasons, I'm getting an error: .axd

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.