Skip to content

#afb650

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

RGB
175, 182, 80
HSL
64°, 41%, 51%
CMYK
4, 0, 56, 29
Luminance
0.4315

At a glance

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

Hex
#afb650
Hue
64°
yellow
Saturation
41%
soft
Lightness
51%
balanced
Brightness
71%
HSV value
Perceived
67%
weighted brightness
Luminance
0.4315
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
9.63:1
Closest name
Dark Khaki
ΔE2000 5.2
Where it sits
Hue64° of 360°
Saturation41%
Lightness51%
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#afb650
RGBrgb(175, 182, 80)
HSLhsl(64, 41%, 51%)
CMYKcmyk(4%, 0%, 56%, 29%)
LABlab(71.7 -16.6 50.1)
LCHlch(71.7 52.8 108.3)
OKLCHoklch(0.750 0.126 112.7)
Decimal11515472
Display P3color(display-p3 0.686 0.714 0.314)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb650 on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#afb650 on black: 9.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C2AE45
deuteranopia · #C2B156
tritanopia · #B9ACA0

Color scale — 50 to 950

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

#F9FAF5
#F4F5EB
#E8EAD2
#DBDEB0
#C9CD88
#B7BD61
#afb650
#8A903C
#6F7330
#515426
#333518
Base = 600Lightest = 50 · #F9FAF5Darkest = 950 · #333518
:root {
  --brand-50: #F9FAF5;
  --brand-100: #F4F5EB;
  --brand-200: #E8EAD2;
  --brand-300: #DBDEB0;
  --brand-400: #C9CD88;
  --brand-500: #B7BD61;
  --brand-600: #afb650;
  --brand-700: #8A903C;
  --brand-800: #6F7330;
  --brand-900: #515426;
  --brand-950: #333518;
  --brand: #afb650;
  --brand-ink: #000000;
}

Colors that work with #afb650

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#E5E7C5
Hairlines and dividers
Muted text#959B4B
Captions on the surface
Accent#4B5FBB
Second voice, not a rival
Dark variant#565A26
Hover, pressed, headers
Light variant#F7F7ED
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 #afb650

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#5750B6
Analogous left#B68A50
Analogous right#7CB650
Split-complement 1#507CB6
Split-complement 2#8A50B6
Triadic 1#50AFB6
Triadic 2#B650AF
Tetradic#50B68A

RGB percentages

Red68.6%
Green71.4%
Blue31.4%

CMYK percentages

Cyan3.8%
Magenta0.0%
Yellow56.0%
Key (black)28.6%

Color previews

#afb650 text on a black background

contrast 9.63:1

Card sample

#afb650 text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb650

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.

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

#afb650, answered

What color is #afb650?

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

What is the RGB value of #afb650?

rgb(175, 182, 80) — 175 red, 182 green and 80 blue out of 255, or 68.6% / 71.4% / 31.4% by channel.

Is #afb650 a light or a dark color?

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

Should I use black or white text on #afb650?

Black. It scores 9.63:1 against #afb650, versus 2.18:1 for white — AAA at any size.

What is the complementary color of #afb650?

#5750B6 sits directly opposite on the wheel. Softer options are the split-complements #507CB6 and #8A50B6, which give the same contrast with far less vibration.

What colors go well with #afb650?

For interface work: #FAFAF4 as the surface, #E5E7C5 for borders, #959B4B for secondary text, #4B5FBB as an accent and #565A26 for hover and pressed states. For a palette, the analogous pair #B68A50 and #7CB650 stays calm, while #5750B6 is the loudest partner.

What is #afb650 in CMYK for printing?

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

Is #afb650 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 #B69850; nudged cooler, #8AB84E.

Work with #afb650 in the Color Lab