Skip to content

#baaa21

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

RGB
186, 170, 33
HSL
54°, 70%, 43%
CMYK
0, 9, 82, 27
Luminance
0.3930

At a glance

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

Hex
#baaa21
Hue
54°
yellow
Saturation
70%
vivid
Lightness
43%
dark
Brightness
73%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3930
WCAG relative
Temperature
Warm
20/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
8.86:1
Closest name
Dark Khaki
ΔE2000 8.9
Where it sits
Hue54° of 360°
Saturation70%
Lightness43%
Temperature
Warm ← → Cool20% 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#baaa21
RGBrgb(186, 170, 33)
HSLhsl(54, 70%, 43%)
CMYKcmyk(0%, 9%, 82%, 27%)
LABlab(69.0 -8.2 65.7)
LCHlch(69.0 66.2 97.1)
OKLCHoklch(0.730 0.145 102.1)
Decimal12233249
Display P3color(display-p3 0.729 0.667 0.129)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baaa21 on white: 2.37:1
AA ✗ fail · AA-large · AAA
Aa
#baaa21 on black: 8.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BBA500
deuteranopia · #BFAB2D
tritanopia · #C99D91

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #baaa21 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
#F8F6E7
#F2EEC9
#EEE6A0
#E6D970
#DDCD40
#D0BE25
#baaa21
#8B7F19
#655C16
#3F3A0E
Base = 700Lightest = 50 · #FCFBF3Darkest = 950 · #3F3A0E
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F8F6E7;
  --brand-200: #F2EEC9;
  --brand-300: #EEE6A0;
  --brand-400: #E6D970;
  --brand-500: #DDCD40;
  --brand-600: #D0BE25;
  --brand-700: #baaa21;
  --brand-800: #8B7F19;
  --brand-900: #655C16;
  --brand-950: #3F3A0E;
  --brand: #baaa21;
  --brand-ink: #000000;
}

Colors that work with #baaa21

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#EDE8C0
Hairlines and dividers
Muted text#9B924B
Captions on the surface
Accent#1D56BE
Second voice, not a rival
Dark variant#6C6313
Hover, pressed, headers
Light variant#FBF9E9
Selected rows, tints
Dark surface#242314
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 #baaa21

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#2131BA
Analogous left#BA5D21
Analogous right#7DBA21
Split-complement 1#217DBA
Split-complement 2#5D21BA
Triadic 1#21BAAA
Triadic 2#AA21BA
Tetradic#21BA5D

RGB percentages

Red72.9%
Green66.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta8.6%
Yellow82.3%
Key (black)27.1%

Color previews

#baaa21 text on a black background

contrast 8.86:1

Card sample

#baaa21 text on a white background

contrast 2.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #baaa21

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.

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

#baaa21, answered

What color is #baaa21?

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

What is the RGB value of #baaa21?

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

Is #baaa21 a light or a dark color?

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

Should I use black or white text on #baaa21?

Black. It scores 8.86:1 against #baaa21, versus 2.37:1 for white — AAA at any size.

What is the complementary color of #baaa21?

#2131BA sits directly opposite on the wheel. Softer options are the split-complements #217DBA and #5D21BA, which give the same contrast with far less vibration.

What colors go well with #baaa21?

For interface work: #FAFAF4 as the surface, #EDE8C0 for borders, #9B924B for secondary text, #1D56BE as an accent and #6C6313 for hover and pressed states. For a palette, the analogous pair #BA5D21 and #7DBA21 stays calm, while #2131BA is the loudest partner.

What is #baaa21 in CMYK for printing?

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

Is #baaa21 warm or cool?

Warm — it scores 20 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA7E21; nudged cooler, #93BC1F.

Work with #baaa21 in the Color Lab