Skip to content

#bab83f

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

RGB
186, 184, 63
HSL
59°, 49%, 49%
CMYK
0, 1, 66, 27
Luminance
0.4508

At a glance

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

Hex
#bab83f
Hue
59°
yellow
Saturation
49%
vivid
Lightness
49%
balanced
Brightness
73%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4508
WCAG relative
Temperature
Warm
24/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
10.02:1
Closest name
Dark Khaki
ΔE2000 6.3
Where it sits
Hue59° of 360°
Saturation49%
Lightness49%
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#bab83f
RGBrgb(186, 184, 63)
HSLhsl(59, 49%, 49%)
CMYKcmyk(0%, 1%, 66%, 27%)
LABlab(72.9 -14.1 59.1)
LCHlch(72.9 60.8 103.4)
OKLCHoklch(0.762 0.140 108.4)
Decimal12236863
Display P3color(display-p3 0.729 0.722 0.247)

Copy-ready code

/* CSS */
color: #bab83f;
background-color: #bab83f;
/* Tailwind (arbitrary) */
class="text-[#bab83f] bg-[#bab83f]"
/* SCSS */
$brand: #bab83f;
/* SwiftUI */
Color(red: 0.729, green: 0.722, blue: 0.247)
/* Android */
Color.parseColor("#bab83f")
/* Flutter */
Color(0xFFBAB83F)
/* Python / OpenCV (BGR) */
(63, 184, 186)

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 #bab83f · 10.02:1
Use #000000AAA at every size.
Aa
White text · 2.10:1
AA fail · AA large fail · AAA fail
Aa
Black text · 10.02:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #bab83f as text scores 2.10:1 on white and 10.02:1 on black.

Accessibility — WCAG contrast

Aa
#bab83f on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#bab83f on black: 10.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C7B12E
deuteranopia · #C9B547
tritanopia · #C7AC9F

Color scale — 50 to 950

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

#FAFAF4
#F6F5EA
#ECECCF
#E3E2AB
#D4D381
#C6C457
#bab83f
#989734
#7A7929
#595821
#383715
Base = 600Lightest = 50 · #FAFAF4Darkest = 950 · #383715
:root {
  --brand-50: #FAFAF4;
  --brand-100: #F6F5EA;
  --brand-200: #ECECCF;
  --brand-300: #E3E2AB;
  --brand-400: #D4D381;
  --brand-500: #C6C457;
  --brand-600: #bab83f;
  --brand-700: #989734;
  --brand-800: #7A7929;
  --brand-900: #595821;
  --brand-950: #383715;
  --brand: #bab83f;
  --brand-ink: #000000;
}

Colors that work with #bab83f

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#EAEAC2
Hairlines and dividers
Muted text#9B9A4B
Captions on the surface
Accent#3A5DBF
Second voice, not a rival
Dark variant#5F5E20
Hover, pressed, headers
Light variant#F9F8EC
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 #bab83f

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#3F41BA
Analogous left#BA7A3F
Analogous right#7EBA3F
Split-complement 1#3F7EBA
Split-complement 2#7A3FBA
Triadic 1#3FBAB8
Triadic 2#B83FBA
Tetradic#3FBA7A

RGB percentages

Red72.9%
Green72.2%
Blue24.7%

CMYK percentages

Cyan0.0%
Magenta1.1%
Yellow66.1%
Key (black)27.1%

Color previews

#bab83f text on a black background

contrast 10.02:1

Card sample

#bab83f text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 184, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 184, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bab83f;
background: linear-gradient(135deg, #bab83f, #6ABA3F);

Monochromatic scale

Palettes built from #bab83f

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.

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

#bab83f, answered

What color is #bab83f?

#bab83f is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 6.3). It sits at 59° on the hue wheel with 49% saturation and 49% lightness, which reads as warm.

What is the RGB value of #bab83f?

rgb(186, 184, 63) — 186 red, 184 green and 63 blue out of 255, or 72.9% / 72.2% / 24.7% by channel.

Is #bab83f a light or a dark color?

It is a mid-tone. Relative luminance is 0.4508 and perceived brightness is 69%, so black text on it reaches 10.02:1.

Should I use black or white text on #bab83f?

Black. It scores 10.02:1 against #bab83f, versus 2.10:1 for white — AAA at any size.

What is the complementary color of #bab83f?

#3F41BA sits directly opposite on the wheel. Softer options are the split-complements #3F7EBA and #7A3FBA, which give the same contrast with far less vibration.

What colors go well with #bab83f?

For interface work: #FAFAF4 as the surface, #EAEAC2 for borders, #9B9A4B for secondary text, #3A5DBF as an accent and #5F5E20 for hover and pressed states. For a palette, the analogous pair #BA7A3F and #7EBA3F stays calm, while #3F41BA is the loudest partner.

What is #bab83f in CMYK for printing?

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

Is #bab83f 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 #BA8B3F; nudged cooler, #90BC3C.

Work with #bab83f in the Color Lab