Skip to content

#afab53

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

RGB
175, 171, 83
HSL
57°, 37%, 51%
CMYK
0, 2, 53, 31
Luminance
0.3886

At a glance

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

Hex
#afab53
Hue
57°
yellow
Saturation
37%
soft
Lightness
51%
balanced
Brightness
69%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3886
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
8.77:1
Closest name
Dark Khaki
ΔE2000 4.2
Where it sits
Hue57° of 360°
Saturation37%
Lightness51%
Temperature
Warm ← → Cool23% 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#afab53
RGBrgb(175, 171, 83)
HSLhsl(57, 37%, 51%)
CMYKcmyk(0%, 2%, 53%, 31%)
LABlab(68.7 -10.6 45.2)
LCHlch(68.7 46.5 103.2)
OKLCHoklch(0.726 0.111 106.5)
Decimal11512659
Display P3color(display-p3 0.686 0.671 0.325)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afab53 on white: 2.39:1
AA ✗ fail · AA-large · AAA
Aa
#afab53 on black: 8.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B7A54B
deuteranopia · #BAA957
tritanopia · #BAA197

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afab53 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
#F4F4EB
#E8E8D3
#DBDAB2
#CAC78C
#B8B466
#afab53
#8B8841
#6F6D34
#525029
#333219
Base = 600Lightest = 50 · #FAF9F5Darkest = 950 · #333219
:root {
  --brand-50: #FAF9F5;
  --brand-100: #F4F4EB;
  --brand-200: #E8E8D3;
  --brand-300: #DBDAB2;
  --brand-400: #CAC78C;
  --brand-500: #B8B466;
  --brand-600: #afab53;
  --brand-700: #8B8841;
  --brand-800: #6F6D34;
  --brand-900: #525029;
  --brand-950: #333219;
  --brand: #afab53;
  --brand-ink: #000000;
}

Colors that work with #afab53

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#FAFAF5
Tinted page background
Border#E5E4C7
Hairlines and dividers
Muted text#9B974B
Captions on the surface
Accent#4E6CB4
Second voice, not a rival
Dark variant#575528
Hover, pressed, headers
Light variant#F7F7EE
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 #afab53

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#5357AF
Analogous left#AF7D53
Analogous right#85AF53
Split-complement 1#5385AF
Split-complement 2#7D53AF
Triadic 1#53AFAB
Triadic 2#AB53AF
Tetradic#53AF7D

RGB percentages

Red68.6%
Green67.1%
Blue32.5%

CMYK percentages

Cyan0.0%
Magenta2.3%
Yellow52.6%
Key (black)31.4%

Color previews

#afab53 text on a black background

contrast 8.77:1

Card sample

#afab53 text on a white background

contrast 2.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 171, 83, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 171, 83, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afab53;
background: linear-gradient(135deg, #afab53, #76AF53);

Monochromatic scale

Palettes built from #afab53

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.

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

#afab53, answered

What color is #afab53?

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

What is the RGB value of #afab53?

rgb(175, 171, 83) — 175 red, 171 green and 83 blue out of 255, or 68.6% / 67.1% / 32.5% by channel.

Is #afab53 a light or a dark color?

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

Should I use black or white text on #afab53?

Black. It scores 8.77:1 against #afab53, versus 2.39:1 for white — AAA at any size.

What is the complementary color of #afab53?

#5357AF sits directly opposite on the wheel. Softer options are the split-complements #5385AF and #7D53AF, which give the same contrast with far less vibration.

What colors go well with #afab53?

For interface work: #FAFAF5 as the surface, #E5E4C7 for borders, #9B974B for secondary text, #4E6CB4 as an accent and #575528 for hover and pressed states. For a palette, the analogous pair #AF7D53 and #85AF53 stays calm, while #5357AF is the loudest partner.

What is #afab53 in CMYK for printing?

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

Is #afab53 warm or cool?

Warm — it scores 23 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF8953; nudged cooler, #92B251.

Work with #afab53 in the Color Lab