Skip to content

#bcaf06

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

RGB
188, 175, 6
HSL
56°, 94%, 38%
CMYK
0, 7, 97, 26
Luminance
0.4136

At a glance

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

Hex
#bcaf06
Hue
56°
yellow
Saturation
94%
electric
Lightness
38%
dark
Brightness
74%
HSV value
Perceived
66%
weighted brightness
Luminance
0.4136
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
9.27:1
Closest name
Dark Khaki
ΔE2000 9.7
Where it sits
Hue56° of 360°
Saturation94%
Lightness38%
Temperature
Warm ← → Cool21% 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#bcaf06
RGBrgb(188, 175, 6)
HSLhsl(56, 94%, 38%)
CMYKcmyk(0%, 7%, 97%, 26%)
LABlab(70.4 -10.4 71.8)
LCHlch(70.4 72.6 98.3)
OKLCHoklch(0.742 0.156 104.2)
Decimal12365574
Display P3color(display-p3 0.737 0.686 0.024)

Copy-ready code

/* CSS */
color: #bcaf06;
background-color: #bcaf06;
/* Tailwind (arbitrary) */
class="text-[#bcaf06] bg-[#bcaf06]"
/* SCSS */
$brand: #bcaf06;
/* SwiftUI */
Color(red: 0.737, green: 0.686, blue: 0.024)
/* Android */
Color.parseColor("#bcaf06")
/* Flutter */
Color(0xFFBCAF06)
/* Python / OpenCV (BGR) */
(6, 175, 188)

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

Accessibility — WCAG contrast

Aa
#bcaf06 on white: 2.26:1
AA ✗ fail · AA-large · AAA
Aa
#bcaf06 on black: 9.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C0A900
deuteranopia · #C4AF20
tritanopia · #CBA295

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #bcaf06 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
#FBFAE4
#FAF6C2
#FCF492
#FAEE5C
#F8E926
#EDDD08
#bcaf06
#9E9305
#726A08
#474305
Base = 700Lightest = 50 · #FDFCF2Darkest = 950 · #474305
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FBFAE4;
  --brand-200: #FAF6C2;
  --brand-300: #FCF492;
  --brand-400: #FAEE5C;
  --brand-500: #F8E926;
  --brand-600: #EDDD08;
  --brand-700: #bcaf06;
  --brand-800: #9E9305;
  --brand-900: #726A08;
  --brand-950: #474305;
  --brand: #bcaf06;
  --brand-ink: #000000;
}

Colors that work with #bcaf06

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#EDE9C0
Hairlines and dividers
Muted text#9B954B
Captions on the surface
Accent#023FC0
Second voice, not a rival
Dark variant#7C7304
Hover, pressed, headers
Light variant#FEFCE6
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 #bcaf06

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#0613BC
Analogous left#BC5406
Analogous right#6EBC06
Split-complement 1#066EBC
Split-complement 2#5406BC
Triadic 1#06BCAF
Triadic 2#AF06BC
Tetradic#06BC54

RGB percentages

Red73.7%
Green68.6%
Blue2.4%

CMYK percentages

Cyan0.0%
Magenta6.9%
Yellow96.8%
Key (black)26.3%

Color previews

#bcaf06 text on a black background

contrast 9.27:1

Card sample

#bcaf06 text on a white background

contrast 2.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(188, 175, 6, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(188, 175, 6, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bcaf06;
background: linear-gradient(135deg, #bcaf06, #50BC06);

Monochromatic scale

Palettes built from #bcaf06

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.

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

#bcaf06, answered

What color is #bcaf06?

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

What is the RGB value of #bcaf06?

rgb(188, 175, 6) — 188 red, 175 green and 6 blue out of 255, or 73.7% / 68.6% / 2.4% by channel.

Is #bcaf06 a light or a dark color?

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

Should I use black or white text on #bcaf06?

Black. It scores 9.27:1 against #bcaf06, versus 2.26:1 for white — AAA at any size.

What is the complementary color of #bcaf06?

#0613BC sits directly opposite on the wheel. Softer options are the split-complements #066EBC and #5406BC, which give the same contrast with far less vibration.

What colors go well with #bcaf06?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B954B for secondary text, #023FC0 as an accent and #7C7304 for hover and pressed states. For a palette, the analogous pair #BC5406 and #6EBC06 stays calm, while #0613BC is the loudest partner.

What is #bcaf06 in CMYK for printing?

cmyk(0%, 7%, 97%, 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 #bcaf06 warm or cool?

Warm — it scores 21 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BC7C06; nudged cooler, #87BE04.

Work with #bcaf06 in the Color Lab