Function Colors

Export

Code

/* Function Colors — colorset.net */
:root {
  --color-1: #FF9500;
  --color-2: #FFCC02;
  --color-3: #34D399;
  --color-4: #60A5FA;
  --color-5: #A78BFA;

  --color-bg: #FCF7E8;
  --color-surface: #F2EDDF;
  --color-border: #DBD5C3;
  --color-text: #52457C;
  --color-muted: #6C6781;
  --color-primary: #AE6400;
  --color-on-primary: #FFFFFF;
  --color-accent: #3176C7;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #100C1D;
    --color-surface: #1A1628;
    --color-border: #2F2A40;
    --color-text: #DFD2AE;
    --color-muted: #8A8166;
    --color-primary: #FF9500;
    --color-on-primary: #100C1D;
    --color-accent: #60A5FA;
    --color-on-accent: #100C1D;
  }
}

Color values

ColorHEXRGBHSLOKLCH
1
2
3
4
5

Roles & contrast

Original colors are kept; roles are adjusted only when needed for contrast.

RoleLight modeDark mode
Backgroundadjusted for contrast · from #FFCC02adjusted for contrast · from #A78BFA
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #A78BFAadjusted for contrast · from #FFCC02
Muted textderivedderived
Primaryadjusted for contrast · from #FF9500from palette · color 1
On primaryderivedderived
Accentadjusted for contrast · from #60A5FAfrom palette · color 4
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background7.84:1AAA pass 4.5:1
Text on surface7.18:1AAA pass 4.5:1
Muted text on background5.03:1AA pass 4.5:1
Label on primary4.54:1AA pass 4.5:1
Label on accent4.62:1AA pass 4.5:1
Primary on background4.24:1AA Large pass 3:1
Accent on background4.31:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background12.79:1AAA pass 4.5:1
Text on surface11.74:1AAA pass 4.5:1
Muted text on background4.95:1AA pass 4.5:1
Label on primary8.74:1AAA pass 4.5:1
Label on accent7.56:1AAA pass 4.5:1
Primary on background8.74:1AAA pass 3:1
Accent on background7.56:1AAA pass 3:1

Every color on every color

Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.

Every color on every color
Background / Text#FF9500 (Text 1)#FFCC02 (Text 2)#34D399 (Text 3)#60A5FA (Text 4)#A78BFA (Text 5)
#FF9500Same color1.45—1.14—1.16—1.24—
#FFCC021.45—Same color1.27—1.68—1.80—
#34D3991.14—1.27—Same color1.32—1.42—
#60A5FA1.16—1.68—1.32—Same color1.07—
#A78BFA1.24—1.80—1.42—1.07—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#FF9500#FFCC02#34D399#60A5FA#A78BFA

Variations

About Function Colors

No single hue dominates Function Colors: yellow carries about 21% of the color weight, shared with orange and purple, and light orange #FF9500 sits in the middle of the range. A 168° hue spread puts light orange against blue #60A5FA, close to a complementary contrast. All five colors stay in a narrow light band (71% to 87% lightness, #A78BFA to #FFCC02), so text and background roles are adjusted for contrast. Saturation is high (mean OKLCH chroma 0.162, peaking at 0.177 in #FFCC02); the colors feel saturated and energetic. Text contrast reaches 7.8:1 in light mode and 12.8:1 in dark mode, with #AE6400 as primary and #3176C7 as accent. With #FF9500 leading, good fits include marketing pages, data visualization and brand systems with many sub-brands.

Function Colors color palette: #FF9500, #FFCC02, #34D399, #60A5FA, #A78BFA
Share image for Function Colors

Gradients in similar colors