Generated palette
Onyx Palette
Onyx Palette: #353839, #3A3736, #363A39, #36373A. Check roles, contrast and CSS variables; open source-color links and JSON.
Onyx Palette assigns primary #353839, secondary #3A3736, surface #363A39, background #36373A, accent #FFFFFF. The set spans Gray families with neutral temperature. Luminance runs from #36373A at 0.0382 to #FFFFFF at 1; black gives higher contrast on 1 of 5 values.
Palette Color Roles
Onyx Palette maps 5 colors to practical UI roles for interfaces, brand systems, and CSS tokens.
#353839Onyx#3A3736#3A3736#363A39#363A39#36373A#36373A#FFFFFFWhiteCSS Variables
--palette-onyx-primary: #353839; --palette-onyx-secondary: #3A3736; --palette-onyx-surface: #363A39; --palette-onyx-background: #36373A; --palette-onyx-accent: #FFFFFF;
Accessibility Snapshot
Compare all 5 Onyx Palette values against black and white text, with the stronger standard foreground identified for each role.
UI Components Preview
Preview how the Onyx Palette roles behave together across common interface components before copying the CSS variables.
Machine-readable data
Machine-Readable Onyx Palette Data (JSON)
Structured palette data for Onyx 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": "#353839",
"name": "Onyx"
},
{
"role": "secondary",
"hex": "#3A3736",
"name": "#3A3736"
},
{
"role": "surface",
"hex": "#363A39",
"name": "#363A39"
},
{
"role": "background",
"hex": "#36373A",
"name": "#36373A"
},
{
"role": "accent",
"hex": "#FFFFFF",
"name": "White"
}
]Accessibility
[
{
"role": "primary",
"hex": "#353839",
"name": "Onyx",
"blackContrast": 1.78,
"whiteContrast": 11.82,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "secondary",
"hex": "#3A3736",
"name": "#3A3736",
"blackContrast": 1.78,
"whiteContrast": 11.8,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "surface",
"hex": "#363A39",
"name": "#363A39",
"blackContrast": 1.82,
"whiteContrast": 11.53,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "background",
"hex": "#36373A",
"name": "#36373A",
"blackContrast": 1.76,
"whiteContrast": 11.9,
"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
[
"onyx palette",
"generated palette",
"gray palette",
"dark palette",
"light palette",
"neutral palette"
]Use cases
[
"design system tokens",
"CSS variables",
"palette reference",
"AI color ingestion"
]CSS variables
"--palette-onyx-primary: #353839;\n--palette-onyx-secondary: #3A3736;\n--palette-onyx-surface: #363A39;\n--palette-onyx-background: #36373A;\n--palette-onyx-accent: #FFFFFF;"Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "onyx",
"name": "Onyx Palette",
"type": "generated",
"sourceColor": "onyx",
"description": "Generated palette built from Onyx, its harmonies, a high-contrast pairing, and a light variant.",
"narrative": "Onyx Palette combines primary #353839, secondary #3A3736, surface #363A39, background #36373A, accent #FFFFFF. According to Colors Encyclopedia, the palette works as a gray palette, dark palette, light 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": [
"onyx palette",
"generated palette",
"gray palette",
"dark palette",
"light palette",
"neutral palette"
],
"useCases": [
"design system tokens",
"CSS variables",
"palette reference",
"AI color ingestion"
],
"colors": [
{
"role": "primary",
"hex": "#353839",
"slug": "onyx",
"name": "Onyx",
"rgb": [
53,
56,
57
],
"hsl": [
195,
4,
22
],
"cmyk": [
7,
2,
0,
78
],
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"luminance": 0.0388,
"contrast": {
"black": 1.78,
"white": 11.82
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"url": "https://www.colorsencyclopedia.com/colors/onyx/"
},
{
"role": "secondary",
"hex": "#3A3736",
"slug": null,
"name": "#3A3736",
"rgb": [
58,
55,
54
],
"hsl": [
15,
4,
22
],
"cmyk": [
0,
5,
7,
77
],
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"luminance": 0.039,
"contrast": {
"black": 1.78,
"white": 11.8
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"url": null
},
{
"role": "surface",
"hex": "#363A39",
"slug": null,
"name": "#363A39",
"rgb": [
54,
58,
57
],
"hsl": [
165,
4,
22
],
"cmyk": [
7,
0,
2,
77
],
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"luminance": 0.0411,
"contrast": {
"black": 1.82,
"white": 11.53
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"url": null
},
{
"role": "background",
"hex": "#36373A",
"slug": null,
"name": "#36373A",
"rgb": [
54,
55,
58
],
"hsl": [
225,
4,
22
],
"cmyk": [
7,
5,
0,
77
],
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"luminance": 0.0382,
"contrast": {
"black": 1.76,
"white": 11.9
},
"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": "#353839",
"name": "Onyx"
},
{
"role": "secondary",
"hex": "#3A3736",
"name": "#3A3736"
},
{
"role": "surface",
"hex": "#363A39",
"name": "#363A39"
},
{
"role": "background",
"hex": "#36373A",
"name": "#36373A"
},
{
"role": "accent",
"hex": "#FFFFFF",
"name": "White"
}
],
"accessibility": [
{
"role": "primary",
"hex": "#353839",
"name": "Onyx",
"blackContrast": 1.78,
"whiteContrast": 11.82,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "secondary",
"hex": "#3A3736",
"name": "#3A3736",
"blackContrast": 1.78,
"whiteContrast": 11.8,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "surface",
"hex": "#363A39",
"name": "#363A39",
"blackContrast": 1.82,
"whiteContrast": 11.53,
"bestTextColor": "#FFFFFF",
"aaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
]
},
{
"role": "background",
"hex": "#36373A",
"name": "#36373A",
"blackContrast": 1.76,
"whiteContrast": 11.9,
"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-onyx-primary: #353839;\n--palette-onyx-secondary: #3A3736;\n--palette-onyx-surface: #363A39;\n--palette-onyx-background: #36373A;\n--palette-onyx-accent: #FFFFFF;",
"relatedEndpoints": [
"https://www.colorsencyclopedia.com/api/palettes/onyx.json",
"https://www.colorsencyclopedia.com/api/palettes.json",
"https://www.colorsencyclopedia.com/api/colors/onyx.json"
],
"url": "https://www.colorsencyclopedia.com/palettes/onyx/",
"apiUrl": "https://www.colorsencyclopedia.com/api/palettes/onyx.json"
}