Generated palette
Khaki Palette
Khaki Palette: #F0E68C, #8E98F0, #F0B58E, #C9F08E. Check roles, contrast and CSS variables; open source-color links and JSON.
Khaki Palette assigns primary #F0E68C, secondary #8E98F0, surface #F0B58E, background #C9F08E, accent #000000. The set spans Yellow, Blue, Orange, and Green families with warm, cool, and neutral temperatures. Luminance runs from #000000 at 0 to #F0E68C at 0.7701; black gives higher contrast on 4 of 5 values.
Palette Color Roles
Khaki Palette maps 5 colors to practical UI roles for interfaces, brand systems, and CSS tokens.
#F0E68CKhaki#8E98F0#8E98F0#F0B58E#F0B58E#C9F08E#C9F08E#000000BlackCSS Variables
--palette-khaki-primary: #F0E68C; --palette-khaki-secondary: #8E98F0; --palette-khaki-surface: #F0B58E; --palette-khaki-background: #C9F08E; --palette-khaki-accent: #000000;
Accessibility Snapshot
Compare all 5 Khaki Palette values against black and white text, with the stronger standard foreground identified for each role.
UI Components Preview
Preview how the Khaki Palette roles behave together across common interface components before copying the CSS variables.
Machine-readable data
Machine-Readable Khaki Palette Data (JSON)
Structured palette data for Khaki 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": "#F0E68C",
"name": "Khaki"
},
{
"role": "secondary",
"hex": "#8E98F0",
"name": "#8E98F0"
},
{
"role": "surface",
"hex": "#F0B58E",
"name": "#F0B58E"
},
{
"role": "background",
"hex": "#C9F08E",
"name": "#C9F08E"
},
{
"role": "accent",
"hex": "#000000",
"name": "Black"
}
]Accessibility
[
{
"role": "primary",
"hex": "#F0E68C",
"name": "Khaki",
"blackContrast": 16.4,
"whiteContrast": 1.28,
"bestTextColor": "#000000",
"aaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
],
"aaaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
{
"role": "secondary",
"hex": "#8E98F0",
"name": "#8E98F0",
"blackContrast": 7.9,
"whiteContrast": 2.66,
"bestTextColor": "#000000",
"aaTextOptions": [
"#000000",
"#1A1A1A"
],
"aaaTextOptions": [
"#000000"
]
},
{
"role": "surface",
"hex": "#F0B58E",
"name": "#F0B58E",
"blackContrast": 11.71,
"whiteContrast": 1.79,
"bestTextColor": "#000000",
"aaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
],
"aaaTextOptions": [
"#000000",
"#1A1A1A"
]
},
{
"role": "background",
"hex": "#C9F08E",
"name": "#C9F08E",
"blackContrast": 16.34,
"whiteContrast": 1.29,
"bestTextColor": "#000000",
"aaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
],
"aaaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
{
"role": "accent",
"hex": "#000000",
"name": "Black",
"blackContrast": 1,
"whiteContrast": 21,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
}
]Semantic groups
[
"khaki palette",
"generated palette",
"yellow palette",
"blue palette",
"orange palette",
"green palette",
"gray palette",
"pastel palette",
"dark palette",
"neutral palette",
"warm palette",
"cool palette"
]Use cases
[
"design system tokens",
"CSS variables",
"palette reference",
"AI color ingestion",
"soft backgrounds",
"wellness and botanical palettes",
"calm digital interfaces"
]CSS variables
"--palette-khaki-primary: #F0E68C;\n--palette-khaki-secondary: #8E98F0;\n--palette-khaki-surface: #F0B58E;\n--palette-khaki-background: #C9F08E;\n--palette-khaki-accent: #000000;"Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "khaki",
"name": "Khaki Palette",
"type": "generated",
"sourceColor": "khaki",
"description": "Generated palette built from Khaki, its harmonies, a high-contrast pairing, and a light variant.",
"narrative": "Khaki Palette combines primary #F0E68C, secondary #8E98F0, surface #F0B58E, background #C9F08E, accent #000000. According to Colors Encyclopedia, the palette works as a yellow palette, blue palette, orange 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": [
"khaki palette",
"generated palette",
"yellow palette",
"blue palette",
"orange palette",
"green palette",
"gray palette",
"pastel palette",
"dark palette",
"neutral palette",
"warm palette",
"cool palette"
],
"useCases": [
"design system tokens",
"CSS variables",
"palette reference",
"AI color ingestion",
"soft backgrounds",
"wellness and botanical palettes",
"calm digital interfaces"
],
"colors": [
{
"role": "primary",
"hex": "#F0E68C",
"slug": "khaki",
"name": "Khaki",
"rgb": [
240,
230,
140
],
"hsl": [
54,
77,
75
],
"cmyk": [
0,
4,
42,
6
],
"family": "yellow",
"temperature": "warm",
"tone": [
"pastel"
],
"luminance": 0.7701,
"contrast": {
"black": 16.4,
"white": 1.28
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"url": "https://www.colorsencyclopedia.com/colors/khaki/"
},
{
"role": "secondary",
"hex": "#8E98F0",
"slug": null,
"name": "#8E98F0",
"rgb": [
142,
152,
240
],
"hsl": [
234,
77,
75
],
"cmyk": [
41,
37,
0,
6
],
"family": "blue",
"temperature": "cool",
"tone": [
"pastel"
],
"luminance": 0.345,
"contrast": {
"black": 7.9,
"white": 2.66
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A"
],
"AAA": [
"#000000"
]
},
"url": null
},
{
"role": "surface",
"hex": "#F0B58E",
"slug": null,
"name": "#F0B58E",
"rgb": [
240,
181,
142
],
"hsl": [
24,
77,
75
],
"cmyk": [
0,
25,
41,
6
],
"family": "orange",
"temperature": "warm",
"tone": [
"pastel"
],
"luminance": 0.5353,
"contrast": {
"black": 11.71,
"white": 1.79
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A"
]
},
"url": null
},
{
"role": "background",
"hex": "#C9F08E",
"slug": null,
"name": "#C9F08E",
"rgb": [
201,
240,
142
],
"hsl": [
84,
77,
75
],
"cmyk": [
16,
0,
41,
6
],
"family": "green",
"temperature": "cool",
"tone": [
"pastel"
],
"luminance": 0.7669,
"contrast": {
"black": 16.34,
"white": 1.29
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"url": null
},
{
"role": "accent",
"hex": "#000000",
"slug": "black",
"name": "Black",
"rgb": [
0,
0,
0
],
"hsl": [
0,
0,
0
],
"cmyk": [
0,
0,
0,
100
],
"family": "gray",
"temperature": "neutral",
"tone": [
"dark",
"neutral"
],
"luminance": 0,
"contrast": {
"black": 1,
"white": 21
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"url": "https://www.colorsencyclopedia.com/colors/black/"
}
],
"roles": [
{
"role": "primary",
"hex": "#F0E68C",
"name": "Khaki"
},
{
"role": "secondary",
"hex": "#8E98F0",
"name": "#8E98F0"
},
{
"role": "surface",
"hex": "#F0B58E",
"name": "#F0B58E"
},
{
"role": "background",
"hex": "#C9F08E",
"name": "#C9F08E"
},
{
"role": "accent",
"hex": "#000000",
"name": "Black"
}
],
"accessibility": [
{
"role": "primary",
"hex": "#F0E68C",
"name": "Khaki",
"blackContrast": 16.4,
"whiteContrast": 1.28,
"bestTextColor": "#000000",
"aaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
],
"aaaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
{
"role": "secondary",
"hex": "#8E98F0",
"name": "#8E98F0",
"blackContrast": 7.9,
"whiteContrast": 2.66,
"bestTextColor": "#000000",
"aaTextOptions": [
"#000000",
"#1A1A1A"
],
"aaaTextOptions": [
"#000000"
]
},
{
"role": "surface",
"hex": "#F0B58E",
"name": "#F0B58E",
"blackContrast": 11.71,
"whiteContrast": 1.79,
"bestTextColor": "#000000",
"aaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
],
"aaaTextOptions": [
"#000000",
"#1A1A1A"
]
},
{
"role": "background",
"hex": "#C9F08E",
"name": "#C9F08E",
"blackContrast": 16.34,
"whiteContrast": 1.29,
"bestTextColor": "#000000",
"aaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
],
"aaaTextOptions": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
{
"role": "accent",
"hex": "#000000",
"name": "Black",
"blackContrast": 1,
"whiteContrast": 21,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
}
],
"cssVariables": "--palette-khaki-primary: #F0E68C;\n--palette-khaki-secondary: #8E98F0;\n--palette-khaki-surface: #F0B58E;\n--palette-khaki-background: #C9F08E;\n--palette-khaki-accent: #000000;",
"relatedEndpoints": [
"https://www.colorsencyclopedia.com/api/palettes/khaki.json",
"https://www.colorsencyclopedia.com/api/palettes.json",
"https://www.colorsencyclopedia.com/api/colors/khaki.json"
],
"url": "https://www.colorsencyclopedia.com/palettes/khaki/",
"apiUrl": "https://www.colorsencyclopedia.com/api/palettes/khaki.json"
}