ColorKit
Open color

Hex Color Clock

This hex color clock turns the time into a color. It reads the clock on your device and shows the current time as a hex color code, so 11:24:30 becomes #112430. The background updates every second, sliding into a new shade with each tick.

Example hex color clock values showing how the time maps to a hex color
How the time maps to a hex color code

How the hex color clock works

A hex color code has six digits: two for red, two for green, and two for blue. The clock maps the time straight onto those pairs. The hour sets the red value, the minute sets the green, and the second sets the blue, which gives you #HHMMSS. At 09:41:18 the screen shows #094118, a deep forest green. A second later it becomes #094119. Because the time never stops, neither does the color.

Why the hex color clock stays dark

You will never catch a bright red, a clean white, or a sunny yellow on the hex color clock, and there is a tidy reason for it. A clock only counts up to 23:59:59, which keeps every value far below the channel maximum of 255. The red digits never pass 23 (a value of 35), and the green and blue digits stop at 59 (a value of 89). So the brightest the clock ever gets is #235959, a muted teal that lasts for one second just before midnight. Then it resets to pure black, #000000, at 00:00:00 and starts the climb again.

How to use the color clock

Tap or click the hex code to copy the current color. The rest of the controls sit along the bottom of the clock:

  • Time shows the current time in 12 hour format under the hex code. The page remembers your choice for next time.
  • Open color takes you to the full ColorKit page for the color on screen, where you can read its name and see related shades.
  • Full screen fills the whole display with the clock. The controls fade out after a few seconds, and moving the mouse or tapping the screen brings them back.

On a keyboard, press F to go full screen and C to copy the color. In browsers that support it, the screen stays awake while the clock is full screen, so it works as a calm ambient clock on a spare monitor or a TV. Spot a shade you like? Copy it and build a palette around it.