Dark Yellow (#9B870C)

HEX, RGB, HSL, CMYK values + mood/style/use-case color tags. Use this page to keep your colors consistent across web and print.

Preview

Sample Text
This is how text may look on this color.
Best text color: #000000
Contrast vs white: 3.58:1 — vs black: 5.86:1

Color values

  • HEX #9B870C
  • RGB rgb(155, 135, 12)
  • HSL hsl(51, 92%, 60%)
  • CMYK cmyk( 0, 12.9, 92.26, 39.22 )

Tags

Tip: tags are heuristic suggestions (helpful for browsing and inspiration).

Color Harmonies

Colors that pair well with #9B870C based on color theory relationships.

Complementary

The color directly opposite on the color wheel — creates maximum contrast and vibrance.

Dark Yellow
#9B870C Base
#0C209B
Analogous

Colors adjacent on the wheel — naturally harmonious and pleasing to the eye.

Dark Yellow
#9B870C Base
#9B400C
#679B0C
Triadic

Three colors equally spaced 120° apart — bold, balanced, and visually rich.

Dark Yellow
#9B870C Base
#0C9B87
#870C9B
Split-Complementary

Two colors flanking the complement — high contrast with less tension than full complementary.

Dark Yellow
#9B870C Base
#0C679B
#400C9B
Tetradic (Square)

Four colors at 90° intervals — rich variety, best when one color dominates.

Dark Yellow
#9B870C Base
#0C9B40
#0C209B
#9B0C67
Monochromatic

Shades and tints of the same hue — cohesive, elegant, and easy to work with.

Dark Yellow
#9B870C Base
#181502
#544907
#756609
#C1A80F
#E2C511
#F1DB4F
Shades & Tints

Darker shades and lighter tints of Dark Yellow, generated by adjusting lightness while keeping the same hue and saturation.

Shades (darker)

#181502
#322B04
#4C4206
#665908
#81700A
Dark Yellow #9B870C Base
#D6BA11
#EFD637
#F4E271
#F9EEAC
#FDFAE7
CSS & SCSS Snippets

Ready-to-use code snippets for #9B870C. Click the copy button to copy any snippet to your clipboard.

CSS Properties
/* Background */
.element {
    background-color: #9B870C;
}

/* Text */
.element {
    color: #9B870C;
}

/* Border */
.element {
    border: 1px solid #9B870C;
}
CSS Gradient
/* Linear gradient to complementary */
.element {
    background: linear-gradient(
        to right,
        #9B870C,
        #3F59F7
    );
}

/* Radial gradient */
.element {
    background: radial-gradient(
        circle,
        #9B870C,
        #3F59F7
    );
}
SCSS Variable
// SCSS variable
$dark-yellow: #9B870C;

// With RGB channels (useful for rgba() usage)
$dark-yellow-r: 155;
$dark-yellow-g: 135;
$dark-yellow-b: 12;

// Usage
.element {
    background-color: $dark-yellow;
    color: rgba($dark-yellow-r, $dark-yellow-g, $dark-yellow-b, 0.8);
}
Color Blindness Simulation

How Dark Yellow appears to people with different types of color vision deficiency.

Normal Vision #9B870C How the color appears with full color vision.
Deuteranopia #8D8D06 Deuteranopia affects ~8% of males. Green cones are absent, making it difficult to distinguish red from green. The most common form of color blindness.
Protanopia #89890D Protanopia affects ~1% of males. Red cones are absent, causing reds to appear dark and indistinguishable from greens and browns.
Tritanopia #A27F7F Tritanopia is rare (~0.003%). Blue cones are absent, making blue and yellow difficult to distinguish. Blues may appear green, yellows appear pink.
Achromatopsia #878787 Achromatopsia is complete color blindness. The world is seen entirely in shades of grey. Affects ~1 in 30,000 people.
Similar Named Colors

The closest named colors to Dark Yellow ranked by perceptual difference (Delta-E 2000 — lower = more similar).

Dark Yellow #9B870C Base
Olive #808000 ΔE 7.19
Old Moss Green #867E36 ΔE 7.93
Metallic Sunburst #9C7C38 ΔE 8.51
Dark Goldenrod #B8860B ΔE 9.22

How to use this color

  1. Copy HEX for CSS and design tools, or RGB/HSL for UI adjustments.
  2. Use CMYK when preparing print assets (posters, packaging, brochures).
  3. Check contrast before using it for text or important UI elements.