Skip to content

#c6af5d

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

RGB
198, 175, 93
HSL
47°, 48%, 57%
CMYK
0, 12, 53, 22
Luminance
0.4346

At a glance

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

Hex
#c6af5d
Hue
47°
yellow
Saturation
48%
vivid
Lightness
57%
balanced
Brightness
78%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4346
WCAG relative
Temperature
Warm
14/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
9.69:1
Closest name
Dark Khaki
ΔE2000 5.4
Where it sits
Hue47° of 360°
Saturation48%
Lightness57%
Temperature
Warm ← → Cool14% 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#c6af5d
RGBrgb(198, 175, 93)
HSLhsl(47, 48%, 57%)
CMYKcmyk(0%, 12%, 53%, 22%)
LABlab(71.9 -2.2 44.6)
LCHlch(71.9 44.7 92.8)
OKLCHoklch(0.757 0.106 94.0)
Decimal13021021
Display P3color(display-p3 0.776 0.686 0.365)

Copy-ready code

/* CSS */
color: #c6af5d;
background-color: #c6af5d;
/* Tailwind (arbitrary) */
class="text-[#c6af5d] bg-[#c6af5d]"
/* SCSS */
$brand: #c6af5d;
/* SwiftUI */
Color(red: 0.776, green: 0.686, blue: 0.365)
/* Android */
Color.parseColor("#c6af5d")
/* Flutter */
Color(0xFFC6AF5D)
/* Python / OpenCV (BGR) */
(93, 175, 198)

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 #c6af5d · 9.69:1
Use #000000AAA at every size.
Aa
White text · 2.17:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.69:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #c6af5d as text scores 2.17:1 on white and 9.69:1 on black.

Accessibility — WCAG contrast

Aa
#c6af5d on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#c6af5d on black: 9.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BEAC56
deuteranopia · #C4B360
tritanopia · #D4A49C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c6af5d 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
#F5F3EA
#ECE6D0
#E2D6AC
#D3C283
#c6af5d
#B59B40
#978235
#79682B
#584C22
#373015
Base = 500Lightest = 50 · #FAF9F4Darkest = 950 · #373015
:root {
  --brand-50: #FAF9F4;
  --brand-100: #F5F3EA;
  --brand-200: #ECE6D0;
  --brand-300: #E2D6AC;
  --brand-400: #D3C283;
  --brand-500: #c6af5d;
  --brand-600: #B59B40;
  --brand-700: #978235;
  --brand-800: #79682B;
  --brand-900: #584C22;
  --brand-950: #373015;
  --brand: #c6af5d;
  --brand-ink: #000000;
}

Colors that work with #c6af5d

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#EAE1C3
Hairlines and dividers
Muted text#9B894B
Captions on the surface
Accent#598ECA
Second voice, not a rival
Dark variant#5E5121
Hover, pressed, headers
Light variant#F8F6EC
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 #c6af5d

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#5D74C6
Analogous left#C67B5D
Analogous right#A8C65D
Split-complement 1#5DA8C6
Split-complement 2#7B5DC6
Triadic 1#5DC6AF
Triadic 2#AF5DC6
Tetradic#5DC67B

RGB percentages

Red77.6%
Green68.6%
Blue36.5%

CMYK percentages

Cyan0.0%
Magenta11.6%
Yellow53.0%
Key (black)22.4%

Color previews

#c6af5d text on a black background

contrast 9.69:1

Card sample

#c6af5d text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(198, 175, 93, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(198, 175, 93, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c6af5d;
background: linear-gradient(135deg, #c6af5d, #97C65D);

Monochromatic scale

Palettes built from #c6af5d

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.

#c6af5d 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.

#c6af5d, answered

What color is #c6af5d?

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

What is the RGB value of #c6af5d?

rgb(198, 175, 93) — 198 red, 175 green and 93 blue out of 255, or 77.6% / 68.6% / 36.5% by channel.

Is #c6af5d a light or a dark color?

It is a mid-tone. Relative luminance is 0.4346 and perceived brightness is 69%, so black text on it reaches 9.69:1.

Should I use black or white text on #c6af5d?

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

What is the complementary color of #c6af5d?

#5D74C6 sits directly opposite on the wheel. Softer options are the split-complements #5DA8C6 and #7B5DC6, which give the same contrast with far less vibration.

What colors go well with #c6af5d?

For interface work: #FAF9F4 as the surface, #EAE1C3 for borders, #9B894B for secondary text, #598ECA as an accent and #5E5121 for hover and pressed states. For a palette, the analogous pair #C67B5D and #A8C65D stays calm, while #5D74C6 is the loudest partner.

What is #c6af5d in CMYK for printing?

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

Is #c6af5d warm or cool?

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

Work with #c6af5d in the Color Lab