Generated palette
Spruce Palette
Spruce Palette: #2E4F4F, #502F2F, #2F5040, #2F4050. Check roles, contrast and CSS variables; open source-color links and JSON.
Spruce Palette assigns primary #2E4F4F, secondary #502F2F, surface #2F5040, background #2F4050, accent #FFFFFF. The set spans Cyan, Red, Green, and Blue families with cool, warm, and neutral temperatures. Luminance runs from #502F2F at 0.0394 to #FFFFFF at 1; black gives higher contrast on 1 of 5 values.
Palette Color Roles
Spruce Palette maps 5 colors to practical UI roles for interfaces, brand systems, and CSS tokens.
#2E4F4FSpruce#502F2F#502F2F#2F5040#2F5040#2F4050#2F4050#FFFFFFWhiteCSS Variables
--palette-spruce-primary: #2E4F4F; --palette-spruce-secondary: #502F2F; --palette-spruce-surface: #2F5040; --palette-spruce-background: #2F4050; --palette-spruce-accent: #FFFFFF;
Accessibility Snapshot
Compare all 5 Spruce Palette values against black and white text, with the stronger standard foreground identified for each role.
UI Components Preview
Preview how the Spruce Palette roles behave together across common interface components before copying the CSS variables.
Machine-readable data
Machine-Readable Spruce Palette Data (JSON)
Structured palette data for Spruce Palette, including color roles, accessibility, semantic groups, use cases, CSS variables, and API links.
colorsPalette colors with roles and color systemsrolesPrimary, secondary, surface, background, and accent mappingaccessibilityContrast and WCAG text options by palette colorsemanticGroupsAI-readable palette labelsuseCasesDesign and implementation contextscssVariablesCopy-ready CSS custom propertiesStructured sections
Roles
[
{
"role": "primary",
"hex": "#2E4F4F",
"name": "Spruce"
},
{
"role": "secondary",
"hex": "#502F2F",
"name": "#502F2F"
},
{
"role": "surface",
"hex": "#2F5040",
"name": "#2F5040"
},
{
"role": "background",
"hex": "#2F4050",
"name": "#2F4050"
},
{
"role": "accent",
"hex": "#FFFFFF",
"name": "White"
}
]Accessibility
[
{
"role": "primary",
"hex": "#2E4F4F",
"name": "Spruce",
"blackContrast": 2.35,
"whiteContrast": 8.94,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "secondary",
"hex": "#502F2F",
"name": "#502F2F",
"blackContrast": 1.79,
"whiteContrast": 11.74,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "surface",
"hex": "#2F5040",
"name": "#2F5040",
"blackContrast": 2.34,
"whiteContrast": 8.97,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "background",
"hex": "#2F4050",
"name": "#2F4050",
"blackContrast": 1.97,
"whiteContrast": 10.66,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "accent",
"hex": "#FFFFFF",
"name": "White",
"blackContrast": 21,
"whiteContrast": 1,
"bestTextColor": "#000000",
"aaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
],
"aaaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
]
}
]Semantic groups
[
"spruce palette",
"generated palette",
"cyan palette",
"red palette",
"green palette",
"blue palette",
"gray palette",
"muted palette",
"earth tone palette",
"light palette",
"neutral palette",
"cool palette",
"warm palette"
]Use cases
[
"design system tokens",
"CSS variables",
"palette reference",
"AI color ingestion",
"quiet UI themes",
"natural branding",
"wellness and botanical palettes"
]CSS variables
"--palette-spruce-primary: #2E4F4F;\n--palette-spruce-secondary: #502F2F;\n--palette-spruce-surface: #2F5040;\n--palette-spruce-background: #2F4050;\n--palette-spruce-accent: #FFFFFF;"Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "spruce",
"name": "Spruce Palette",
"type": "generated",
"sourceColor": "spruce",
"description": "Generated palette built from Spruce, its harmonies, a high-contrast pairing, and a light variant.",
"narrative": "Spruce Palette combines primary #2E4F4F, secondary #502F2F, surface #2F5040, background #2F4050, accent #FFFFFF. According to Colors Encyclopedia, the palette works as a cyan palette, red palette, green palette system for design system tokens, CSS variables, palette reference, and AI color ingestion, with each color mapped to roles, contrast data, CSS tokens, and machine-readable JSON.",
"semanticGroups": [
"spruce palette",
"generated palette",
"cyan palette",
"red palette",
"green palette",
"blue palette",
"gray palette",
"muted palette",
"earth tone palette",
"light palette",
"neutral palette",
"cool palette",
"warm palette"
],
"useCases": [
"design system tokens",
"CSS variables",
"palette reference",
"AI color ingestion",
"quiet UI themes",
"natural branding",
"wellness and botanical palettes"
],
"colors": [
{
"role": "primary",
"hex": "#2E4F4F",
"slug": "spruce",
"name": "Spruce",
"rgb": [
46,
79,
79
],
"hsl": [
180,
26,
25
],
"cmyk": [
42,
0,
0,
69
],
"family": "cyan",
"temperature": "cool",
"tone": [
"muted"
],
"luminance": 0.0674,
"contrast": {
"black": 2.35,
"white": 8.94
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"url": "https://www.colorsencyclopedia.com/colors/spruce/"
},
{
"role": "secondary",
"hex": "#502F2F",
"slug": null,
"name": "#502F2F",
"rgb": [
80,
47,
47
],
"hsl": [
0,
26,
25
],
"cmyk": [
0,
41,
41,
69
],
"family": "red",
"temperature": "warm",
"tone": [
"muted"
],
"luminance": 0.0394,
"contrast": {
"black": 1.79,
"white": 11.74
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"url": null
},
{
"role": "surface",
"hex": "#2F5040",
"slug": null,
"name": "#2F5040",
"rgb": [
47,
80,
64
],
"hsl": [
151,
26,
25
],
"cmyk": [
41,
0,
20,
69
],
"family": "green",
"temperature": "cool",
"tone": [
"muted",
"earth-tone"
],
"luminance": 0.0671,
"contrast": {
"black": 2.34,
"white": 8.97
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"url": null
},
{
"role": "background",
"hex": "#2F4050",
"slug": null,
"name": "#2F4050",
"rgb": [
47,
64,
80
],
"hsl": [
209,
26,
25
],
"cmyk": [
41,
20,
0,
69
],
"family": "blue",
"temperature": "cool",
"tone": [
"muted"
],
"luminance": 0.0485,
"contrast": {
"black": 1.97,
"white": 10.66
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"url": null
},
{
"role": "accent",
"hex": "#FFFFFF",
"slug": "white",
"name": "White",
"rgb": [
255,
255,
255
],
"hsl": [
0,
0,
100
],
"cmyk": [
0,
0,
0,
0
],
"family": "gray",
"temperature": "neutral",
"tone": [
"light",
"neutral"
],
"luminance": 1,
"contrast": {
"black": 21,
"white": 1
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"url": "https://www.colorsencyclopedia.com/colors/white/"
}
],
"roles": [
{
"role": "primary",
"hex": "#2E4F4F",
"name": "Spruce"
},
{
"role": "secondary",
"hex": "#502F2F",
"name": "#502F2F"
},
{
"role": "surface",
"hex": "#2F5040",
"name": "#2F5040"
},
{
"role": "background",
"hex": "#2F4050",
"name": "#2F4050"
},
{
"role": "accent",
"hex": "#FFFFFF",
"name": "White"
}
],
"accessibility": [
{
"role": "primary",
"hex": "#2E4F4F",
"name": "Spruce",
"blackContrast": 2.35,
"whiteContrast": 8.94,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "secondary",
"hex": "#502F2F",
"name": "#502F2F",
"blackContrast": 1.79,
"whiteContrast": 11.74,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "surface",
"hex": "#2F5040",
"name": "#2F5040",
"blackContrast": 2.34,
"whiteContrast": 8.97,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "background",
"hex": "#2F4050",
"name": "#2F4050",
"blackContrast": 1.97,
"whiteContrast": 10.66,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "accent",
"hex": "#FFFFFF",
"name": "White",
"blackContrast": 21,
"whiteContrast": 1,
"bestTextColor": "#000000",
"aaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
],
"aaaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
]
}
],
"cssVariables": "--palette-spruce-primary: #2E4F4F;\n--palette-spruce-secondary: #502F2F;\n--palette-spruce-surface: #2F5040;\n--palette-spruce-background: #2F4050;\n--palette-spruce-accent: #FFFFFF;",
"relatedEndpoints": [
"https://www.colorsencyclopedia.com/api/palettes/spruce.json",
"https://www.colorsencyclopedia.com/api/palettes.json",
"https://www.colorsencyclopedia.com/api/colors/spruce.json"
],
"url": "https://www.colorsencyclopedia.com/palettes/spruce/",
"apiUrl": "https://www.colorsencyclopedia.com/api/palettes/spruce.json"
}