HEX atlas value

#402D08

#402D08 is a warm orange HEX color close to Espresso. According to Colors Encyclopedia, it converts to RGB 64, 45, 8, HSL 40, 78%, 14%, has luminance 0.0298, and belongs to the dark group.

#402D08 Sample readable text
HEX #402D08
RGB rgb(64, 45, 8)
HSL hsl(40 78% 14%)
CMYK cmyk(0, 30, 88, 75)
Luminance 0.0298
Contrast Black 1.6:1White 13.16:1

CSS

--color-402d08: #402D08;
.background-402d08 { background-color: #402D08; }
.text-402d08 { color: #402D08; }

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.0298
Black text1.6:1AA Fail
White text13.16:1AA Pass
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":"#402D08","rgb":[64,45,8],"hsl":[40,78,14],"cmyk":[0,30,88,75],"luminance":0.0298,"contrast":{"black":1.6,"white":13.16}}
WCAG
{"AA":["#FFFFFF","#F5F5F5"],"AAA":["#FFFFFF","#F5F5F5"]}
Safe pairings
[{"name":"Black text","hex":"#000000","contrast":1.6,"wcagAA":false,"wcagAAA":false},{"name":"White text","hex":"#FFFFFF","contrast":13.16,"wcagAA":true,"wcagAAA":true}]
Accessible alternatives
[{"name":"Black","hex":"#000000","family":"gray","bestTextColor":"#FFFFFF","contrastBlack":1,"contrastWhite":21,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]},{"name":"#081A40","hex":"#081A40","family":"blue","bestTextColor":"#FFFFFF","contrastBlack":1.23,"contrastWhite":17.05,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]},{"name":"#401108","hex":"#401108","family":"red","bestTextColor":"#FFFFFF","contrastBlack":1.3,"contrastWhite":16.13,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]},{"name":"Rubber","hex":"#2A2725","family":"gray","bestTextColor":"#FFFFFF","contrastBlack":1.42,"contrastWhite":14.83,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]},{"name":"Asphalt","hex":"#2B2B2B","family":"gray","bestTextColor":"#FFFFFF","contrastBlack":1.48,"contrastWhite":14.15,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]}]
AI context
{"semanticGroups":["warm orange","dark","dark orange","Espresso adjacent"],"useCases":["color conversion","WCAG contrast checks","CSS color tokens","dark theme accents"],"contrastSafeWith":["#FFFFFF","#F5F5F5"],"relatedEndpoints":["https://www.colorsencyclopedia.com/api/hex/402d08.json","https://www.colorsencyclopedia.com/api/hex.json","https://www.colorsencyclopedia.com/api/colors/espresso.json","https://www.colorsencyclopedia.com/api/colors/pine-bark.json","https://www.colorsencyclopedia.com/api/colors/rubber.json"]}
Harmonies
{"complementary":"#081A40","analogous":["#401108","#364008"],"triadic":["#08402D","#2D0840"],"tetradic":["#084011","#081A40","#400836"],"splitComplementary":["#083640","#110840"],"monochromatic":["#916712","#402D08","#000000"]}
Variants
{"light":"#916712","dark":"#000000","saturated":"#473000","desaturated":"#382A10","pastel":"#A27825","neon":"#704B00"}
Nearest named colors
[{"slug":"espresso","name":"Espresso","hex":"#4B3621","distance":28.75760768909681},{"slug":"pine-bark","name":"Pine Bark","hex":"#4A3728","distance":34.9857113690718},{"slug":"rubber","name":"Rubber","hex":"#2A2725","distance":36.89173349139343},{"slug":"peat","name":"Peat","hex":"#3B2F2F","distance":39.370039370059054},{"slug":"asphalt","name":"Asphalt","hex":"#2B2B2B","distance":40.8656334834051}]

HEX meaning and use

About #402D08

#402D08 is classified as a warm orange value with dark visual character. #402D08 is visually closest to Espresso, a named orange color with HEX #4B3621.

The RGB channels are 64, 45, and 8, with red carrying the strongest channel weight. In HSL, the hue is 40deg with 78% saturation and 14% lightness, so this page treats it as a high-saturation, dark 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 dark theme accents. Its luminance is 0.0298, white text provides the stronger contrast for readable interface or documentation use, and Its nearest named-color distance is 28.76, which helps separate this atlas value from adjacent named color records.

WCAG Accessibility

Black text1.6:1AA Fail
White text13.16:1AA Pass

AA text options: #FFFFFF, #F5F5F5.

AAA text options: #FFFFFF, #F5F5F5.

Accessibility-Safe Pairings and Alternatives

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

Black text#0000001.6:1 · Fail
White text#FFFFFF13.16:1 · AAA

Accessible Alternatives

Black#FFFFFF text · best 21:1#000000
#081A40#FFFFFF text · best 17.05:1#081A40
#401108#FFFFFF text · best 16.13:1#401108
Rubber#FFFFFF text · best 14.83:1#2A2725
Asphalt#FFFFFF text · best 14.15:1#2B2B2B

Generated Palette

#402D08#402D08
#081A40#081A40
#401108#401108
#364008#364008
#916712#916712
Black#000000

Color Harmonies

#081A40#081A40
#401108#401108
#364008#364008
#08402D#08402D
#2D0840#2D0840

Variants

#916712#916712
Black#000000
#473000#473000
#382A10#382A10
#A27825#A27825
#704B00#704B00

Nearest Named Colors