Color to Sound Synesthesia Calculator

Pick any swatch and this calculator translates it into three linked descriptions: an approximate visible-light wavelength in nanometers, an octave-folded audible frequency in hertz, and the nearest equal-tempered note name. It is a playful synesthesia-style bridge between color theory, wave physics, and music notation.

How this color-to-sound calculator turns a hue into a note

This color-to-sound mapping is intentionally imaginative, but it is not random. The calculator follows a simple chain of wave-based ideas: it extracts hue from the chosen screen color, associates that hue with a position in an approximate visible spectrum, expresses that position as a wavelength, and converts wavelength to frequency. Light frequencies are far too high for hearing, so the calculator repeatedly divides by two until the result is audible. It then identifies the closest note in the equal-tempered system used by modern keyboards, guitars, and digital tuners.

That sequence makes the result musical without claiming that every color has one universally correct pitch. Synesthesia in real people is personal and varied. Some people report stable color-note associations, others do not, and no scientific standard requires a particular hex code to become one precise note. This calculator instead supplies a transparent, repeatable mapping. Selecting the same swatch again produces the same wavelength estimate, folded frequency, and note label.

What the color swatch input means for the sound mapping

The color-to-sound form has one input: a color picker. The code extracts the swatch's red, green, and blue channel values, then calculates hue from them. Hue is the angle around the color wheel that distinguishes red, yellow, green, cyan, blue, and violet. Put differently, this mapping chiefly responds to where a color sits around the wheel, rather than to how light, dark, muted, or vivid it appears on a display.

That creates two practical consequences for color-to-note experiments. Saturated colors usually give the most intuitive results because their hue is clear. Neutral colors such as gray, white, and black do not have meaningful hue in the way that red or blue does. In this implementation, when equal RGB channels make hue ambiguous, the JavaScript returns 0 degrees. Neutral swatches are therefore handled as if they were at the red end of the scale. This is an implementation choice, not a statement about the physics of neutral light.

For creative comparison, start with a vivid color and then try nearby hues. Small hue changes can move the wavelength estimate by tens of nanometers, while the final note may remain unchanged because note names are rounded to the nearest equal-tempered pitch. Neighboring colors can consequently share a note label even when their displayed frequencies differ.

From color hue to estimated wavelength

This color-to-sound calculator maps the 360-degree hue circle onto an approximate visible range from 750 nanometers down to 380 nanometers. Red hues lie near the long-wavelength end and violet hues near the short-wavelength end. The relationship is stylized rather than spectrometric: most screen colors are mixtures of RGB light, not single spectral wavelengths. It nevertheless provides a consistent bridge from the color-picker vocabulary of hue to the optical vocabulary of wavelength.

The page uses the following approximation, where h is hue in degrees and λ is wavelength in nanometers:

λ = 750 370·h 360

For a hue of 0 degrees, the formula returns 750 nm at the red side of the visible spectrum. At 120 degrees, it estimates about 627 nm; at 240 degrees, it estimates about 503 nm, in the blue-green portion of this model. Because the formula is linear, equal movements around the hue wheel produce equal changes in estimated wavelength. That simplicity makes the visual-to-musical route easy to inspect even though real color perception is more complex.

From color wavelength to an audible musical pitch

After estimating the color's wavelength, the calculator applies the standard wave relationship between wavelength and frequency. Light travels at approximately 299,792,458 meters per second in a vacuum, so a shorter wavelength has a higher frequency than a longer wavelength. Visible-light frequencies are enormously above hearing range, however. The calculator therefore halves the value until it falls between 20 Hz and 20,000 Hz, a common working range for human hearing.

f = c λ·109

In this formula, λ is the wavelength value in nanometers, so multiplying it by 10−9 converts it to meters before division. The repeated halving is octave folding: every division by two lowers a frequency by exactly one octave while retaining its pitch-class relationship. Once the value is audible, the calculator finds the nearest equal-tempered note using A4 = 440 Hz as its reference.

n = round ( 12 · log2 ( f440 ) + 69 )

These folded color frequencies generally occupy a high musical register. The point is not that a monitor literally emits an audible note, but that the same frequency relationship can be rescaled by octaves into a musical range people can recognize and compare.

Tracing the color-to-note calculation

The color-to-sound result can be followed step by step rather than treated as a mystery label. The selected RGB swatch determines hue; hue determines the page's wavelength estimate; wavelength determines the light frequency; octave folding produces an audible frequency; and equal-tempered rounding supplies the note name. If a note is unexpected, check the hue and wavelength first, especially for desaturated or neutral swatches whose visual appearance may not suggest a strong position on the hue wheel.

The wavelength estimate has a direct, linear relationship with hue in this implementation, while the final audible frequency is shaped by octave folding. That means the displayed audible value does not have to rise smoothly across every possible hue: when a raw light frequency crosses an octave-folding boundary, the folded value returns to a lower point in the audible range. The wavelength and frequency cards make those stages visible for each selected color.

Worked example: pure red’s color-to-note translation

Suppose you leave the default swatch at pure red, #FF0000. The hue for that color is 0 degrees. Plugging 0 into the wavelength formula gives 750 nm. Converting 750 nm to light frequency produces an enormous number, then octave folding brings it down into the audible band at roughly 11,633.8 Hz. The note-matching step identifies the closest equal-tempered note as F#9. That is why the calculator's default color-to-sound example sits high and bright rather than in a low bass register.

Now move the swatch toward green or blue and observe the chain. As hue increases, the estimated wavelength becomes shorter, and the raw light frequency becomes higher. The octave-folded frequency can change noticeably, although it can return to a lower audible value when another octave division becomes necessary. The note label may shift dramatically or remain the same for nearby colors because the label is rounded to the nearest semitone.

A useful way to read a color-to-sound result is to treat wavelength as the optical description, hertz as the bridge between physics and hearing, and the note name as the musical summary. For composition or audiovisual design, the hertz value is the most precise target. For a classroom demonstration or quick explanation, the note label is often the clearest shorthand.

Color family Approximate hue Estimated wavelength trend What to expect musically
Red Longest visible wavelengths, near 750 nm High folded pitch, often a sharp upper-register note
Green 120° Middle of the visible range, around the low 600s nm A different folded pitch class from pure red
Blue 240° Shorter wavelengths, roughly around 500 nm A different octave-folded value that may round to another note
Violet 300°+ Near the short-wavelength end, about 440 nm and below High-register outputs within this model’s audible folding range

How to read the color-to-sound result panel

The color-to-sound result area separates the stages of the conversion. The hex line confirms the exact selected swatch. The wavelength line shows its position in this page's visible-spectrum approximation. The note line pairs the nearest note name with the audible frequency that produced it. When comparing colors, inspect the frequency as well as the note: different frequencies can share a note name after rounding to the nearest semitone.

Use the summary sentence for quick sharing and the individual cards for closer inspection. If a result seems surprising, check broad color-to-wavelength relationships rather than expecting a literal sound measurement. Redder hues should map to longer wavelengths than bluer hues in this model, and shorter wavelengths should produce higher raw light frequencies. The folded audio number remains in the audible range because the script divides or multiplies by two until it is there.

Color-to-sound assumptions, limits, and edge cases

The central assumption in this color-to-sound calculator is that a display color can stand in for one approximate wavelength. Physically, that is usually not the case. A monitor creates most colors by mixing red, green, and blue emitters, and many visible colors do not correspond to a single monochromatic wavelength. The calculator consequently uses a creative hue-based approximation, not a literal spectral measurement. It is suited to exploration, teaching, and art prompts rather than laboratory optics.

It also matters what this color-to-note model ignores. Saturation and lightness do not enter the wavelength formula directly, even though people perceive both strongly. A pale pastel blue and a highly saturated blue can therefore receive similar outputs when their hues are similar. Neutral grays are a special case because their hue is undefined and the implementation assigns them 0 degrees, placing them at the red side of the scale. A mapping intended to react to brightness or saturation would require a different model.

  • Units: wavelength is shown in nanometers and audible pitch is shown in hertz.
  • Model scope: the conversion is an artistic approximation for screen colors, not a spectrometer substitute.
  • Rounding: note names are rounded to the nearest equal-tempered pitch, so tiny frequency differences may not change the label.
  • Edge handling: grayscale inputs have no hue and are treated as 0 degrees in the present code path.

Those limits define the kind of color-to-sound question the page answers well. It is useful for creating a repeatable visual-to-musical mapping, comparing swatches consistently, developing educational examples, and generating audiovisual prompts. It is not a tool for diagnosing a real synesthetic experience or measuring the spectrum of a light source.

Who uses color-to-sound synesthesia mappings?

Artists can use this color-to-sound calculator to assign notes to palettes. Teachers can use it to illustrate that both color and pitch involve waves, even though they occupy vastly different frequency ranges. Curious readers can use it to make frequency feel less abstract. Whatever the purpose, the mapping works best when treated as a disciplined creative system: its rules are explicit, its assumptions are visible, and its outputs can be compared across many swatches.

Choose any screen color. The calculator reads the swatch's hue, estimates a visible wavelength, folds the corresponding light frequency into the audible range, and names the closest equal-tempered note.

Selected swatch

Estimated wavelength

750 nm

Nearest note

F#9 (11634 Hz)

Sample starting swatch: #FF0000 maps to approximately 750 nm, 11633.8 Hz, and the note F#9. Choose a different color and press translate to update the summary.

Optional color-to-sound mini-game: Spectrum Lock

This arcade-style color-to-sound bonus game uses the same mapping as the calculator. A moving scan beam sweeps across a visible spectrum bar. Click, tap, or press the space bar when the beam crosses the glowing target band for the current color. Accurate locks build streaks, misses cost time, and later phases add decoy bands and faster sweeps. It offers a quick way to see how hue changes wavelength and the mapped note.

Score0
Time75.0s
Streak0
ProgressPhase 1
Best score0
TargetReady to play

Spectrum Lock

Click or tap when the scan beam crosses the glowing target band. Space bar works too. Hits build streaks, misses cost 1.5 seconds, and every 25 seconds the prism speeds up.

Short takeaway: red sits on the long-wavelength side of the bar, violet sits on the short-wavelength side, and the calculator converts that wavelength to a huge light frequency before folding it down by octaves into hearing range.

Embed this calculator

Copy and paste the HTML below to add the Color-to-Sound Synesthesia Calculator | Hue, Wavelength & Note to your website.