Skip to content

#b2cb0f

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

RGB
178, 203, 15
HSL
68°, 86%, 43%
CMYK
12, 0, 93, 20
Luminance
0.5221

At a glance

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

Hex
#b2cb0f
Hue
68°
yellow
Saturation
86%
electric
Lightness
43%
dark
Brightness
80%
HSV value
Perceived
72%
weighted brightness
Luminance
0.5221
WCAG relative
Temperature
Warm
32/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
11.44:1
Closest name
Yellow Green
ΔE2000 5.9
Where it sits
Hue68° of 360°
Saturation86%
Lightness43%
Temperature
Warm ← → Cool32% 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#b2cb0f
RGBrgb(178, 203, 15)
HSLhsl(68, 86%, 43%)
CMYKcmyk(12%, 0%, 93%, 20%)
LABlab(77.4 -28.5 75.8)
LCHlch(77.4 81.0 110.6)
OKLCHoklch(0.795 0.183 118.4)
Decimal11717391
Display P3color(display-p3 0.698 0.796 0.059)

Copy-ready code

/* CSS */
color: #b2cb0f;
background-color: #b2cb0f;
/* Tailwind (arbitrary) */
class="text-[#b2cb0f] bg-[#b2cb0f]"
/* SCSS */
$brand: #b2cb0f;
/* SwiftUI */
Color(red: 0.698, green: 0.796, blue: 0.059)
/* Android */
Color.parseColor("#b2cb0f")
/* Flutter */
Color(0xFFB2CB0F)
/* Python / OpenCV (BGR) */
(15, 203, 178)

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

Accessibility — WCAG contrast

Aa
#b2cb0f on white: 1.84:1
AA ✗ fail · AA-large · AAA
Aa
#b2cb0f on black: 11.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D9BF00
deuteranopia · #D7C02C
tritanopia · #BEBFAD

Color scale — 50 to 950

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

#FBFDF2
#F7FAE5
#F0F7C5
#EAF797
#E0F362
#D6F02E
#C8E411
#b2cb0f
#85980B
#616E0D
#3C4508
Base = 700Lightest = 50 · #FBFDF2Darkest = 950 · #3C4508
:root {
  --brand-50: #FBFDF2;
  --brand-100: #F7FAE5;
  --brand-200: #F0F7C5;
  --brand-300: #EAF797;
  --brand-400: #E0F362;
  --brand-500: #D6F02E;
  --brand-600: #C8E411;
  --brand-700: #b2cb0f;
  --brand-800: #85980B;
  --brand-900: #616E0D;
  --brand-950: #3C4508;
  --brand: #b2cb0f;
  --brand-ink: #000000;
}

Colors that work with #b2cb0f

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#E7EDC0
Hairlines and dividers
Muted text#909B4B
Captions on the surface
Accent#0B22CF
Second voice, not a rival
Dark variant#687709
Hover, pressed, headers
Light variant#FAFDE7
Selected rows, tints
Dark surface#222414
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 #b2cb0f

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#280FCB
Analogous left#CB860F
Analogous right#54CB0F
Split-complement 1#0F54CB
Split-complement 2#860FCB
Triadic 1#0FB2CB
Triadic 2#CB0FB2
Tetradic#0FCB86

RGB percentages

Red69.8%
Green79.6%
Blue5.9%

CMYK percentages

Cyan12.3%
Magenta0.0%
Yellow92.6%
Key (black)20.4%

Color previews

#b2cb0f text on a black background

contrast 11.44:1

Card sample

#b2cb0f text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 203, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 203, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2cb0f;
background: linear-gradient(135deg, #b2cb0f, #35CB0F);

Monochromatic scale

Palettes built from #b2cb0f

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.

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

#b2cb0f, answered

What color is #b2cb0f?

#b2cb0f is a dark electric yellow, closest to Yellow Green (ΔE2000 5.9). It sits at 68° on the hue wheel with 86% saturation and 43% lightness, which reads as warm.

What is the RGB value of #b2cb0f?

rgb(178, 203, 15) — 178 red, 203 green and 15 blue out of 255, or 69.8% / 79.6% / 5.9% by channel.

Is #b2cb0f a light or a dark color?

It is a light color. Relative luminance is 0.5221 and perceived brightness is 72%, so black text on it reaches 11.44:1.

Should I use black or white text on #b2cb0f?

Black. It scores 11.44:1 against #b2cb0f, versus 1.84:1 for white — AAA at any size.

What is the complementary color of #b2cb0f?

#280FCB sits directly opposite on the wheel. Softer options are the split-complements #0F54CB and #860FCB, which give the same contrast with far less vibration.

What colors go well with #b2cb0f?

For interface work: #FAFAF4 as the surface, #E7EDC0 for borders, #909B4B for secondary text, #0B22CF as an accent and #687709 for hover and pressed states. For a palette, the analogous pair #CB860F and #54CB0F stays calm, while #280FCB is the loudest partner.

What is #b2cb0f in CMYK for printing?

cmyk(12%, 0%, 93%, 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 #b2cb0f warm or cool?

Warm — it scores 32 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CB9F0F; nudged cooler, #6DCD0D.

Work with #b2cb0f in the Color Lab