Skip to content

#af9f4b

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

RGB
175, 159, 75
HSL
50°, 40%, 49%
CMYK
0, 9, 57, 31
Luminance
0.3442

At a glance

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

Hex
#af9f4b
Hue
50°
yellow
Saturation
40%
soft
Lightness
49%
balanced
Brightness
69%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3442
WCAG relative
Temperature
Warm
17/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
7.88:1
Closest name
Dark Khaki
ΔE2000 7.3
Where it sits
Hue50° of 360°
Saturation40%
Lightness49%
Temperature
Warm ← → Cool17% 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#af9f4b
RGBrgb(175, 159, 75)
HSLhsl(50, 40%, 49%)
CMYKcmyk(0%, 9%, 57%, 31%)
LABlab(65.3 -5.0 45.2)
LCHlch(65.3 45.5 96.2)
OKLCHoklch(0.699 0.107 98.7)
Decimal11509579
Display P3color(display-p3 0.686 0.624 0.294)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af9f4b on white: 2.66:1
AA ✗ fail · AA-large · AAA
Aa
#af9f4b on black: 7.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #AD9B43
deuteranopia · #B1A14F
tritanopia · #BB958C

Color scale — 50 to 950

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

#FAF9F5
#F4F3EB
#EAE6D2
#DDD6B0
#CDC289
#BCAD62
#af9f4b
#8F823D
#726831
#544D27
#343018
Base = 600Lightest = 50 · #FAF9F5Darkest = 950 · #343018
:root {
  --brand-50: #FAF9F5;
  --brand-100: #F4F3EB;
  --brand-200: #EAE6D2;
  --brand-300: #DDD6B0;
  --brand-400: #CDC289;
  --brand-500: #BCAD62;
  --brand-600: #af9f4b;
  --brand-700: #8F823D;
  --brand-800: #726831;
  --brand-900: #544D27;
  --brand-950: #343018;
  --brand: #af9f4b;
  --brand-ink: #000000;
}

Colors that work with #af9f4b

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#E7E1C6
Hairlines and dividers
Muted text#9B8E4B
Captions on the surface
Accent#4673B4
Second voice, not a rival
Dark variant#595126
Hover, pressed, headers
Light variant#F7F6ED
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 #af9f4b

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#4B5BAF
Analogous left#AF6D4B
Analogous right#8DAF4B
Split-complement 1#4B8DAF
Split-complement 2#6D4BAF
Triadic 1#4BAF9F
Triadic 2#9F4BAF
Tetradic#4BAF6D

RGB percentages

Red68.6%
Green62.4%
Blue29.4%

CMYK percentages

Cyan0.0%
Magenta9.1%
Yellow57.1%
Key (black)31.4%

Color previews

#af9f4b text on a black background

contrast 7.88:1

Card sample

#af9f4b text on a white background

contrast 2.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 159, 75, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 159, 75, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af9f4b;
background: linear-gradient(135deg, #af9f4b, #7CAF4B);

Monochromatic scale

Palettes built from #af9f4b

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.

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

#af9f4b, answered

What color is #af9f4b?

#af9f4b is a balanced soft yellow, closest to Dark Khaki (ΔE2000 7.3). It sits at 50° on the hue wheel with 40% saturation and 49% lightness, which reads as warm.

What is the RGB value of #af9f4b?

rgb(175, 159, 75) — 175 red, 159 green and 75 blue out of 255, or 68.6% / 62.4% / 29.4% by channel.

Is #af9f4b a light or a dark color?

It is a mid-tone. Relative luminance is 0.3442 and perceived brightness is 62%, so black text on it reaches 7.88:1.

Should I use black or white text on #af9f4b?

Black. It scores 7.88:1 against #af9f4b, versus 2.66:1 for white — AAA at any size.

What is the complementary color of #af9f4b?

#4B5BAF sits directly opposite on the wheel. Softer options are the split-complements #4B8DAF and #6D4BAF, which give the same contrast with far less vibration.

What colors go well with #af9f4b?

For interface work: #FAF9F4 as the surface, #E7E1C6 for borders, #9B8E4B for secondary text, #4673B4 as an accent and #595126 for hover and pressed states. For a palette, the analogous pair #AF6D4B and #8DAF4B stays calm, while #4B5BAF is the loudest partner.

What is #af9f4b in CMYK for printing?

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

Is #af9f4b warm or cool?

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

Work with #af9f4b in the Color Lab