Maroon Colors  ·  Color Library

Palettes / Colors / #AF940C

#AF940C — Vivid Yellow

#AF940C is a yellow color we call Vivid Yellow, closest to the named color DarkGoldenRod (#B8860B). It belongs to the yellow family.

Color name

Closest CSS keyword: darkgoldenrod (#B8860B) — not an exact match. CSS darkgoldenrod gives you #B8860B, a different color; use #AF940C when you need this exact shade.

Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.

#AF940C is a warm yellow color associated with optimism, attention and cheer. It is saturated enough to be the accent — buttons, highlights and calls to action — while neutrals do the quiet work around it.

Its strongest partner is its complement #0C28B0; it also sits naturally between #B0430C and #7AB00C. In the palettes below you can see it working alongside real color combinations from our collection.

#AF940C · RGB 175, 148, 12

Download PNG swatch SVG

Color values

HEX#AF940C
RGB175, 148, 12
HSL50°, 87%, 37%
HSV50°, 93%, 69%
CMYK0%, 15%, 93%, 31%
XYZ28.34, 30.32, 4.71
Yxy30.32, 0.4472, 0.4785
CIE-Lab61.93, -1.89, 64.17
Hunter Lab55.06, -1.59, 31.65

RGB & CMYK percentages

Red 69% · Green 58% · Blue 5%

Cyan 0% · Magenta 15% · Yellow 93% · Key 31%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #AF940C on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #AF940C on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #AF940C

.text { color: #AF940C; }
.background { background-color: #AF940C; }
.border { border: 3px solid #AF940C; }
.text-rgb { color: rgb(175, 148, 12); }
.text-hsl { color: hsl(50, 87%, 37%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #AF940C; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(175, 148, 12, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #AF940C; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(175, 148, 12, 0.8); }

HTML: <p style="color:#AF940C">Text here</p> · <div style="background-color:#AF940C">Div content here</div>

Shades of #AF940C

#A2890B#8F790A#816D09#726108#645507#514406#433805#342C04#211C02#131001

Tints of #AF940C

#CDAD0E#EAC510#F0CF28#F2D545#F4DC62#F6E179#F8E796#FAEEB3#FCF4CF#FEFBEC

Tones of #AF940C

#A58E18#998524#8E7E2F#81763B#766E47#6A6653

Color harmonies

Complementary — #0C28B0:

Analogous:

Triadic:

Contrast & accessibility

Against white text2.97:1 Fails
Against black text7.06:1 AAA

Best text color on #AF940C: #000000.

Semi-transparent (opacity) text on #AF940C

Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #AF940C: ·

How #AF940C looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #A3A32DDeuteranopia · #A5A735Tritanopia · #AE474D

Closest design-system colors

The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:

Tailwind yellow 600 · #CA8A04Tailwind amber 600 · #D97706Tailwind yellow 500 · #EAB308

Palettes with a similar color

These palettes use a close neighbour of #AF940C rather than the exact color:

Golden Whisper
#AC9C12 · #D5EB46 · #1E33E7 · #CBC8F6
Velvet Ruby Mirage
#B41B44 · #A62618 · #AB5911 · #B29919
Vivid Meadow
#821929 · #56290C · #9F9810 · #325510
Tranquil Mosaic
#F24B9A · #E01628 · #CD5019 · #B58515
Hidden Terrace
#B1991F · #E6E46D · #4A62DF · #A8B4EA
Tender Ruby Orchard
#C19215 · #EFB06A · #4975EB · #93A0EC

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#AC9C12#B29919#9F9810#B58515#B1991F#C19215#A9A417#A98214#9E9B16#B19F1F#9D8C16#A4800E

Browse neighbouring colors

← #AF940B  ·  #AF940D →

Frequently asked questions

What color is #AF940C?

#AF940C is Vivid Yellow, a yellow color (RGB 175, 148, 12). Its closest standard named color is DarkGoldenRod.

What is the RGB and HSL of #AF940C?

#AF940C is RGB 175, 148, 12 — HSL 50°, 87%, 37% — CMYK 0%, 15%, 93%, 31%.

What colors go with #AF940C?

Its complement is #0C28B0; analogous partners are #B0430C and #7AB00C. It also appears in 6+ palettes in our collection.

Can I use #AF940C for text?

Black text on #AF940C has a contrast ratio of 7.06:1 (passes WCAG AA); white text gives 2.97:1.