Skip to content

#bbaf0c

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

RGB
187, 175, 12
HSL
56°, 88%, 39%
CMYK
0, 6, 94, 27
Luminance
0.4125

At a glance

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

Hex
#bbaf0c
Hue
56°
yellow
Saturation
88%
electric
Lightness
39%
dark
Brightness
73%
HSV value
Perceived
66%
weighted brightness
Luminance
0.4125
WCAG relative
Temperature
Warm
22/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
9.25:1
Closest name
Dark Khaki
ΔE2000 9.5
Where it sits
Hue56° of 360°
Saturation88%
Lightness39%
Temperature
Warm ← → Cool22% 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#bbaf0c
RGBrgb(187, 175, 12)
HSLhsl(56, 88%, 39%)
CMYKcmyk(0%, 6%, 94%, 27%)
LABlab(70.3 -10.8 71.0)
LCHlch(70.3 71.9 98.7)
OKLCHoklch(0.741 0.155 104.5)
Decimal12300044
Display P3color(display-p3 0.733 0.686 0.047)

Copy-ready code

/* CSS */
color: #bbaf0c;
background-color: #bbaf0c;
/* Tailwind (arbitrary) */
class="text-[#bbaf0c] bg-[#bbaf0c]"
/* SCSS */
$brand: #bbaf0c;
/* SwiftUI */
Color(red: 0.733, green: 0.686, blue: 0.047)
/* Android */
Color.parseColor("#bbaf0c")
/* Flutter */
Color(0xFFBBAF0C)
/* Python / OpenCV (BGR) */
(12, 175, 187)

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

Accessibility — WCAG contrast

Aa
#bbaf0c on white: 2.27:1
AA ✗ fail · AA-large · AAA
Aa
#bbaf0c on black: 9.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C0A900
deuteranopia · #C4AF22
tritanopia · #CAA295

Color scale — 50 to 950

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

#FDFCF2
#FAF9E5
#F8F4C4
#F8F196
#F5EB61
#F1E42C
#E6D70F
#bbaf0c
#99900A
#6F680C
#454107
Base = 700Lightest = 50 · #FDFCF2Darkest = 950 · #454107
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FAF9E5;
  --brand-200: #F8F4C4;
  --brand-300: #F8F196;
  --brand-400: #F5EB61;
  --brand-500: #F1E42C;
  --brand-600: #E6D70F;
  --brand-700: #bbaf0c;
  --brand-800: #99900A;
  --brand-900: #6F680C;
  --brand-950: #454107;
  --brand: #bbaf0c;
  --brand-ink: #000000;
}

Colors that work with #bbaf0c

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#EDEAC0
Hairlines and dividers
Muted text#9B954B
Captions on the surface
Accent#0842BF
Second voice, not a rival
Dark variant#787008
Hover, pressed, headers
Light variant#FDFCE7
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 #bbaf0c

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#0C18BB
Analogous left#BB580C
Analogous right#6FBB0C
Split-complement 1#0C6FBB
Split-complement 2#580CBB
Triadic 1#0CBBAF
Triadic 2#AF0CBB
Tetradic#0CBB58

RGB percentages

Red73.3%
Green68.6%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta6.4%
Yellow93.6%
Key (black)26.7%

Color previews

#bbaf0c text on a black background

contrast 9.25:1

Card sample

#bbaf0c text on a white background

contrast 2.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(187, 175, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(187, 175, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bbaf0c;
background: linear-gradient(135deg, #bbaf0c, #52BB0C);

Monochromatic scale

Palettes built from #bbaf0c

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.

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

#bbaf0c, answered

What color is #bbaf0c?

#bbaf0c is a dark electric yellow, closest to Dark Khaki (ΔE2000 9.5). It sits at 56° on the hue wheel with 88% saturation and 39% lightness, which reads as warm.

What is the RGB value of #bbaf0c?

rgb(187, 175, 12) — 187 red, 175 green and 12 blue out of 255, or 73.3% / 68.6% / 4.7% by channel.

Is #bbaf0c a light or a dark color?

It is a mid-tone. Relative luminance is 0.4125 and perceived brightness is 66%, so black text on it reaches 9.25:1.

Should I use black or white text on #bbaf0c?

Black. It scores 9.25:1 against #bbaf0c, versus 2.27:1 for white — AAA at any size.

What is the complementary color of #bbaf0c?

#0C18BB sits directly opposite on the wheel. Softer options are the split-complements #0C6FBB and #580CBB, which give the same contrast with far less vibration.

What colors go well with #bbaf0c?

For interface work: #FAFAF4 as the surface, #EDEAC0 for borders, #9B954B for secondary text, #0842BF as an accent and #787008 for hover and pressed states. For a palette, the analogous pair #BB580C and #6FBB0C stays calm, while #0C18BB is the loudest partner.

What is #bbaf0c in CMYK for printing?

cmyk(0%, 6%, 94%, 27%). 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 #bbaf0c warm or cool?

Warm — it scores 22 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BB7D0C; nudged cooler, #88BD0A.

Work with #bbaf0c in the Color Lab