Skip to content

#babc0f

a dark, electric yellow · warm · closest name: Dark Khaki

RGB
186, 188, 15
HSL
61°, 85%, 40%
CMYK
1, 0, 92, 26
Luminance
0.4644

At a glance

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

Hex
#babc0f
Hue
61°
yellow
Saturation
85%
electric
Lightness
40%
dark
Brightness
74%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4644
WCAG relative
Temperature
Warm
26/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
10.29:1
Closest name
Dark Khaki
ΔE2000 9.8
Where it sits
Hue61° of 360°
Saturation85%
Lightness40%
Temperature
Warm ← → Cool26% 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#babc0f
RGBrgb(186, 188, 15)
HSLhsl(61, 85%, 40%)
CMYKcmyk(1%, 0%, 92%, 26%)
LABlab(73.8 -17.8 73.3)
LCHlch(73.8 75.4 103.7)
OKLCHoklch(0.768 0.166 110.5)
Decimal12237839
Display P3color(display-p3 0.729 0.737 0.059)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#babc0f on white: 2.04:1
AA ✗ fail · AA-large · AAA
Aa
#babc0f on black: 10.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CCB300
deuteranopia · #CDB727
tritanopia · #C8AFA0

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #babc0f is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FCFCF2
#FAFAE5
#F6F7C5
#F6F797
#F1F363
#ECEE2F
#E0E312
#babc0f
#96970C
#6C6D0D
#444408
Base = 700Lightest = 50 · #FCFCF2Darkest = 950 · #444408
:root {
  --brand-50: #FCFCF2;
  --brand-100: #FAFAE5;
  --brand-200: #F6F7C5;
  --brand-300: #F6F797;
  --brand-400: #F1F363;
  --brand-500: #ECEE2F;
  --brand-600: #E0E312;
  --brand-700: #babc0f;
  --brand-800: #96970C;
  --brand-900: #6C6D0D;
  --brand-950: #444408;
  --brand: #babc0f;
  --brand-ink: #000000;
}

Colors that work with #babc0f

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#ECEDC0
Hairlines and dividers
Muted text#9A9B4B
Captions on the surface
Accent#0B36C0
Second voice, not a rival
Dark variant#757609
Hover, pressed, headers
Light variant#FDFDE7
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 #babc0f

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
  • Headers, footers and dark-mode surfaces
  • 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
  • Black text placed on it
  • 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#110FBC
Analogous left#BC680F
Analogous right#63BC0F
Split-complement 1#0F63BC
Split-complement 2#680FBC
Triadic 1#0FBABC
Triadic 2#BC0FBA
Tetradic#0FBC68

RGB percentages

Red72.9%
Green73.7%
Blue5.9%

CMYK percentages

Cyan1.1%
Magenta0.0%
Yellow92.0%
Key (black)26.3%

Color previews

#babc0f text on a black background

contrast 10.29:1

Card sample

#babc0f text on a white background

contrast 2.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 188, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 188, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #babc0f;
background: linear-gradient(135deg, #babc0f, #47BC0F);

Monochromatic scale

Palettes built from #babc0f

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.

#babc0f 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#babc0f, answered

What color is #babc0f?

#babc0f is a dark electric yellow, closest to Dark Khaki (ΔE2000 9.8). It sits at 61° on the hue wheel with 85% saturation and 40% lightness, which reads as warm.

What is the RGB value of #babc0f?

rgb(186, 188, 15) — 186 red, 188 green and 15 blue out of 255, or 72.9% / 73.7% / 5.9% by channel.

Is #babc0f a light or a dark color?

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

Should I use black or white text on #babc0f?

Black. It scores 10.29:1 against #babc0f, versus 2.04:1 for white — AAA at any size.

What is the complementary color of #babc0f?

#110FBC sits directly opposite on the wheel. Softer options are the split-complements #0F63BC and #680FBC, which give the same contrast with far less vibration.

What colors go well with #babc0f?

For interface work: #FAFAF4 as the surface, #ECEDC0 for borders, #9A9B4B for secondary text, #0B36C0 as an accent and #757609 for hover and pressed states. For a palette, the analogous pair #BC680F and #63BC0F stays calm, while #110FBC is the loudest partner.

What is #babc0f in CMYK for printing?

cmyk(1%, 0%, 92%, 26%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #babc0f warm or cool?

Warm — it scores 26 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BC830F; nudged cooler, #7BBE0D.

Work with #babc0f in the Color Lab