Skip to content

#a7ce21

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

RGB
167, 206, 33
HSL
74°, 72%, 47%
CMYK
19, 0, 84, 19
Luminance
0.5247

At a glance

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

Hex
#a7ce21
Hue
74°
green
Saturation
72%
vivid
Lightness
47%
balanced
Brightness
81%
HSV value
Perceived
72%
weighted brightness
Luminance
0.5247
WCAG relative
Temperature
Warm
36/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
11.49:1
Closest name
Yellow Green
ΔE2000 3
Where it sits
Hue74° of 360°
Saturation72%
Lightness47%
Temperature
Warm ← → Cool36% 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#a7ce21
RGBrgb(167, 206, 33)
HSLhsl(74, 72%, 47%)
CMYKcmyk(19%, 0%, 84%, 19%)
LABlab(77.6 -34.0 72.5)
LCHlch(77.6 80.0 115.2)
OKLCHoklch(0.795 0.186 122.7)
Decimal10997281
Display P3color(display-p3 0.655 0.808 0.129)

Copy-ready code

/* CSS */
color: #a7ce21;
background-color: #a7ce21;
/* Tailwind (arbitrary) */
class="text-[#a7ce21] bg-[#a7ce21]"
/* SCSS */
$brand: #a7ce21;
/* SwiftUI */
Color(red: 0.655, green: 0.808, blue: 0.129)
/* Android */
Color.parseColor("#a7ce21")
/* Flutter */
Color(0xFFA7CE21)
/* Python / OpenCV (BGR) */
(33, 206, 167)

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

Accessibility — WCAG contrast

Aa
#a7ce21 on white: 1.83:1
AA ✗ fail · AA-large · AAA
Aa
#a7ce21 on black: 11.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DBC100
deuteranopia · #D6BF36
tritanopia · #B0C3B0

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #a7ce21 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FAFCF3
#F4F8E7
#E9F3C9
#DDF09E
#CCE86E
#BBE03E
#a7ce21
#8FB01C
#728D17
#546614
#34400D
Base = 600Lightest = 50 · #FAFCF3Darkest = 950 · #34400D
:root {
  --brand-50: #FAFCF3;
  --brand-100: #F4F8E7;
  --brand-200: #E9F3C9;
  --brand-300: #DDF09E;
  --brand-400: #CCE86E;
  --brand-500: #BBE03E;
  --brand-600: #a7ce21;
  --brand-700: #8FB01C;
  --brand-800: #728D17;
  --brand-900: #546614;
  --brand-950: #34400D;
  --brand: #a7ce21;
  --brand-ink: #000000;
}

Colors that work with #a7ce21

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#E3EDC0
Hairlines and dividers
Muted text#899B4B
Captions on the surface
Accent#1C21D3
Second voice, not a rival
Dark variant#596E12
Hover, pressed, headers
Light variant#F7FBE9
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 #a7ce21

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
  • 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
  • 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#4821CE
Analogous left#CE9F21
Analogous right#51CE21
Split-complement 1#2151CE
Split-complement 2#9F21CE
Triadic 1#21A7CE
Triadic 2#CE21A7
Tetradic#21CE9F

RGB percentages

Red65.5%
Green80.8%
Blue12.9%

CMYK percentages

Cyan18.9%
Magenta0.0%
Yellow84.0%
Key (black)19.2%

Color previews

#a7ce21 text on a black background

contrast 11.49:1

Card sample

#a7ce21 text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(167, 206, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(167, 206, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a7ce21;
background: linear-gradient(135deg, #a7ce21, #34CE21);

Monochromatic scale

Palettes built from #a7ce21

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.

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

#a7ce21, answered

What color is #a7ce21?

#a7ce21 is a balanced vivid green, closest to Yellow Green (ΔE2000 3). It sits at 74° on the hue wheel with 72% saturation and 47% lightness, which reads as warm.

What is the RGB value of #a7ce21?

rgb(167, 206, 33) — 167 red, 206 green and 33 blue out of 255, or 65.5% / 80.8% / 12.9% by channel.

Is #a7ce21 a light or a dark color?

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

Should I use black or white text on #a7ce21?

Black. It scores 11.49:1 against #a7ce21, versus 1.83:1 for white — AAA at any size.

What is the complementary color of #a7ce21?

#4821CE sits directly opposite on the wheel. Softer options are the split-complements #2151CE and #9F21CE, which give the same contrast with far less vibration.

What colors go well with #a7ce21?

For interface work: #F9FAF4 as the surface, #E3EDC0 for borders, #899B4B for secondary text, #1C21D3 as an accent and #596E12 for hover and pressed states. For a palette, the analogous pair #CE9F21 and #51CE21 stays calm, while #4821CE is the loudest partner.

What is #a7ce21 in CMYK for printing?

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

Is #a7ce21 warm or cool?

Warm — it scores 36 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CEB621; nudged cooler, #67D11F.

Work with #a7ce21 in the Color Lab