Skip to content

#afba64

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

RGB
175, 186, 100
HSL
68°, 38%, 56%
CMYK
6, 0, 46, 27
Luminance
0.4515

At a glance

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

Hex
#afba64
Hue
68°
yellow
Saturation
38%
soft
Lightness
56%
balanced
Brightness
73%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4515
WCAG relative
Temperature
Warm
31/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
10.03:1
Closest name
Dark Khaki
ΔE2000 4.8
Where it sits
Hue68° of 360°
Saturation38%
Lightness56%
Temperature
Warm ← → Cool31% 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#afba64
RGBrgb(175, 186, 100)
HSLhsl(68, 38%, 56%)
CMYKcmyk(6%, 0%, 46%, 27%)
LABlab(73.0 -16.7 42.1)
LCHlch(73.0 45.3 111.7)
OKLCHoklch(0.761 0.111 115.1)
Decimal11516516
Display P3color(display-p3 0.686 0.729 0.392)

Copy-ready code

/* CSS */
color: #afba64;
background-color: #afba64;
/* Tailwind (arbitrary) */
class="text-[#afba64] bg-[#afba64]"
/* SCSS */
$brand: #afba64;
/* SwiftUI */
Color(red: 0.686, green: 0.729, blue: 0.392)
/* Android */
Color.parseColor("#afba64")
/* Flutter */
Color(0xFFAFBA64)
/* Python / OpenCV (BGR) */
(100, 186, 175)

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

Accessibility — WCAG contrast

Aa
#afba64 on white: 2.09:1
AA ✗ fail · AA-large · AAA
Aa
#afba64 on black: 10.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C5B25D
deuteranopia · #C4B468
tritanopia · #B8B1A6

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afba64 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.

#F9FAF5
#F3F4EB
#E6E9D3
#D7DCB1
#C3CB8B
#afba64
#9DA94B
#838D3F
#697132
#4D5328
#303419
Base = 500Lightest = 50 · #F9FAF5Darkest = 950 · #303419
:root {
  --brand-50: #F9FAF5;
  --brand-100: #F3F4EB;
  --brand-200: #E6E9D3;
  --brand-300: #D7DCB1;
  --brand-400: #C3CB8B;
  --brand-500: #afba64;
  --brand-600: #9DA94B;
  --brand-700: #838D3F;
  --brand-800: #697132;
  --brand-900: #4D5328;
  --brand-950: #303419;
  --brand: #afba64;
  --brand-ink: #000000;
}

Colors that work with #afba64

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#E2E6C7
Hairlines and dividers
Muted text#919B4B
Captions on the surface
Accent#606BBF
Second voice, not a rival
Dark variant#525827
Hover, pressed, headers
Light variant#F6F7ED
Selected rows, tints
Dark surface#222414
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 #afba64

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

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • 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#6F64BA
Analogous left#BA9A64
Analogous right#84BA64
Split-complement 1#6484BA
Split-complement 2#9A64BA
Triadic 1#64AFBA
Triadic 2#BA64AF
Tetradic#64BA9A

RGB percentages

Red68.6%
Green72.9%
Blue39.2%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow46.2%
Key (black)27.1%

Color previews

#afba64 text on a black background

contrast 10.03:1

Card sample

#afba64 text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 186, 100, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 186, 100, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afba64;
background: linear-gradient(135deg, #afba64, #76BA64);

Monochromatic scale

Palettes built from #afba64

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.

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

#afba64, answered

What color is #afba64?

#afba64 is a balanced soft yellow, closest to Dark Khaki (ΔE2000 4.8). It sits at 68° on the hue wheel with 38% saturation and 56% lightness, which reads as warm.

What is the RGB value of #afba64?

rgb(175, 186, 100) — 175 red, 186 green and 100 blue out of 255, or 68.6% / 72.9% / 39.2% by channel.

Is #afba64 a light or a dark color?

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

Should I use black or white text on #afba64?

Black. It scores 10.03:1 against #afba64, versus 2.09:1 for white — AAA at any size.

What is the complementary color of #afba64?

#6F64BA sits directly opposite on the wheel. Softer options are the split-complements #6484BA and #9A64BA, which give the same contrast with far less vibration.

What colors go well with #afba64?

For interface work: #FAFAF4 as the surface, #E2E6C7 for borders, #919B4B for secondary text, #606BBF as an accent and #525827 for hover and pressed states. For a palette, the analogous pair #BA9A64 and #84BA64 stays calm, while #6F64BA is the loudest partner.

What is #afba64 in CMYK for printing?

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

Is #afba64 warm or cool?

Warm — it scores 31 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BAA664; nudged cooler, #90BC62.

Work with #afba64 in the Color Lab