Skip to content

#bbcc12

a dark, electric yellow · warm · closest name: Yellow Green

RGB
187, 204, 18
HSL
66°, 84%, 44%
CMYK
8, 0, 91, 20
Luminance
0.5379

At a glance

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

Hex
#bbcc12
Hue
66°
yellow
Saturation
84%
electric
Lightness
44%
dark
Brightness
80%
HSV value
Perceived
73%
weighted brightness
Luminance
0.5379
WCAG relative
Temperature
Warm
30/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
11.76:1
Closest name
Yellow Green
ΔE2000 7.5
Where it sits
Hue66° of 360°
Saturation84%
Lightness44%
Temperature
Warm ← → Cool30% 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#bbcc12
RGBrgb(187, 204, 18)
HSLhsl(66, 84%, 44%)
CMYKcmyk(8%, 0%, 91%, 20%)
LABlab(78.3 -25.2 76.4)
LCHlch(78.3 80.5 108.3)
OKLCHoklch(0.805 0.180 115.7)
Decimal12307474
Display P3color(display-p3 0.733 0.800 0.071)

Copy-ready code

/* CSS */
color: #bbcc12;
background-color: #bbcc12;
/* Tailwind (arbitrary) */
class="text-[#bbcc12] bg-[#bbcc12]"
/* SCSS */
$brand: #bbcc12;
/* SwiftUI */
Color(red: 0.733, green: 0.800, blue: 0.071)
/* Android */
Color.parseColor("#bbcc12")
/* Flutter */
Color(0xFFBBCC12)
/* Python / OpenCV (BGR) */
(18, 204, 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 #bbcc12 · 11.76:1
Use #000000AAA at every size.
Aa
White text · 1.79:1
AA fail · AA large fail · AAA fail
Aa
Black text · 11.76:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #bbcc12 as text scores 1.79:1 on white and 11.76:1 on black.

Accessibility — WCAG contrast

Aa
#bbcc12 on white: 1.79:1
AA ✗ fail · AA-large · AAA
Aa
#bbcc12 on black: 11.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DBC100
deuteranopia · #DAC32D
tritanopia · #C8BFAE

Color scale — 50 to 950

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

#FBFCF2
#F8FAE6
#F2F6C5
#EDF698
#E4F164
#DCED31
#CEE114
#bbcc12
#89960D
#646C0E
#3E4409
Base = 700Lightest = 50 · #FBFCF2Darkest = 950 · #3E4409
:root {
  --brand-50: #FBFCF2;
  --brand-100: #F8FAE6;
  --brand-200: #F2F6C5;
  --brand-300: #EDF698;
  --brand-400: #E4F164;
  --brand-500: #DCED31;
  --brand-600: #CEE114;
  --brand-700: #bbcc12;
  --brand-800: #89960D;
  --brand-900: #646C0E;
  --brand-950: #3E4409;
  --brand: #bbcc12;
  --brand-ink: #000000;
}

Colors that work with #bbcc12

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#E9EDC0
Hairlines and dividers
Muted text#949B4B
Captions on the surface
Accent#0E2CD0
Second voice, not a rival
Dark variant#6B750A
Hover, pressed, headers
Light variant#FBFDE8
Selected rows, tints
Dark surface#232414
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 #bbcc12

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#2312CC
Analogous left#CC8012
Analogous right#5ECC12
Split-complement 1#125ECC
Split-complement 2#8012CC
Triadic 1#12BBCC
Triadic 2#CC12BB
Tetradic#12CC80

RGB percentages

Red73.3%
Green80.0%
Blue7.1%

CMYK percentages

Cyan8.3%
Magenta0.0%
Yellow91.2%
Key (black)20.0%

Color previews

#bbcc12 text on a black background

contrast 11.76:1

Card sample

#bbcc12 text on a white background

contrast 1.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bbcc12

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.

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

#bbcc12, answered

What color is #bbcc12?

#bbcc12 is a dark electric yellow, closest to Yellow Green (ΔE2000 7.5). It sits at 66° on the hue wheel with 84% saturation and 44% lightness, which reads as warm.

What is the RGB value of #bbcc12?

rgb(187, 204, 18) — 187 red, 204 green and 18 blue out of 255, or 73.3% / 80% / 7.1% by channel.

Is #bbcc12 a light or a dark color?

It is a light color. Relative luminance is 0.5379 and perceived brightness is 73%, so black text on it reaches 11.76:1.

Should I use black or white text on #bbcc12?

Black. It scores 11.76:1 against #bbcc12, versus 1.79:1 for white — AAA at any size.

What is the complementary color of #bbcc12?

#2312CC sits directly opposite on the wheel. Softer options are the split-complements #125ECC and #8012CC, which give the same contrast with far less vibration.

What colors go well with #bbcc12?

For interface work: #FAFAF4 as the surface, #E9EDC0 for borders, #949B4B for secondary text, #0E2CD0 as an accent and #6B750A for hover and pressed states. For a palette, the analogous pair #CC8012 and #5ECC12 stays calm, while #2312CC is the loudest partner.

What is #bbcc12 in CMYK for printing?

cmyk(8%, 0%, 91%, 20%). 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 #bbcc12 warm or cool?

Warm — it scores 30 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CC9912; nudged cooler, #77CE10.

Work with #bbcc12 in the Color Lab