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 7626931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:23:31+00:00 2026-05-31T05:23:31+00:00

I wrote a similar post on Graphic Design. I need to know how to

  • 0

I wrote a similar post on Graphic Design.

I need to know how to calculate if a color is Warm or Cool, Active or Passive, the saturation of the color, the Chroma of it, etc in Javascript (jQuery).

For the code I think I can handle it, but I need to know the ranges (starting point to ending point) and/or additionnal hints about that.

If anyone can can help with this, he’s/she’s welcomed.

Thank you all

  • 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. Editorial Team
    Editorial Team
    2026-05-31T05:23:32+00:00Added an answer on May 31, 2026 at 5:23 am

    This Wikipedia article will help you calculate colour hue which can be related to colour temperature (warm/cold and everything in-between).

    I suspect the same hue value can determine active/passive colour nature.

    The other article talks about HSL/HSV where hue, saturation and lightness/intensity/brightness are being calculated from RBG values. Chroma is also mentioned in it.

    Now what about Javascript

    Doing these things in Javascript is just as much of a math question as in any other language. You have all the same math constructs (or can at least write them).

    Given RBG values (in either HEX or 0..255 integer for each colour) you can then calculate these values and determine colour properties as per your problem.

    And example of calculating hue in Javascript:

    // individual values of RGB are provided in these three valiables
    var r, g, b;
    ...
    // if values are set between 0..255 then use these as well
    r = r/255; g = g/255; b = b/255;
    
    // hue is calculated where red 0°, green 120° and blue 240°
    var h = Math.atan2(Math.sqrt(3) * (g - b), 2 * r - g - b);
    

    Or you could also use the simplified formulas based on Preucil that selects a particular formula based on individual colour component relation…

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

Sidebar

Related Questions

I wrote this method (almost similar in other post) public void update(string fileName, string
I wrote a same(..similar?) piece of code for Java 7 and C#(.net 3.5) and
I wrote the following loop since I have to repeat the same/similar code 25
I wrote a trigger that updates local table and similar table on linked server.
Using the following steps: (I have checked this similar post , which does not
I would like to make a WRITE A NEW POST page similar to ASP.NET
I've seen a similar post here however it refers to Python 2.6 and I
I know that a similar question is posted here: Android Session cookies without using
My question is similar to this one: need to call soap ws without wsdl
I want something similar to this post but with Visual Studio. This would be

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.