Skip to content

#afb55f

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

RGB
175, 181, 95
HSL
64°, 37%, 54%
CMYK
3, 0, 48, 29
Luminance
0.4299

At a glance

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

Hex
#afb55f
Hue
64°
yellow
Saturation
37%
soft
Lightness
54%
balanced
Brightness
71%
HSV value
Perceived
67%
weighted brightness
Luminance
0.4299
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
9.60:1
Closest name
Dark Khaki
ΔE2000 3.8
Where it sits
Hue64° of 360°
Saturation37%
Lightness54%
Temperature
Warm ← → Cool28% 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#afb55f
RGBrgb(175, 181, 95)
HSLhsl(64, 37%, 54%)
CMYKcmyk(3%, 0%, 48%, 29%)
LABlab(71.5 -14.7 42.8)
LCHlch(71.5 45.3 109.0)
OKLCHoklch(0.750 0.110 112.3)
Decimal11515231
Display P3color(display-p3 0.686 0.710 0.373)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb55f on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#afb55f on black: 9.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C0AE58
deuteranopia · #C0B063
tritanopia · #B9ACA1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afb55f 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
#E7E9D3
#D9DCB2
#C5CA8C
#afb55f
#A1A74D
#868C40
#6B7034
#4F5228
#313319
Base = 500Lightest = 50 · #F9FAF5Darkest = 950 · #313319
:root {
  --brand-50: #F9FAF5;
  --brand-100: #F3F4EB;
  --brand-200: #E7E9D3;
  --brand-300: #D9DCB2;
  --brand-400: #C5CA8C;
  --brand-500: #afb55f;
  --brand-600: #A1A74D;
  --brand-700: #868C40;
  --brand-800: #6B7034;
  --brand-900: #4F5228;
  --brand-950: #313319;
  --brand: #afb55f;
  --brand-ink: #000000;
}

Colors that work with #afb55f

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#FAFAF5
Tinted page background
Border#E3E5C7
Hairlines and dividers
Muted text#959B4B
Captions on the surface
Accent#5A6BBA
Second voice, not a rival
Dark variant#545728
Hover, pressed, headers
Light variant#F6F7EE
Selected rows, tints
Dark surface#232414
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 #afb55f

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#655FB5
Analogous left#B5905F
Analogous right#84B55F
Split-complement 1#5F84B5
Split-complement 2#905FB5
Triadic 1#5FAFB5
Triadic 2#B55FAF
Tetradic#5FB590

RGB percentages

Red68.6%
Green71.0%
Blue37.3%

CMYK percentages

Cyan3.3%
Magenta0.0%
Yellow47.5%
Key (black)29.0%

Color previews

#afb55f text on a black background

contrast 9.60:1

Card sample

#afb55f text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb55f

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.

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

#afb55f, answered

What color is #afb55f?

#afb55f is a balanced soft yellow, closest to Dark Khaki (ΔE2000 3.8). It sits at 64° on the hue wheel with 37% saturation and 54% lightness, which reads as warm.

What is the RGB value of #afb55f?

rgb(175, 181, 95) — 175 red, 181 green and 95 blue out of 255, or 68.6% / 71% / 37.3% by channel.

Is #afb55f a light or a dark color?

It is a mid-tone. Relative luminance is 0.4299 and perceived brightness is 67%, so black text on it reaches 9.60:1.

Should I use black or white text on #afb55f?

Black. It scores 9.60:1 against #afb55f, versus 2.19:1 for white — AAA at any size.

What is the complementary color of #afb55f?

#655FB5 sits directly opposite on the wheel. Softer options are the split-complements #5F84B5 and #905FB5, which give the same contrast with far less vibration.

What colors go well with #afb55f?

For interface work: #FAFAF5 as the surface, #E3E5C7 for borders, #959B4B for secondary text, #5A6BBA as an accent and #545728 for hover and pressed states. For a palette, the analogous pair #B5905F and #84B55F stays calm, while #655FB5 is the loudest partner.

What is #afb55f in CMYK for printing?

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

Is #afb55f warm or cool?

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

Work with #afb55f in the Color Lab