Skip to content

#c7af09

a dark, electric yellow · warm · closest name: Goldenrod

RGB
199, 175, 9
HSL
52°, 91%, 41%
CMYK
0, 12, 96, 22
Luminance
0.4282

At a glance

Every number on this page in one read: what #c7af09 is made of, how bright it looks, and which way it leans.

Hex
#c7af09
Hue
52°
yellow
Saturation
91%
electric
Lightness
41%
dark
Brightness
78%
HSV value
Perceived
68%
weighted brightness
Luminance
0.4282
WCAG relative
Temperature
Warm
19/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
9.56:1
Closest name
Goldenrod
ΔE2000 8.6
Where it sits
Hue52° of 360°
Saturation91%
Lightness41%
Temperature
Warm ← → Cool19% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#c7af09
RGBrgb(199, 175, 9)
HSLhsl(52, 91%, 41%)
CMYKcmyk(0%, 12%, 96%, 22%)
LABlab(71.4 -5.5 72.7)
LCHlch(71.4 72.9 94.4)
OKLCHoklch(0.752 0.154 99.2)
Decimal13086473
Display P3color(display-p3 0.780 0.686 0.035)

Copy-ready code

/* CSS */
color: #c7af09;
background-color: #c7af09;
/* Tailwind (arbitrary) */
class="text-[#c7af09] bg-[#c7af09]"
/* SCSS */
$brand: #c7af09;
/* SwiftUI */
Color(red: 0.780, green: 0.686, blue: 0.035)
/* Android */
Color.parseColor("#c7af09")
/* Flutter */
Color(0xFFC7AF09)
/* Python / OpenCV (BGR) */
(9, 175, 199)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #c7af09 · 9.56:1
Use #000000AAA at every size.
Aa
White text · 2.20:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.56:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #c7af09 as text scores 2.20:1 on white and 9.56:1 on black.

Accessibility — WCAG contrast

Aa
#c7af09 on white: 2.20:1
AA ✗ fail · AA-large · AAA
Aa
#c7af09 on black: 9.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C2AA00
deuteranopia · #C8B320
tritanopia · #D8A195

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c7af09 is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FDFCF2
#FBF8E4
#F9F2C3
#FAED94
#F8E45E
#F5DB28
#EACE0B
#c7af09
#9C8907
#71640A
#463E06
Base = 700Lightest = 50 · #FDFCF2Darkest = 950 · #463E06
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FBF8E4;
  --brand-200: #F9F2C3;
  --brand-300: #FAED94;
  --brand-400: #F8E45E;
  --brand-500: #F5DB28;
  --brand-600: #EACE0B;
  --brand-700: #c7af09;
  --brand-800: #9C8907;
  --brand-900: #71640A;
  --brand-950: #463E06;
  --brand: #c7af09;
  --brand-ink: #000000;
}

Colors that work with #c7af09

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAFAF4
Tinted page background
Border#EDE7C0
Hairlines and dividers
Muted text#9B914B
Captions on the surface
Accent#0550CB
Second voice, not a rival
Dark variant#7A6B06
Hover, pressed, headers
Light variant#FEFBE7
Selected rows, tints
Dark surface#242214
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #c7af09

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#0921C7
Analogous left#C75009
Analogous right#80C709
Split-complement 1#0980C7
Split-complement 2#5009C7
Triadic 1#09C7AF
Triadic 2#AF09C7
Tetradic#09C750

RGB percentages

Red78.0%
Green68.6%
Blue3.5%

CMYK percentages

Cyan0.0%
Magenta12.1%
Yellow95.5%
Key (black)22.0%

Color previews

#c7af09 text on a black background

contrast 9.56:1

Card sample

#c7af09 text on a white background

contrast 2.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #c7af09;
Background color
Panel with #c7af09 background
background-color: #c7af09;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #c7af09;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(199, 175, 9, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 175, 9, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7af09;
background: linear-gradient(135deg, #c7af09, #60C709);

Monochromatic scale

Palettes built from #c7af09

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#c7af09 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#c7af09, answered

What color is #c7af09?

#c7af09 is a dark electric yellow, closest to Goldenrod (ΔE2000 8.6). It sits at 52° on the hue wheel with 91% saturation and 41% lightness, which reads as warm.

What is the RGB value of #c7af09?

rgb(199, 175, 9) — 199 red, 175 green and 9 blue out of 255, or 78% / 68.6% / 3.5% by channel.

Is #c7af09 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4282 and perceived brightness is 68%, so black text on it reaches 9.56:1.

Should I use black or white text on #c7af09?

Black. It scores 9.56:1 against #c7af09, versus 2.20:1 for white — AAA at any size.

What is the complementary color of #c7af09?

#0921C7 sits directly opposite on the wheel. Softer options are the split-complements #0980C7 and #5009C7, which give the same contrast with far less vibration.

What colors go well with #c7af09?

For interface work: #FAFAF4 as the surface, #EDE7C0 for borders, #9B914B for secondary text, #0550CB as an accent and #7A6B06 for hover and pressed states. For a palette, the analogous pair #C75009 and #80C709 stays calm, while #0921C7 is the loudest partner.

What is #c7af09 in CMYK for printing?

cmyk(0%, 12%, 96%, 22%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #c7af09 warm or cool?

Warm — it scores 19 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C78009; nudged cooler, #9BC907.

Work with #c7af09 in the Color Lab