HEX atlas value

#D2A504

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

#D2A504 Sample readable text
HEX #D2A504
RGB rgb(210, 165, 4)
HSL hsl(47 96% 42%)
CMYK cmyk(0, 21, 98, 18)
Luminance 0.4062
Contrast Black 9.12:1White 2.3:1

CSS

--color-d2a504: #D2A504;
.background-d2a504 { background-color: #D2A504; }
.text-d2a504 { color: #D2A504; }

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.4062
Black text9.12:1AA Pass
White text2.3: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":"#D2A504","rgb":[210,165,4],"hsl":[47,96,42],"cmyk":[0,21,98,18],"luminance":0.4062,"contrast":{"black":9.12,"white":2.3}}
WCAG
{"AA":["#000000","#1A1A1A"],"AAA":["#000000","#1A1A1A"]}
Safe pairings
[{"name":"Black text","hex":"#000000","contrast":9.12,"wcagAA":true,"wcagAAA":true},{"name":"White text","hex":"#FFFFFF","contrast":2.3,"wcagAA":false,"wcagAAA":false}]
Accessible alternatives
[{"name":"#FBD037","hex":"#FBD037","family":"yellow","bestTextColor":"#000000","contrastBlack":14.18,"contrastWhite":1.48,"wcagAA":["#000000","#1A1A1A","#36454F"],"wcagAAA":["#000000","#1A1A1A"]},{"name":"Industrial Yellow","hex":"#F3C300","family":"yellow","bestTextColor":"#000000","contrastBlack":12.62,"contrastWhite":1.66,"wcagAA":["#000000","#1A1A1A","#36454F"],"wcagAAA":["#000000","#1A1A1A"]},{"name":"#98D204","hex":"#98D204","family":"green","bestTextColor":"#000000","contrastBlack":11.56,"contrastWhite":1.82,"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"]}]
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/d2a504.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":"#0431D2","analogous":["#D23F04","#98D204"],"triadic":["#04D2A5","#A504D2"],"tetradic":["#04D23F","#0431D2","#D20498"],"splitComplementary":["#0498D2","#3F04D2"],"monochromatic":["#FBD037","#D2A504","#785E02"]}
Variants
{"light":"#FBD037","dark":"#785E02","saturated":"#D6A800","desaturated":"#BA981C","pastel":"#EFD167","neon":"#FFC800"}
Nearest named colors
[{"slug":"mustard-yellow","name":"Mustard Yellow","hex":"#E1AD01","distance":17.26267650163207},{"slug":"goldenrod","name":"Goldenrod","hex":"#DAA520","distance":29.120439557122072},{"slug":"marigold","name":"Marigold","hex":"#EAA221","distance":37.76241517699841},{"slug":"dark-goldenrod","name":"Dark Goldenrod","hex":"#B8860B","distance":41.060930335295616},{"slug":"industrial-yellow","name":"Industrial Yellow","hex":"#F3C300","distance":44.77722635447622}]

HEX meaning and use

About #D2A504

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

The RGB channels are 210, 165, and 4, with red carrying the strongest channel weight. In HSL, the hue is 47deg 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.4062, black text provides the stronger contrast for readable interface or documentation use, and Its nearest named-color distance is 17.26, which helps separate this atlas value from adjacent named color records.

WCAG Accessibility

Black text9.12:1AA Pass
White text2.3:1AA Fail

AA text options: #000000, #1A1A1A.

AAA text options: #000000, #1A1A1A.

Accessibility-Safe Pairings and Alternatives

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

Black text#0000009.12:1 · AAA
White text#FFFFFF2.3:1 · Fail

Accessible Alternatives

#FBD037#000000 text · best 14.18:1#FBD037
Industrial Yellow#000000 text · best 12.62:1#F3C300
#98D204#000000 text · best 11.56:1#98D204
Mustard Yellow#000000 text · best 10.18:1#E1AD01
Marigold#000000 text · best 9.69:1#EAA221

Generated Palette

#D2A504#D2A504
#0431D2#0431D2
#D23F04#D23F04
#98D204#98D204
#FBD037#FBD037
#785E02#785E02

Color Harmonies

#0431D2#0431D2
#D23F04#D23F04
#98D204#98D204
#04D2A5#04D2A5
#A504D2#A504D2

Variants

#FBD037#FBD037
#785E02#785E02
#D6A800#D6A800
#BA981C#BA981C
#EFD167#EFD167
#FFC800#FFC800

Nearest Named Colors