Skip to content

Color Palette

The NanoVNA-H allows customization of trace colors and UI elements. This helps distinguish traces, improve visibility, or match personal preferences.

The NanoVNA-H uses a palette of up to 32 colors stored in configuration. Each color is defined in 24-bit RGB format (0xRRGGBB).

Terminal window
color

This displays all palette colors with their index and RGB values:

0: 0x000000
1: 0xFFFFFF
2: 0xFFFF00
3: 0x00FFFF
4: 0x00FF00
...
Terminal window
color {index} {rgb24}

Parameters:

  • index: Palette position (0-31)
  • rgb24: Color in hex RGB format (0xRRGGBB or decimal)

Examples:

Terminal window
color 2 0xFF8800 # Set color 2 to orange
color 3 0x00FF00 # Set color 3 to green
color 4 16711680 # Set color 4 to red (decimal)

Standard color assignments:

IndexDefaultPurpose
0Black (0x000000)Background
1White (0xFFFFFF)Grid lines, text
2Yellow (0xFFFF00)Trace 0
3Cyan (0x00FFFF)Trace 1
4Green (0x00FF00)Trace 2
5Magenta (0xFF00FF)Trace 3
6Blue (0x0000FF)Reference trace
7Red (0xFF0000)Markers
8-15VariousUI elements
16-31VariousAdditional UI

Color changes are temporary until saved:

Terminal window
saveconfig

Without saving, colors reset to defaults on power cycle.

For better visibility outdoors:

Terminal window
color 2 0xFF0000 # Trace 0: Bright red
color 3 0x0000FF # Trace 1: Bright blue
color 4 0xFFFF00 # Trace 2: Yellow
color 5 0x00FF00 # Trace 3: Green
saveconfig

For indoor use or screenshots:

Terminal window
color 2 0xCCCC00 # Trace 0: Muted yellow
color 3 0x00CCCC # Trace 1: Muted cyan
color 4 0x00CC00 # Trace 2: Muted green
color 5 0xCC00CC # Trace 3: Muted magenta
saveconfig

Keep background black, use bright traces:

Terminal window
color 0 0x000000 # Background: black
color 1 0x808080 # Grid: gray
color 2 0xFFFF00 # Trace 0: yellow
saveconfig

Common colors in hex:

ColorRGB Hex
Black0x000000
White0xFFFFFF
Red0xFF0000
Green0x00FF00
Blue0x0000FF
Yellow0xFFFF00
Cyan0x00FFFF
Magenta0xFF00FF
Orange0xFF8000
Purple0x8000FF
Gray0x808080

To restore default colors:

Terminal window
clearconfig

Alternatively, manually set each color back to its default value.

Set colors at startup via config.ini:

# Custom color scheme
color 2 0xFF8800
color 3 0x0088FF
color 4 0x88FF00
color 5 0xFF0088
  • Verify the index is within valid range (0-31)
  • Check hex format (0x prefix or correct decimal)
  • Ensure command executed without errors
  • Run saveconfig after color changes
  • Verify configuration save completed
  • Display uses 16-bit color; some shades may shift
  • Very dark colors may appear as black
  • Try adjusting RGB values slightly
Terminal window
# View all colors
color
# Set a color (hex format)
color 2 0xFF8800
# Set a color (decimal format)
color 2 16744448
# Save colors
saveconfig