Colors

Calcapp provides powerful color capabilities through the COLOR function and supports multiple color formats. This page explains how to use colors in your apps. For additional color functions, see our complete list of color functions.

Color formats overview

Calcapp recognizes the same color formats in both the color picker’s name field and the COLOR function. Whether you type “yellow” in the color picker or use COLOR("yellow")COLOR("yellow") or Color.YellowColor,Yellow in a formula, you’ll get the same result.

Alpha values and transparency

Some color formats support alpha values, which control transparency. Alpha values range from 0 to 1, where:

Alpha values work particularly well for text colors. For example, Calcapp’s default black text uses an alpha value of 0.87, allowing the background color to show through slightly.

Supported color formats

Named colors

A comprehensive set of standard web colors. Reference them directly by name or use the syntax Color.Color, followed by the color name, like Color.AliceBlueColor,AliceBlue.

Material Design colors

Google’s Material Design palette provides colors designed to work harmoniously together. Use the same syntax as named colors, such as Color.LightBlue300Color,LightBlue300.

Hex notation

The standard web format using a hash symbol followed by hexadecimal values. Colors use the RGB color model with values from 0-255 for each component:

All hex colors are fully opaque.

Color models

Calcapp supports several color models:

For HSL and HSB models:

Examples

Here are examples of valid color format strings:

Named colors:

Material Design colors:

Hex notation:

Color models:

Named colors

Calcapp supports all standard web colors based on the CSS Color 4 specification:

AliceBlue
AntiqueWhite
Aqua
Aquamarine
Azure
Beige
Bisque
Black
BlanchedAlmond
Blue
BlueViolet
Brown
Burlywood
BurntSienna
CadetBlue
Chartreuse
Chocolate
Coral
CornflowerBlue
Cornsilk
Crimson
Cyan
DarkBlue
DarkCyan
DarkGoldenrod
DarkGray
DarkGreen
DarkGrey
DarkKhaki
DarkMagenta
DarkOliveGreen
DarkOrange
DarkOrchid
DarkRed
DarkSalmon
DarkSeaGreen
DarkSlateBlue
DarkSlateGray
DarkSlateGrey
DarkTurquoise
DarkViolet
DeepPink
DeepSkyBlue
DimGray
DimGrey
DodgerBlue
Firebrick
FloralWhite
ForestGreen
Fuchsia
Gainsboro
GhostWhite
Gold
Goldenrod
Gray
Green
GreenYellow
Grey
Honeydew
HotPink
IndianRed
Indigo
Ivory
Khaki
Lavender
LavenderBlush
LawnGreen
LemonChiffon
LightBlue
LightCoral
LightCyan
LightGoldenrodYellow
LightGray
LightGreen
LightGrey
LightPink
LightSalmon
LightSeaGreen
LightSkyBlue
LightSlateGray
LightSlateGrey
LightSteelBlue
LightYellow
Lime
LimeGreen
Linen
Magenta
Maroon
MediumAquamarine
MediumBlue
MediumOrchid
MediumPurple
MediumSeaGreen
MediumSlateBlue
MediumSpringGreen
MediumTurquoise
MediumVioletRed
MidnightBlue
MintCream
MistyRose
Moccasin
NavajoWhite
Navy
OldLace
Olive
OliveDrab
Orange
OrangeRed
Orchid
PaleGoldenrod
PaleGreen
PaleTurquoise
PaleVioletRed
PapayaWhip
PeachPuff
Peru
Pink
Plum
PowderBlue
Purple
RebeccaPurple
Red
RosyBrown
RoyalBlue
SaddleBrown
Salmon
SandyBrown
SeaGreen
Seashell
Sienna
Silver
SkyBlue
SlateBlue
SlateGray
SlateGrey
Snow
SpringGreen
SteelBlue
Tan
Teal
Thistle
Tomato
Turquoise
Violet
Wheat
White
WhiteSmoke
Yellow
YellowGreen

Material Design colors

The Material Design color palette provides carefully curated colors that work harmoniously together. This palette appears in the color picker’s palette view and works well across all platforms—Android, iPhone, iPad and desktop.

How Material Design colors work

The palette organizes colors into named swatches (Red, Deep Purple, Indigo, Teal, etc.). Each swatch contains:

Standard colors with numeric names:

Accent colors for highlights and smaller elements:

Usage

Specify Material Design colors by combining the swatch name with the numeric level: Red 500, Deep Purple 50, Cyan A100.

Red

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Pink

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Purple

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Deep Purple

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Indigo

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Blue

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Light Blue

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Cyan

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Teal

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Green

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Light Green

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Lime

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Yellow

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Amber

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Orange

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Deep Orange

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Brown

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Grey

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Blue Grey

50
100
200
300
400
500
600
700
800
900
A100
A200
A400
A700

Advanced: How Calcapp represents colors

This section covers technical details that most users don’t need to know.

Internally, Calcapp stores colors as 32-bit numbers using the ARGB color model. Colors are distinct from regular numbers, so you need conversion functions:

Bit structure

The 32 bits break down as follows (from most to least significant):

Example

Pure red has the value 0xFFFF0000 (base 16) or 4294901760 (base 10). These formulas are equivalent:

COLOR("#ff0000")COLOR("#ff0000")
TOCOLOR(HEX2DEC("ffff0000"))TOCOLOR(HEX2DEC("ffff0000"))