HEX atlas value

#D2A204

#D2A204 is a warm yellow HEX color close to Mustard Yellow. According to Colors Encyclopedia, it converts to RGB 210, 162, 4, HSL 46, 96%, 42%, has luminance 0.3955, and belongs to the vibrant group.

#D2A204 Sample readable text
HEX #D2A204
RGB rgb(210, 162, 4)
HSL hsl(46 96% 42%)
CMYK cmyk(0, 23, 98, 18)
Luminance 0.3955
Contrast Black 8.91:1White 2.36:1

CSS

--color-d2a204: #D2A204;
.background-d2a204 { background-color: #D2A204; }
.text-d2a204 { color: #D2A204; }

Machine-readable data

Machine-Readable HEX Data (JSON)

Structured HEX color data for conversion, WCAG checks, CSS generation, automation, and AI ingestion.

AI-Ready Dataset v1.0.0
Luminance0.3955
Black text8.91:1AA Pass
White text2.36:1AA Fail
hexCanonical HEX value
rgbRed, green, blue channels
hslHue, saturation, lightness
cmykApproximate print conversion
wcagAA and AAA contrast options
harmoniesMathematical harmony sets
variantsGenerated tone variants
nearestColorsKnowledge graph neighbors
Download JSON Open API
Structured sections
Color systems
{"hex":"#D2A204","rgb":[210,162,4],"hsl":[46,96,42],"cmyk":[0,23,98,18],"luminance":0.3955,"contrast":{"black":8.91,"white":2.36}}
WCAG
{"AA":["#000000","#1A1A1A"],"AAA":["#000000","#1A1A1A"]}
Safe pairings
[{"name":"Black text","hex":"#000000","contrast":8.91,"wcagAA":true,"wcagAAA":true},{"name":"White text","hex":"#FFFFFF","contrast":2.36,"wcagAA":false,"wcagAAA":false}]
Accessible alternatives
[{"name":"#FBCD37","hex":"#FBCD37","family":"yellow","bestTextColor":"#000000","contrastBlack":13.89,"contrastWhite":1.51,"wcagAA":["#000000","#1A1A1A","#36454F"],"wcagAAA":["#000000","#1A1A1A"]},{"name":"#9BD204","hex":"#9BD204","family":"green","bestTextColor":"#000000","contrastBlack":11.61,"contrastWhite":1.81,"wcagAA":["#000000","#1A1A1A","#36454F"],"wcagAAA":["#000000","#1A1A1A"]},{"name":"Mustard Yellow","hex":"#E1AD01","family":"yellow","bestTextColor":"#000000","contrastBlack":10.18,"contrastWhite":2.06,"wcagAA":["#000000","#1A1A1A","#36454F"],"wcagAAA":["#000000","#1A1A1A"]},{"name":"Marigold","hex":"#EAA221","family":"orange","bestTextColor":"#000000","contrastBlack":9.69,"contrastWhite":2.17,"wcagAA":["#000000","#1A1A1A","#36454F"],"wcagAAA":["#000000","#1A1A1A"]},{"name":"Goldenrod","hex":"#DAA520","family":"orange","bestTextColor":"#000000","contrastBlack":9.38,"contrastWhite":2.24,"wcagAA":["#000000","#1A1A1A"],"wcagAAA":["#000000","#1A1A1A"]}]
AI context
{"semanticGroups":["warm yellow","vibrant","vibrant yellow","Mustard Yellow adjacent"],"useCases":["color conversion","WCAG contrast checks","CSS color tokens","high-energy accents","highlight and warning systems"],"contrastSafeWith":["#000000","#1A1A1A"],"relatedEndpoints":["https://www.colorsencyclopedia.com/api/hex/d2a204.json","https://www.colorsencyclopedia.com/api/hex.json","https://www.colorsencyclopedia.com/api/colors/mustard-yellow.json","https://www.colorsencyclopedia.com/api/colors/goldenrod.json","https://www.colorsencyclopedia.com/api/colors/marigold.json"]}
Harmonies
{"complementary":"#0434D2","analogous":["#D23B04","#9BD204"],"triadic":["#04D2A2","#A204D2"],"tetradic":["#04D23B","#0434D2","#D2049B"],"splitComplementary":["#049BD2","#3B04D2"],"monochromatic":["#FBCD37","#D2A204","#785D02"]}
Variants
{"light":"#FBCD37","dark":"#785D02","saturated":"#D6A400","desaturated":"#BA951C","pastel":"#EFCF67","neon":"#FFC300"}
Nearest named colors
[{"slug":"mustard-yellow","name":"Mustard Yellow","hex":"#E1AD01","distance":18.841443681416774},{"slug":"goldenrod","name":"Goldenrod","hex":"#DAA520","distance":29.274562336608895},{"slug":"marigold","name":"Marigold","hex":"#EAA221","distance":37.64306044943742},{"slug":"dark-goldenrod","name":"Dark Goldenrod","hex":"#B8860B","distance":38.84584919911006},{"slug":"tangerine","name":"Tangerine","hex":"#F28500","distance":43.37049688440288}]

HEX meaning and use

About #D2A204

#D2A204 is classified as a warm yellow value with vibrant visual character. #D2A204 is visually closest to Mustard Yellow, a named yellow color with HEX #E1AD01.

The RGB channels are 210, 162, and 4, with red carrying the strongest channel weight. In HSL, the hue is 46deg with 96% saturation and 42% lightness, so this page treats it as a high-saturation, mid-lightness atlas color rather than a generic swatch.

According to Colors Encyclopedia, this HEX value works best for color conversion, WCAG contrast checks, CSS color tokens, and high-energy accents. Its luminance is 0.3955, black text provides the stronger contrast for readable interface or documentation use, and Its nearest named-color distance is 18.84, which helps separate this atlas value from adjacent named color records.

WCAG Accessibility

Black text8.91:1AA Pass
White text2.36:1AA Fail

AA text options: #000000, #1A1A1A.

AAA text options: #000000, #1A1A1A.

Accessibility-Safe Pairings and Alternatives

Use these pairings when #D2A204 needs readable text, badges, interface states, or nearby accessible alternatives.

Black text#0000008.91:1 · AAA
White text#FFFFFF2.36:1 · Fail

Accessible Alternatives

#FBCD37#000000 text · best 13.89:1#FBCD37
#9BD204#000000 text · best 11.61:1#9BD204
Mustard Yellow#000000 text · best 10.18:1#E1AD01
Marigold#000000 text · best 9.69:1#EAA221
Goldenrod#000000 text · best 9.38:1#DAA520

Generated Palette

#D2A204#D2A204
#0434D2#0434D2
#D23B04#D23B04
#9BD204#9BD204
#FBCD37#FBCD37
#785D02#785D02

Color Harmonies

#0434D2#0434D2
#D23B04#D23B04
#9BD204#9BD204
#04D2A2#04D2A2
#A204D2#A204D2

Variants

#FBCD37#FBCD37
#785D02#785D02
#D6A400#D6A400
#BA951C#BA951C
#EFCF67#EFCF67
#FFC300#FFC300

Nearest Named Colors