Skip to content

#c7af4d

a balanced, vivid yellow · warm · closest name: Dark Khaki

RGB
199, 175, 77
HSL
48°, 52%, 54%
CMYK
0, 12, 61, 22
Luminance
0.4334

At a glance

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

Hex
#c7af4d
Hue
48°
yellow
Saturation
52%
vivid
Lightness
54%
balanced
Brightness
78%
HSV value
Perceived
68%
weighted brightness
Luminance
0.4334
WCAG relative
Temperature
Warm
15/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
9.67:1
Closest name
Dark Khaki
ΔE2000 6.5
Where it sits
Hue48° of 360°
Saturation52%
Lightness54%
Temperature
Warm ← → Cool15% 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#c7af4d
RGBrgb(199, 175, 77)
HSLhsl(48, 52%, 54%)
CMYKcmyk(0%, 12%, 61%, 22%)
LABlab(71.8 -3.0 52.2)
LCHlch(71.8 52.3 93.3)
OKLCHoklch(0.756 0.121 95.6)
Decimal13086541
Display P3color(display-p3 0.780 0.686 0.302)

Copy-ready code

/* CSS */
color: #c7af4d;
background-color: #c7af4d;
/* Tailwind (arbitrary) */
class="text-[#c7af4d] bg-[#c7af4d]"
/* SCSS */
$brand: #c7af4d;
/* SwiftUI */
Color(red: 0.780, green: 0.686, blue: 0.302)
/* Android */
Color.parseColor("#c7af4d")
/* Flutter */
Color(0xFFC7AF4D)
/* Python / OpenCV (BGR) */
(77, 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 #c7af4d · 9.67:1
Use #000000AAA at every size.
Aa
White text · 2.17:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.67:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #c7af4d as text scores 2.17:1 on white and 9.67:1 on black.

Accessibility — WCAG contrast

Aa
#c7af4d on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#c7af4d on black: 9.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BFAB42
deuteranopia · #C6B352
tritanopia · #D6A39A

Color scale — 50 to 950

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

#FAF9F4
#F6F3E9
#EDE7CF
#E4D9AA
#D7C57F
#c7af4d
#BAA13B
#9B8631
#7C6B27
#5B4F20
#393114
Base = 500Lightest = 50 · #FAF9F4Darkest = 950 · #393114
:root {
  --brand-50: #FAF9F4;
  --brand-100: #F6F3E9;
  --brand-200: #EDE7CF;
  --brand-300: #E4D9AA;
  --brand-400: #D7C57F;
  --brand-500: #c7af4d;
  --brand-600: #BAA13B;
  --brand-700: #9B8631;
  --brand-800: #7C6B27;
  --brand-900: #5B4F20;
  --brand-950: #393114;
  --brand: #c7af4d;
  --brand-ink: #000000;
}

Colors that work with #c7af4d

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#FAF9F4
Tinted page background
Border#EBE3C1
Hairlines and dividers
Muted text#9B8B4B
Captions on the surface
Accent#4883CC
Second voice, not a rival
Dark variant#61541F
Hover, pressed, headers
Light variant#F9F6EC
Selected rows, tints
Dark surface#242114
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 #c7af4d

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
  • 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
  • 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#4D65C7
Analogous left#C7724D
Analogous right#A2C74D
Split-complement 1#4DA2C7
Split-complement 2#724DC7
Triadic 1#4DC7AF
Triadic 2#AF4DC7
Tetradic#4DC772

RGB percentages

Red78.0%
Green68.6%
Blue30.2%

CMYK percentages

Cyan0.0%
Magenta12.1%
Yellow61.3%
Key (black)22.0%

Color previews

#c7af4d text on a black background

contrast 9.67:1

Card sample

#c7af4d text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c7af4d

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.

#c7af4d 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

Converts to four-color process without much drama. Proof it anyway.

#c7af4d, answered

What color is #c7af4d?

#c7af4d is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 6.5). It sits at 48° on the hue wheel with 52% saturation and 54% lightness, which reads as warm.

What is the RGB value of #c7af4d?

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

Is #c7af4d a light or a dark color?

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

Should I use black or white text on #c7af4d?

Black. It scores 9.67:1 against #c7af4d, versus 2.17:1 for white — AAA at any size.

What is the complementary color of #c7af4d?

#4D65C7 sits directly opposite on the wheel. Softer options are the split-complements #4DA2C7 and #724DC7, which give the same contrast with far less vibration.

What colors go well with #c7af4d?

For interface work: #FAF9F4 as the surface, #EBE3C1 for borders, #9B8B4B for secondary text, #4883CC as an accent and #61541F for hover and pressed states. For a palette, the analogous pair #C7724D and #A2C74D stays calm, while #4D65C7 is the loudest partner.

What is #c7af4d in CMYK for printing?

cmyk(0%, 12%, 61%, 22%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #c7af4d warm or cool?

Warm — it scores 15 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C7914D; nudged cooler, #B4C94B.

Work with #c7af4d in the Color Lab