Skip to content

#a2bf21

a dark, vivid green · warm · closest name: Yellow Green

RGB
162, 191, 33
HSL
71°, 71%, 44%
CMYK
15, 0, 83, 25
Luminance
0.4505

At a glance

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

Hex
#a2bf21
Hue
71°
green
Saturation
71%
vivid
Lightness
44%
dark
Brightness
75%
HSV value
Perceived
67%
weighted brightness
Luminance
0.4505
WCAG relative
Temperature
Warm
34/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
10.01:1
Closest name
Yellow Green
ΔE2000 4.9
Where it sits
Hue71° of 360°
Saturation71%
Lightness44%
Temperature
Warm ← → Cool34% 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#a2bf21
RGBrgb(162, 191, 33)
HSLhsl(71, 71%, 44%)
CMYKcmyk(15%, 0%, 83%, 25%)
LABlab(72.9 -29.0 68.3)
LCHlch(72.9 74.3 113.0)
OKLCHoklch(0.757 0.172 120.4)
Decimal10665761
Display P3color(display-p3 0.635 0.749 0.129)

Copy-ready code

/* CSS */
color: #a2bf21;
background-color: #a2bf21;
/* Tailwind (arbitrary) */
class="text-[#a2bf21] bg-[#a2bf21]"
/* SCSS */
$brand: #a2bf21;
/* SwiftUI */
Color(red: 0.635, green: 0.749, blue: 0.129)
/* Android */
Color.parseColor("#a2bf21")
/* Flutter */
Color(0xFFA2BF21)
/* Python / OpenCV (BGR) */
(33, 191, 162)

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

Accessibility — WCAG contrast

Aa
#a2bf21 on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#a2bf21 on black: 10.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CBB300
deuteranopia · #C8B333
tritanopia · #ACB4A3

Color scale — 50 to 950

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

#FAFCF3
#F5F8E7
#EBF2C9
#E0EE9F
#D0E670
#C1DE40
#B1D124
#a2bf21
#768B18
#566516
#363F0D
Base = 700Lightest = 50 · #FAFCF3Darkest = 950 · #363F0D
:root {
  --brand-50: #FAFCF3;
  --brand-100: #F5F8E7;
  --brand-200: #EBF2C9;
  --brand-300: #E0EE9F;
  --brand-400: #D0E670;
  --brand-500: #C1DE40;
  --brand-600: #B1D124;
  --brand-700: #a2bf21;
  --brand-800: #768B18;
  --brand-900: #566516;
  --brand-950: #363F0D;
  --brand: #a2bf21;
  --brand-ink: #000000;
}

Colors that work with #a2bf21

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#F9FAF4
Tinted page background
Border#E4EDC0
Hairlines and dividers
Muted text#8C9B4B
Captions on the surface
Accent#1D28C3
Second voice, not a rival
Dark variant#5C6D13
Hover, pressed, headers
Light variant#F8FBE9
Selected rows, tints
Dark surface#212414
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 #a2bf21

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
  • 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#3E21BF
Analogous left#BF8D21
Analogous right#53BF21
Split-complement 1#2153BF
Split-complement 2#8D21BF
Triadic 1#21A2BF
Triadic 2#BF21A2
Tetradic#21BF8D

RGB percentages

Red63.5%
Green74.9%
Blue12.9%

CMYK percentages

Cyan15.2%
Magenta0.0%
Yellow82.7%
Key (black)25.1%

Color previews

#a2bf21 text on a black background

contrast 10.01:1

Card sample

#a2bf21 text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(162, 191, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 191, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a2bf21;
background: linear-gradient(135deg, #a2bf21, #39BF21);

Monochromatic scale

Palettes built from #a2bf21

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.

#a2bf21 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#a2bf21, answered

What color is #a2bf21?

#a2bf21 is a dark vivid green, closest to Yellow Green (ΔE2000 4.9). It sits at 71° on the hue wheel with 71% saturation and 44% lightness, which reads as warm.

What is the RGB value of #a2bf21?

rgb(162, 191, 33) — 162 red, 191 green and 33 blue out of 255, or 63.5% / 74.9% / 12.9% by channel.

Is #a2bf21 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4505 and perceived brightness is 67%, so black text on it reaches 10.01:1.

Should I use black or white text on #a2bf21?

Black. It scores 10.01:1 against #a2bf21, versus 2.10:1 for white — AAA at any size.

What is the complementary color of #a2bf21?

#3E21BF sits directly opposite on the wheel. Softer options are the split-complements #2153BF and #8D21BF, which give the same contrast with far less vibration.

What colors go well with #a2bf21?

For interface work: #F9FAF4 as the surface, #E4EDC0 for borders, #8C9B4B for secondary text, #1D28C3 as an accent and #5C6D13 for hover and pressed states. For a palette, the analogous pair #BF8D21 and #53BF21 stays calm, while #3E21BF is the loudest partner.

What is #a2bf21 in CMYK for printing?

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

Is #a2bf21 warm or cool?

Warm — it scores 34 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BFA221; nudged cooler, #68C11F.

Work with #a2bf21 in the Color Lab