Skip to content

#afbc48

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

RGB
175, 188, 72
HSL
67°, 46%, 51%
CMYK
7, 0, 62, 26
Luminance
0.4555

At a glance

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

Hex
#afbc48
Hue
67°
yellow
Saturation
46%
vivid
Lightness
51%
balanced
Brightness
74%
HSV value
Perceived
68%
weighted brightness
Luminance
0.4555
WCAG relative
Temperature
Warm
31/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
10.11:1
Closest name
Dark Khaki
ΔE2000 7
Where it sits
Hue67° of 360°
Saturation46%
Lightness51%
Temperature
Warm ← → Cool31% 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#afbc48
RGBrgb(175, 188, 72)
HSLhsl(67, 46%, 51%)
CMYKcmyk(7%, 0%, 62%, 26%)
LABlab(73.3 -20.2 55.5)
LCHlch(73.3 59.0 110.0)
OKLCHoklch(0.762 0.140 115.2)
Decimal11517000
Display P3color(display-p3 0.686 0.737 0.282)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afbc48 on white: 2.08:1
AA ✗ fail · AA-large · AAA
Aa
#afbc48 on black: 10.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C9B33A
deuteranopia · #C8B550
tritanopia · #B9B2A4

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afbc48 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
#F4F5EA
#E8EBD0
#DBE1AD
#C9D284
#B7C35B
#afbc48
#8B9537
#6F772C
#515723
#333716
Base = 600Lightest = 50 · #FAFAF5Darkest = 950 · #333716
:root {
  --brand-50: #FAFAF5;
  --brand-100: #F4F5EA;
  --brand-200: #E8EBD0;
  --brand-300: #DBE1AD;
  --brand-400: #C9D284;
  --brand-500: #B7C35B;
  --brand-600: #afbc48;
  --brand-700: #8B9537;
  --brand-800: #6F772C;
  --brand-900: #515723;
  --brand-950: #333716;
  --brand: #afbc48;
  --brand-ink: #000000;
}

Colors that work with #afbc48

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#E5E9C3
Hairlines and dividers
Muted text#929B4B
Captions on the surface
Accent#4354C1
Second voice, not a rival
Dark variant#575D22
Hover, pressed, headers
Light variant#F7F8EC
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 #afbc48

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • 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#5548BC
Analogous left#BC8F48
Analogous right#75BC48
Split-complement 1#4875BC
Split-complement 2#8F48BC
Triadic 1#48AFBC
Triadic 2#BC48AF
Tetradic#48BC8F

RGB percentages

Red68.6%
Green73.7%
Blue28.2%

CMYK percentages

Cyan6.9%
Magenta0.0%
Yellow61.7%
Key (black)26.3%

Color previews

#afbc48 text on a black background

contrast 10.11:1

Card sample

#afbc48 text on a white background

contrast 2.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 188, 72, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 188, 72, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afbc48;
background: linear-gradient(135deg, #afbc48, #62BC48);

Monochromatic scale

Palettes built from #afbc48

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.

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

#afbc48, answered

What color is #afbc48?

#afbc48 is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 7). It sits at 67° on the hue wheel with 46% saturation and 51% lightness, which reads as warm.

What is the RGB value of #afbc48?

rgb(175, 188, 72) — 175 red, 188 green and 72 blue out of 255, or 68.6% / 73.7% / 28.2% by channel.

Is #afbc48 a light or a dark color?

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

Should I use black or white text on #afbc48?

Black. It scores 10.11:1 against #afbc48, versus 2.08:1 for white — AAA at any size.

What is the complementary color of #afbc48?

#5548BC sits directly opposite on the wheel. Softer options are the split-complements #4875BC and #8F48BC, which give the same contrast with far less vibration.

What colors go well with #afbc48?

For interface work: #FAFAF4 as the surface, #E5E9C3 for borders, #929B4B for secondary text, #4354C1 as an accent and #575D22 for hover and pressed states. For a palette, the analogous pair #BC8F48 and #75BC48 stays calm, while #5548BC is the loudest partner.

What is #afbc48 in CMYK for printing?

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

Is #afbc48 warm or cool?

Warm — it scores 31 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BC9E48; nudged cooler, #85BF46.

Work with #afbc48 in the Color Lab