Skip to main content

Dark Yellow

#9B870C·yellow family·WCAG AA

Tints & Shades

50

100

200

300

400

500

600

700

800

900

Scale from white (50) through Dark Yellow (500) to black (900), interpolated in Lab color space.

Color Values

HEX
#9B870C
RGB
rgb(155, 135, 12)
HSL
hsl(52, 86%, 33%)
OKLCH
oklch(0.623 0.126 98)
CMYK
cmyk(0%, 13%, 92%, 39%)
Luminance:0.2432
CSS var:--color-dark-yellow
Tailwind:bg-[#9B870C]

Accessibility

Score: 39/100

On White (#FFF)

3.58:1

AA Large

On Black (#000)

5.86:1

AA

On Light Gray (#F5F5F5)

3.28:1

AA Large

Best text color on this background:

black5.86:1
Open in Contrast Checker →

Design Applications

Background

background-color: #9B870C

Text Color

color: #9B870C

bg-[#9B870C] text-[#000000]

Accent border card component

border-left: 4px solid #9B870C

Color Meaning & Psychology

Yellow is the most luminous color in the visible spectrum — the color our eyes detect first and at the greatest distance. It stimulates mental activity, promotes optimism, and conveys clarity. However, yellow is also the most fatiguing for the human eye at extended exposure, and pure yellow text on white fails all accessibility standards. In design, yellow works best as an accent or background for dark text. Golden yellows signal warmth and achievement; cool lemons feel fresh and modern. Yellow is the universal color of caution — from traffic lights to hazard tape. Its deeper, richer tone gives it gravitas and sophistication, making it well-suited for primary brand colors, typography, and contexts where authority matters.

Industry Usage

Common contexts and industries where Dark Yellow is applied in professional design.

  • Taxi and transportation services
  • Construction and heavy machinery
  • Children's education products and toys
  • Fast food and energy-focused brands
  • Caution and safety signage
  • Summer and outdoor lifestyle brands
  • Optimistic lifestyle and wellness brands
  • Creative agencies emphasizing ideas

Accessibility Considerations

Normal Text

Fails AA

4.5:1 minimum required

Large Text

Passes AA Large

3:1 minimum required

UI Components

Meets 1.4.11

3:1 for non-text UI

Dark Yellow is a light color. Use black (#000000) text on top of it for maximum readability (5.86:1). Avoid white text on this background.

CSS & Code Examples

Background

background-color: #9B870C;

Text

color: #9B870C;

Border

border: 2px solid #9B870C;

Box Shadow

box-shadow: 0 4px 20px #9B870C40;

Gradient

background: linear-gradient(135deg, #9B870C, #cfb644);

Tailwind-style

--color-dark-yellow: #9B870C;

Tailwind CSS Utilities

Use arbitrary value syntax in Tailwind CSS to apply Dark Yellow without a custom config.

Background

bg-[#9B870C]

Text

text-[#9B870C]

Border

border-[#9B870C]

Ring

ring-[#9B870C]

Fill

fill-[#9B870C]

From (gradient)

from-[#9B870C]

Via (gradient)

via-[#9B870C]

To (gradient)

to-[#9B870C]

Design Tokens

Ready-to-use Dark Yellow design token in CSS custom properties, SCSS, Tailwind v3/v4, and JSON formats.

CSS Custom Properties

:root {
  --color-dark-yellow: #9B870C;
  --color-dark-yellow-rgb: 155, 135, 12;
  --color-dark-yellow-hsl: 52, 86%, 33%;
}

SCSS Variables

$color-dark-yellow: #9B870C;
$color-dark-yellow-rgb: 155, 135, 12;
$color-dark-yellow-hsl: 52, 86%, 33%;

Tailwind v3 Config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'dark-yellow': '#9B870C',
      },
    },
  },
};

Tailwind v4 (@theme)

/* tailwind.css */
@theme {
  --color-dark-yellow: #9B870C;
}

JSON Design Token (W3C format)

{
  "dark-yellow": {
    "value": "#9B870C",
    "type": "color",
    "description": "Dark Yellow — #9B870C"
  }
}

What Does Dark Yellow Mean? Color Psychology & Cultural Symbolism

Of all the warm hues, yellow is the most cognitively active—it stimulates the nervous system, enhances mental activity, and signals alertness. Dark Yellow channels this quality into optimism: a response that's less about instinct than about activated clarity.

  • Yellow occupies a paradoxical space in Western symbolism—simultaneously the color of happiness, optimism, and cowardice. In commercial contexts it signals caution (traffic lights, hazard tape) and sale promotions. In consumer branding it communicates cheerfulness and energy.
  • In Chinese and many other East Asian cultures, yellow (and especially gold-yellow) historically signified royalty, prosperity, and imperial authority. In Buddhist traditions it represents wisdom and harmony.
  • Dark Yellow's deep lightness (33%) shifts its psychological register: Dark goldenrod and mustard shift from cheerfulness toward richness and sophistication—the yellow family's most premium territory, associated with artisanal craft and late-season warmth.
  • At 86% saturation, Dark Yellow reads as vivid—Pure vivid yellow is the highest-chroma color the human eye perceives—it cannot be ignored and is physiologically stimulating, even more so than red in some attention research.

Dark Yellow is the color of first impressions—it arrives before everything else and sets the energy level for what follows.

How to Use Dark Yellow in Design: Applications, Pairings & Best Practices

Dark Yellow requires careful deployment in design—its high luminosity makes it nearly impossible to use as text on white backgrounds, but as an accent, background, or highlight it has no equal for drawing the eye.

  • UI components: warning states, highlights, feature callouts—Dark Yellow performs reliably in all these roles with its deep tonal character.
  • Brand & identity: highlights, callout banners, brand accents—contexts where Dark Yellow's vivid quality creates the right register.
  • Typography: Dark Yellow as text requires a dark background; its 33% lightness means it provides 3.6:1 contrast on white, not meeting WCAG AA.
  • Dark Yellow creates strong legibility with black text overlays (5.9:1 contrast ratio), making it a reliable background or surface color in design systems
  • Proportional use: Dark Yellow's vivid saturation (86%) means small applications—accents, highlights, icons—deliver maximum impact without visual fatigue. Reserve large-scale use for intentional brand moments.

Dark Yellow is the color of first impressions—it arrives before everything else and sets the energy level for what follows.

Dark Yellow Accessibility: WCAG Contrast Ratios, Color Blindness & Inclusive Design

Dark Yellow (#9B870C) reaches 5.86:1 contrast with black text—meeting WCAG 2.1 AA minimum of 4.5:1 for normal text and 3:1 for large text. It clears standard production accessibility requirements. Relative luminance: 24.3%.

  • As text on white (#FFFFFF): 3.58:1 — AA (large text only)
  • As text on black (#000000): 5.86:1 — AA ✓
  • Best text color on Dark Yellow background: Black (#000000) at 5.86:1
  • WCAG 2.1 luminance: 24.3% — mid-range luminance—it sits in the transition zone where both dark and light text approaches require testing against the 4.5:1 WCAG threshold
  • Dark Yellow qualifies for normal body text and all larger sizes (AA).
  • Color blindness consideration: tritanopia (blue-yellow color blindness, ~0.003% of population) may affect how this color reads. While rare, for maximum accessibility supplement color signals with text or icon indicators in critical states.

Always verify Dark Yellow at its final intended size and weight using a real contrast checker—font weight and rendering environment affect perceived legibility beyond what raw ratios capture.

Dark Yellow in Industry: Branding, Design & Market Applications

Dark Yellow's brand positioning falls squarely in the territory of optimism, clarity, intellect, and caution. Industry data supports its strongest performance in education, food, safety & construction categories, where the vivid saturation calibrates the message at a deep, considered level.

  • Food & Beverage: Yellow stimulates appetite and communicates freshness, especially for bakery, dairy, and snack categories. Its association with sunlight and ripe crops makes it an instinctive choice for natural and wholesome food brands. (examples: Chipotle, Sweetgreen, Blue Bottle Coffee) Extremely effective for children's food products; less effective for premium dining where it reads as casual.
  • Education & Children's Products: Yellow is cognitively stimulating and signals playfulness, making it a dominant choice in educational materials, children's toys, and learning apps. It creates an environment of curiosity and creative energy. (examples: Chegg, Khan Academy, Coursera) Combine with blue for a classic educational palette that suggests both warmth and reliability.
  • Safety & Construction: Yellow is the universal signal for visibility and caution. High-visibility vests, construction equipment, and warning signage use yellow because it provides maximum contrast in low-light conditions and stands out in natural environments. This safety connotation can be leveraged in UX for warning states and "proceed with awareness" signals.
  • Brand positioning: Dark Yellow is best suited for brands projecting optimism, creativity, clarity. Categories outside this positioning—body text on white (extremely poor contrast)—tend to see weaker results.
  • Adjacent applications: Beyond primary industries, Dark Yellow works effectively in highlights, callout banners, brand accents—contexts where clarity serves a secondary but reinforcing role.

For marketers and brand strategists, Dark Yellow is a commitment to optimism, clarity, intellect, and caution. Match it with industries that make that promise and it will pay dividends consistently.

Frequently Asked Questions

What is the hex code for Dark Yellow?
The hex code for Dark Yellow is #9B870C. Its RGB values are rgb(155, 135, 12) and its HSL values are hsl(52, 86%, 33%).
What does Dark Yellow mean in design?
Yellow is the most luminous color in the visible spectrum — the color our eyes detect first and at the greatest distance. It stimulates mental activity, promotes optimism, and conveys clarity. However, yellow is also the most fatiguing for the human eye at extended exposure, and pure yellow text on white fails all accessibility standards. In design, yellow works best as an accent or background for dark text. Golden yellows signal warmth and achievement; cool lemons feel fresh and modern. Yellow is the universal color of caution — from traffic lights to hazard tape. Its deeper, richer tone gives it gravitas and sophistication, making it well-suited for primary brand colors, typography, and contexts where authority matters.
Is Dark Yellow WCAG accessible?
Dark Yellow (#9B870C) passes WCAG AA-large on white with a 3.58:1 contrast ratio. Its overall accessibility score is 39/100.
What colors go well with Dark Yellow?
Dark Yellow pairs well with its complementary color Zaffre (#0014A8). Analogous colors like Pale Silver and Champagne also work harmoniously. Check the Color Harmonies section above for the full palette.
What is Dark Yellow used for?
Dark Yellow is commonly used for: Taxi and transportation services; Construction and heavy machinery; Children's education products and toys; Fast food and energy-focused brands; Caution and safety signage.
What are the CSS and Tailwind values for Dark Yellow?
In CSS, use `color: #9B870C` or `background-color: #9B870C`. The CSS custom property is `--color-dark-yellow: #9B870C`. In Tailwind CSS, use the arbitrary value class `bg-[#9B870C]` for backgrounds or `text-[#9B870C]` for text.