Skip to content

#bab621

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

RGB
186, 182, 33
HSL
58°, 70%, 43%
CMYK
0, 2, 82, 27
Luminance
0.4400

At a glance

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

Hex
#bab621
Hue
58°
yellow
Saturation
70%
vivid
Lightness
43%
dark
Brightness
73%
HSV value
Perceived
68%
weighted brightness
Luminance
0.4400
WCAG relative
Temperature
Warm
24/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
9.80:1
Closest name
Dark Khaki
ΔE2000 8.6
Where it sits
Hue58° of 360°
Saturation70%
Lightness43%
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#bab621
RGBrgb(186, 182, 33)
HSLhsl(58, 70%, 43%)
CMYKcmyk(0%, 2%, 82%, 27%)
LABlab(72.2 -14.4 68.5)
LCHlch(72.2 70.0 101.9)
OKLCHoklch(0.756 0.155 107.9)
Decimal12236321
Display P3color(display-p3 0.729 0.714 0.129)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bab621 on white: 2.14:1
AA ✗ fail · AA-large · AAA
Aa
#bab621 on black: 9.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C6AE00
deuteranopia · #C8B330
tritanopia · #C8A99C

Color scale — 50 to 950

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

#FCFBF3
#F8F8E7
#F2F1C9
#EEECA0
#E6E370
#DDD940
#D0CB25
#bab621
#8B8819
#656216
#3F3E0E
Base = 700Lightest = 50 · #FCFBF3Darkest = 950 · #3F3E0E
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F8F8E7;
  --brand-200: #F2F1C9;
  --brand-300: #EEECA0;
  --brand-400: #E6E370;
  --brand-500: #DDD940;
  --brand-600: #D0CB25;
  --brand-700: #bab621;
  --brand-800: #8B8819;
  --brand-900: #656216;
  --brand-950: #3F3E0E;
  --brand: #bab621;
  --brand-ink: #000000;
}

Colors that work with #bab621

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#EDEBC0
Hairlines and dividers
Muted text#9B994B
Captions on the surface
Accent#1D49BE
Second voice, not a rival
Dark variant#6C6A13
Hover, pressed, headers
Light variant#FBFBE9
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 #bab621

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#2125BA
Analogous left#BA6921
Analogous right#71BA21
Split-complement 1#2171BA
Split-complement 2#6921BA
Triadic 1#21BAB6
Triadic 2#B621BA
Tetradic#21BA69

RGB percentages

Red72.9%
Green71.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta2.2%
Yellow82.3%
Key (black)27.1%

Color previews

#bab621 text on a black background

contrast 9.80:1

Card sample

#bab621 text on a white background

contrast 2.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 182, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 182, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bab621;
background: linear-gradient(135deg, #bab621, #58BA21);

Monochromatic scale

Palettes built from #bab621

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.

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

#bab621, answered

What color is #bab621?

#bab621 is a dark vivid yellow, closest to Dark Khaki (ΔE2000 8.6). It sits at 58° on the hue wheel with 70% saturation and 43% lightness, which reads as warm.

What is the RGB value of #bab621?

rgb(186, 182, 33) — 186 red, 182 green and 33 blue out of 255, or 72.9% / 71.4% / 12.9% by channel.

Is #bab621 a light or a dark color?

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

Should I use black or white text on #bab621?

Black. It scores 9.80:1 against #bab621, versus 2.14:1 for white — AAA at any size.

What is the complementary color of #bab621?

#2125BA sits directly opposite on the wheel. Softer options are the split-complements #2171BA and #6921BA, which give the same contrast with far less vibration.

What colors go well with #bab621?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B994B for secondary text, #1D49BE as an accent and #6C6A13 for hover and pressed states. For a palette, the analogous pair #BA6921 and #71BA21 stays calm, while #2125BA is the loudest partner.

What is #bab621 in CMYK for printing?

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

Is #bab621 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 #BA8321; nudged cooler, #87BC1F.

Work with #bab621 in the Color Lab