Skip to content

#afb188

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

RGB
175, 177, 136
HSL
63°, 21%, 61%
CMYK
1, 0, 23, 31
Luminance
0.4234

At a glance

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

Hex
#afb188
Hue
63°
yellow
Saturation
21%
soft
Lightness
61%
balanced
Brightness
69%
HSV value
Perceived
68%
weighted brightness
Luminance
0.4234
WCAG relative
Temperature
Warm
37/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
9.47:1
Closest name
Dark Khaki
ΔE2000 8.2
Where it sits
Hue63° of 360°
Saturation21%
Lightness61%
Temperature
Warm ← → Cool37% 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#afb188
RGBrgb(175, 177, 136)
HSLhsl(63, 21%, 61%)
CMYKcmyk(1%, 0%, 23%, 31%)
LABlab(71.1 -7.6 20.8)
LCHlch(71.1 22.1 110.1)
OKLCHoklch(0.748 0.056 110.0)
Decimal11514248
Display P3color(display-p3 0.686 0.694 0.533)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb188 on white: 2.22:1
AA ✗ fail · AA-large · AAA
Aa
#afb188 on black: 9.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B8AD85
deuteranopia · #B8AF8A
tritanopia · #B5ACA6

Color scale — 50 to 950

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

#F8F9F6
#F2F2ED
#E3E4D8
#D1D3BB
#BBBC99
#afb188
#919461
#797B51
#616341
#484931
#2D2E1F
Base = 500Lightest = 50 · #F8F9F6Darkest = 950 · #2D2E1F
:root {
  --brand-50: #F8F9F6;
  --brand-100: #F2F2ED;
  --brand-200: #E3E4D8;
  --brand-300: #D1D3BB;
  --brand-400: #BBBC99;
  --brand-500: #afb188;
  --brand-600: #919461;
  --brand-700: #797B51;
  --brand-800: #616341;
  --brand-900: #484931;
  --brand-950: #2D2E1F;
  --brand: #afb188;
  --brand-ink: #000000;
}

Colors that work with #afb188

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#F9F9F6
Tinted page background
Border#DEDFCE
Hairlines and dividers
Muted text#888B5B
Captions on the surface
Accent#848EB5
Second voice, not a rival
Dark variant#4C4D32
Hover, pressed, headers
Light variant#F5F5F0
Selected rows, tints
Dark surface#212216
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 #afb188

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#8A88B1
Analogous left#B19F88
Analogous right#9BB188
Split-complement 1#889BB1
Split-complement 2#9F88B1
Triadic 1#88AFB1
Triadic 2#B188AF
Tetradic#88B19F

RGB percentages

Red68.6%
Green69.4%
Blue53.3%

CMYK percentages

Cyan1.1%
Magenta0.0%
Yellow23.2%
Key (black)30.6%

Color previews

#afb188 text on a black background

contrast 9.47:1

Card sample

#afb188 text on a white background

contrast 2.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 177, 136, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 177, 136, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb188;
background: linear-gradient(135deg, #afb188, #94B188);

Monochromatic scale

Palettes built from #afb188

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.

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

#afb188, answered

What color is #afb188?

#afb188 is a balanced soft yellow, closest to Dark Khaki (ΔE2000 8.2). It sits at 63° on the hue wheel with 21% saturation and 61% lightness, which reads as warm.

What is the RGB value of #afb188?

rgb(175, 177, 136) — 175 red, 177 green and 136 blue out of 255, or 68.6% / 69.4% / 53.3% by channel.

Is #afb188 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4234 and perceived brightness is 68%, so black text on it reaches 9.47:1.

Should I use black or white text on #afb188?

Black. It scores 9.47:1 against #afb188, versus 2.22:1 for white — AAA at any size.

What is the complementary color of #afb188?

#8A88B1 sits directly opposite on the wheel. Softer options are the split-complements #889BB1 and #9F88B1, which give the same contrast with far less vibration.

What colors go well with #afb188?

For interface work: #F9F9F6 as the surface, #DEDFCE for borders, #888B5B for secondary text, #848EB5 as an accent and #4C4D32 for hover and pressed states. For a palette, the analogous pair #B19F88 and #9BB188 stays calm, while #8A88B1 is the loudest partner.

What is #afb188 in CMYK for printing?

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

Is #afb188 warm or cool?

Warm — it scores 37 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B1A488; nudged cooler, #A0B386.

Work with #afb188 in the Color Lab