Wavelength to Colour Relationship (2024)

Over the course of millions of years, the human eye has evolved to detect light in the range 380—780nm,a portion of the electromagnetic spectrum known as visible light, which we perceive as colour.The particular range of wavelengths coincides with a window in the Earth's atmosphere, through which this light can travel. Higher frequency radiation, such as x-rays are absorbed by the atmosphere, as are lower frequencies, such as microwaves.

Sunlight appears white to us because it emits almost uniformly over all visible frequencies. However, a laser for example, emits only at a single very specific frequency. Helium-neon lasers emit at 632.8nm, which is a bright red. The lasers in your Blu-ray player emit at 405nm, which as the name suggests, is blue. We can begin to build up a picture of how frequency is related to colour.

A frequent way of referring to colour on computer screens is by using the RGB system. In this model, each colour is given a value for each red, green and blues components ranging from 0 to 255, giving a total value of 16.7 million possible colours. However, due to the very complex way in which the eye perceives colours,we can see colours which are outside of the gamut of the RGB scheme - there is no unique mapping that definitively converts a wavelength to a colour, and as suchthe above tool should been seen as more of an approximation than a rigorous resource.

This demo was utilised in the paper Teaching Beer’s Law and Absorption Spectrophotometry with a Smart Phone: A Substantially Simplified Protocol by Thomas S. Kuntzleman and Erik C. Jacobson.

Credits

  • The code used to generate the colours is based on the work of Dan Bruton.

You might also be interested in

"); $('#ui-container').append("

"); this.update(); }, update: function(e){ this.color = this.nmToRGB(this.ui.wavelength.value); $("#color_display").css("background-color", this.rgbToHex(this.color)); var colHtml = "

Color:
rgb("; colHtml += this.color[0] +", "+ this.color[1] + ", "+ this.color[2]; colHtml += ")
Hex: " + this.rgbToHex(this.color) + "
"; colHtml += chroma(this.rgbToHex(this.color)).css('hsl'); colHtml += "

"; $("#color").html(colHtml); }, nmToRGB: function(wavelength){ var Gamma = 0.80, IntensityMax = 255, factor, red, green, blue; if((wavelength >= 380) && (wavelength<440)){ red = -(wavelength - 440) / (440 - 380); green = 0.0; blue = 1.0; }else if((wavelength >= 440) && (wavelength<490)){ red = 0.0; green = (wavelength - 440) / (490 - 440); blue = 1.0; }else if((wavelength >= 490) && (wavelength<510)){ red = 0.0; green = 1.0; blue = -(wavelength - 510) / (510 - 490); }else if((wavelength >= 510) && (wavelength<580)){ red = (wavelength - 510) / (580 - 510); green = 1.0; blue = 0.0; }else if((wavelength >= 580) && (wavelength<645)){ red = 1.0; green = -(wavelength - 645) / (645 - 580); blue = 0.0; }else if((wavelength >= 645) && (wavelength<781)){ red = 1.0; green = 0.0; blue = 0.0; }else{ red = 0.0; green = 0.0; blue = 0.0; }; // Let the intensity fall off near the vision limits if((wavelength >= 380) && (wavelength<420)){ factor = 0.3 + 0.7*(wavelength - 380) / (420 - 380); }else if((wavelength >= 420) && (wavelength<701)){ factor = 1.0; }else if((wavelength >= 701) && (wavelength<781)){ factor = 0.3 + 0.7*(780 - wavelength) / (780 - 700); }else{ factor = 0.0; }; if (red !== 0){ red = Math.round(IntensityMax * Math.pow(red * factor, Gamma)); } if (green !== 0){ green = Math.round(IntensityMax * Math.pow(green * factor, Gamma)); } if (blue !== 0){ blue = Math.round(IntensityMax * Math.pow(blue * factor, Gamma)); } return [red,green,blue]; }, toHex: function(number){ //converts a decimal number into hex format var hex = number.toString(16); if (hex.length < 2){ hex = "0" + hex; } return hex; }, rgbToHex: function(color){ //takes an 3 element array (r,g,b) and returns a hexadecimal color var hexString = '#'; for (var i = 0 ; i < 3 ; i++){ hexString += this.toHex(color[i]); } return hexString; }, // renderRainbow: function(){ // //render all the colours - used to generate the thumbnail image // var canvas = document.createElement('canvas'); // var ctx = canvas.getContext("2d"); // canvas.width = 870; // canvas.height = 400; // $("#demo").append(canvas); // for (var i = 0 ; i < canvas.width ; i++){ // ctx.fillStyle = this.rgbToHex(this.nmToRGB(this.map(i, 0, canvas.width, this.ui.wavelength.range[0], this.ui.wavelength.range[1]))); // ctx.fillRect(i, 0, 1, canvas.height); // ctx.fill(); // } // }, // map: function(value, minFrom, maxFrom, minTo, maxTo){ // //http://stackoverflow.com/questions/4154969/how-to-map-numbers-in-range-099-to-range-1-01-0 // return minTo + (maxTo - minTo) * ((value - minFrom) / (maxFrom - minFrom)); // }});

Wavelength to Colour Relationship (2024)
Top Articles
Big businesses read little blogs! – Jennifer Murch
No-Knead Focaccia
Funny Roblox Id Codes 2023
Www.mytotalrewards/Rtx
San Angelo, Texas: eine Oase für Kunstliebhaber
Golden Abyss - Chapter 5 - Lunar_Angel
Www.paystubportal.com/7-11 Login
Steamy Afternoon With Handsome Fernando
fltimes.com | Finger Lakes Times
Detroit Lions 50 50
18443168434
Newgate Honda
Zürich Stadion Letzigrund detailed interactive seating plan with seat & row numbers | Sitzplan Saalplan with Sitzplatz & Reihen Nummerierung
978-0137606801
Nwi Arrests Lake County
Missed Connections Dayton Ohio
Immortal Ink Waxahachie
Craigslist Free Stuff Santa Cruz
Mflwer
Costco Gas Foster City
Obsidian Guard's Cutlass
Mission Impossible 7 Showtimes Near Marcus Parkwood Cinema
Sprinkler Lv2
Uta Kinesiology Advising
Kcwi Tv Schedule
Nesb Routing Number
Olivia Maeday
Random Bibleizer
10 Best Places to Go and Things to Know for a Trip to the Hickory M...
Receptionist Position Near Me
Gopher Carts Pensacola Beach
Duke University Transcript Request
Nikki Catsouras: The Tragic Story Behind The Face And Body Images
Kiddie Jungle Parma
Lincoln Financial Field, section 110, row 4, home of Philadelphia Eagles, Temple Owls, page 1
The Latest: Trump addresses apparent assassination attempt on X
In Branch Chase Atm Near Me
Appleton Post Crescent Today's Obituaries
Craigslist Red Wing Mn
American Bully Xxl Black Panther
Ktbs Payroll Login
Jail View Sumter
Thotsbook Com
Funkin' on the Heights
Caesars Rewards Loyalty Program Review [Previously Total Rewards]
Marcel Boom X
Www Pig11 Net
Ty Glass Sentenced
Michaelangelo's Monkey Junction
Game Akin To Bingo Nyt
Ranking 134 college football teams after Week 1, from Georgia to Temple
Latest Posts
Article information

Author: Manual Maggio

Last Updated:

Views: 5795

Rating: 4.9 / 5 (69 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Manual Maggio

Birthday: 1998-01-20

Address: 359 Kelvin Stream, Lake Eldonview, MT 33517-1242

Phone: +577037762465

Job: Product Hospitality Supervisor

Hobby: Gardening, Web surfing, Video gaming, Amateur radio, Flag Football, Reading, Table tennis

Introduction: My name is Manual Maggio, I am a thankful, tender, adventurous, delightful, fantastic, proud, graceful person who loves writing and wants to share my knowledge and understanding with you.