gray color
Graphite
Graphite is #383838, a neutral gray with hue 0°, saturation 0% and luminance 0.0395. Beside Onyx, it is lighter and less saturated. Of the two standard text choices, white text gives the higher contrast at 11.73:1.
Nearest-color comparison
Graphite #383838 vs Onyx #353839: RGB distance 3.2 and contrast 1.01:1. Compare hue, luminance, saturation, WCAG and practical use.
Graphite and Onyx are very close, with an RGB distance of 3.2. Graphite is lighter by 0.0007, and Onyx is more saturated by 4 percentage points. Their mutual contrast is 1.01:1. The pair is too close for a readable foreground/background combination and works better as neighboring palette colors.
The main measurable differences between Graphite and Onyx across RGB distance, luminance, hue, saturation, and contrast.
gray color
Graphite is #383838, a neutral gray with hue 0°, saturation 0% and luminance 0.0395. Beside Onyx, it is lighter and less saturated. Of the two standard text choices, white text gives the higher contrast at 11.73:1.
gray color
Onyx is #353839, a neutral gray with hue 195°, saturation 4% and luminance 0.0388. Beside Graphite, it is darker and more saturated. Of the two standard text choices, white text gives the higher contrast at 11.82:1.
Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.
Downloadable color comparison infographic
Save a high-resolution comparison infographic with both HEX colors, visual distance, mutual contrast, and accessibility guidance.

A compact visual strip showing the two compared colors with nearby harmony and variant context.
Machine-readable data
Structured comparison data for Graphite and Onyx, including color systems, RGB distance, HSL deltas, contrast, accessibility guidance, use cases, and API links.
colorsBoth named color records with HEX, RGB, HSL, CMYK, luminance, WCAG, and linksdifferencesRGB distance, HSL deltas, luminance delta, contrast, and shared attributesaccessibilityPair contrast and safer text choices for each coloruseCasesWhen to choose each color and when to use them togetherrelatedApiMachine-readable comparison and color endpoints[
{
"slug": "graphite",
"name": "Graphite",
"hex": "#383838",
"rgb": [
56,
56,
56
],
"hsl": [
0,
0,
22
],
"cmyk": [
0,
0,
0,
78
],
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"luminance": 0.0395,
"contrast": {
"black": 1.79,
"white": 11.73
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"bestText": {
"text": "#FFFFFF",
"label": "white text",
"ratio": 11.73
},
"description": "Graphite is #383838, a neutral gray color with dark character. Compared with Onyx, it is lighter and less saturated. Use it for backgrounds, typography, and product surfaces, with white text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/graphite/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/graphite.json"
},
{
"slug": "onyx",
"name": "Onyx",
"hex": "#353839",
"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"
]
},
"bestText": {
"text": "#FFFFFF",
"label": "white text",
"ratio": 11.82
},
"description": "Onyx is #353839, a neutral gray color with dark character. Compared with Graphite, it is darker and more saturated. Use it for backgrounds, typography, and product surfaces, with white text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/onyx/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/onyx.json"
}
]{
"rgbDistance": 3.2,
"contrastRatio": 1.01,
"hslDelta": {
"hue": 195,
"saturation": 4,
"lightness": 0
},
"luminanceDelta": 0.0007,
"sameFamily": true,
"sameTemperature": true,
"sharedTones": [
"dark"
],
"lighterColor": "Graphite",
"moreSaturatedColor": "Onyx"
}{
"pairContrastRatio": 1.01,
"textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
"safeText": [
{
"color": "Graphite",
"background": "#383838",
"foreground": "#FFFFFF",
"label": "white text",
"ratio": 11.73
},
{
"color": "Onyx",
"background": "#353839",
"foreground": "#FFFFFF",
"label": "white text",
"ratio": 11.82
}
]
}{
"chooseFirstWhen": "Graphite is better when the design needs dark gray character, neutral temperature, and the specific HEX value #383838.",
"chooseSecondWhen": "Onyx is better when the design needs dark gray character, neutral temperature, and the specific HEX value #353839.",
"useTogetherWhen": "Use these colors together as related palette neighbors, subtle material differences, or tonal alternatives rather than readable foreground/background pairs."
}[
"https://www.colorsencyclopedia.com/api/compare/graphite-vs-onyx.json",
"https://www.colorsencyclopedia.com/api/colors/graphite.json",
"https://www.colorsencyclopedia.com/api/colors/onyx.json"
]{
"datasetVersion": "1.0.0",
"slug": "graphite-vs-onyx",
"type": "nearest",
"name": "Graphite vs Onyx",
"verdict": "Graphite and Onyx are very close colors. Graphite is the lighter option. They share similar temperature behavior. Their mutual contrast is 1.01:1, so the pair is too low for text and better treated as a palette relationship.",
"summary": "Graphite and Onyx are different gray colors with HEX values #383838 and #353839. According to Colors Encyclopedia, their RGB distance is 3.2, their contrast ratio is 1.01:1, and the comparison helps choose between tone, temperature, and accessibility behavior.",
"rgbDistance": 3.2,
"contrastRatio": 1.01,
"colors": [
{
"slug": "graphite",
"name": "Graphite",
"hex": "#383838",
"rgb": [
56,
56,
56
],
"hsl": [
0,
0,
22
],
"cmyk": [
0,
0,
0,
78
],
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"luminance": 0.0395,
"contrast": {
"black": 1.79,
"white": 11.73
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"bestText": {
"text": "#FFFFFF",
"label": "white text",
"ratio": 11.73
},
"description": "Graphite is #383838, a neutral gray color with dark character. Compared with Onyx, it is lighter and less saturated. Use it for backgrounds, typography, and product surfaces, with white text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/graphite/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/graphite.json"
},
{
"slug": "onyx",
"name": "Onyx",
"hex": "#353839",
"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"
]
},
"bestText": {
"text": "#FFFFFF",
"label": "white text",
"ratio": 11.82
},
"description": "Onyx is #353839, a neutral gray color with dark character. Compared with Graphite, it is darker and more saturated. Use it for backgrounds, typography, and product surfaces, with white text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/onyx/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/onyx.json"
}
],
"differences": {
"rgbDistance": 3.2,
"contrastRatio": 1.01,
"hslDelta": {
"hue": 195,
"saturation": 4,
"lightness": 0
},
"luminanceDelta": 0.0007,
"sameFamily": true,
"sameTemperature": true,
"sharedTones": [
"dark"
],
"lighterColor": "Graphite",
"moreSaturatedColor": "Onyx"
},
"accessibility": {
"pairContrastRatio": 1.01,
"textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
"safeText": [
{
"color": "Graphite",
"background": "#383838",
"foreground": "#FFFFFF",
"label": "white text",
"ratio": 11.73
},
{
"color": "Onyx",
"background": "#353839",
"foreground": "#FFFFFF",
"label": "white text",
"ratio": 11.82
}
]
},
"useCases": {
"chooseFirstWhen": "Graphite is better when the design needs dark gray character, neutral temperature, and the specific HEX value #383838.",
"chooseSecondWhen": "Onyx is better when the design needs dark gray character, neutral temperature, and the specific HEX value #353839.",
"useTogetherWhen": "Use these colors together as related palette neighbors, subtle material differences, or tonal alternatives rather than readable foreground/background pairs."
},
"relatedApi": [
"https://www.colorsencyclopedia.com/api/compare/graphite-vs-onyx.json",
"https://www.colorsencyclopedia.com/api/colors/graphite.json",
"https://www.colorsencyclopedia.com/api/colors/onyx.json"
],
"url": "https://www.colorsencyclopedia.com/compare/graphite-vs-onyx/",
"apiUrl": "https://www.colorsencyclopedia.com/api/compare/graphite-vs-onyx.json"
}