Skip to content

#afad46

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

RGB
175, 173, 70
HSL
59°, 43%, 48%
CMYK
0, 1, 60, 31
Luminance
0.3944

At a glance

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

Hex
#afad46
Hue
59°
yellow
Saturation
43%
soft
Lightness
48%
balanced
Brightness
69%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3944
WCAG relative
Temperature
Warm
24/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
8.89:1
Closest name
Dark Khaki
ΔE2000 5.4
Where it sits
Hue59° of 360°
Saturation43%
Lightness48%
Temperature
Warm ← → Cool24% 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#afad46
RGBrgb(175, 173, 70)
HSLhsl(59, 43%, 48%)
CMYKcmyk(0%, 1%, 60%, 31%)
LABlab(69.1 -12.7 51.8)
LCHlch(69.1 53.3 103.8)
OKLCHoklch(0.729 0.125 108.1)
Decimal11513158
Display P3color(display-p3 0.686 0.678 0.275)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afad46 on white: 2.36:1
AA ✗ fail · AA-large · AAA
Aa
#afad46 on black: 8.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BAA63A
deuteranopia · #BCAA4C
tritanopia · #BBA397

Color scale — 50 to 950

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

#FAFAF5
#F5F5EB
#EAEAD1
#DFDEAF
#CFCE87
#BFBD5F
#afad46
#92903A
#75732F
#555425
#353517
Base = 600Lightest = 50 · #FAFAF5Darkest = 950 · #353517
:root {
  --brand-50: #FAFAF5;
  --brand-100: #F5F5EB;
  --brand-200: #EAEAD1;
  --brand-300: #DFDEAF;
  --brand-400: #CFCE87;
  --brand-500: #BFBD5F;
  --brand-600: #afad46;
  --brand-700: #92903A;
  --brand-800: #75732F;
  --brand-900: #555425;
  --brand-950: #353517;
  --brand: #afad46;
  --brand-ink: #000000;
}

Colors that work with #afad46

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#E8E7C5
Hairlines and dividers
Muted text#9B994B
Captions on the surface
Accent#4160B4
Second voice, not a rival
Dark variant#5B5A24
Hover, pressed, headers
Light variant#F8F8ED
Selected rows, tints
Dark surface#242414
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 #afad46

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#4648AF
Analogous left#AF7846
Analogous right#7CAF46
Split-complement 1#467CAF
Split-complement 2#7846AF
Triadic 1#46AFAD
Triadic 2#AD46AF
Tetradic#46AF78

RGB percentages

Red68.6%
Green67.8%
Blue27.5%

CMYK percentages

Cyan0.0%
Magenta1.1%
Yellow60.0%
Key (black)31.4%

Color previews

#afad46 text on a black background

contrast 8.89:1

Card sample

#afad46 text on a white background

contrast 2.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 173, 70, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 173, 70, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afad46;
background: linear-gradient(135deg, #afad46, #6BAF46);

Monochromatic scale

Palettes built from #afad46

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.

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

#afad46, answered

What color is #afad46?

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

What is the RGB value of #afad46?

rgb(175, 173, 70) — 175 red, 173 green and 70 blue out of 255, or 68.6% / 67.8% / 27.5% by channel.

Is #afad46 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3944 and perceived brightness is 65%, so black text on it reaches 8.89:1.

Should I use black or white text on #afad46?

Black. It scores 8.89:1 against #afad46, versus 2.36:1 for white — AAA at any size.

What is the complementary color of #afad46?

#4648AF sits directly opposite on the wheel. Softer options are the split-complements #467CAF and #7846AF, which give the same contrast with far less vibration.

What colors go well with #afad46?

For interface work: #FAFAF4 as the surface, #E8E7C5 for borders, #9B994B for secondary text, #4160B4 as an accent and #5B5A24 for hover and pressed states. For a palette, the analogous pair #AF7846 and #7CAF46 stays calm, while #4648AF is the loudest partner.

What is #afad46 in CMYK for printing?

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

Is #afad46 warm or cool?

Warm — it scores 24 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF8646; nudged cooler, #8BB143.

Work with #afad46 in the Color Lab