Skip to content

#9eb522

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

RGB
158, 181, 34
HSL
69°, 68%, 42%
CMYK
13, 0, 81, 29
Luminance
0.4043

At a glance

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

Hex
#9eb522
Hue
69°
yellow
Saturation
68%
vivid
Lightness
42%
dark
Brightness
71%
HSV value
Perceived
64%
weighted brightness
Luminance
0.4043
WCAG relative
Temperature
Warm
33/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
9.09:1
Closest name
Yellow Green
ΔE2000 7.2
Where it sits
Hue69° of 360°
Saturation68%
Lightness42%
Temperature
Warm ← → Cool33% 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#9eb522
RGBrgb(158, 181, 34)
HSLhsl(69, 68%, 42%)
CMYKcmyk(13%, 0%, 81%, 29%)
LABlab(69.8 -25.9 65.2)
LCHlch(69.8 70.2 111.6)
OKLCHoklch(0.731 0.162 118.8)
Decimal10401058
Display P3color(display-p3 0.620 0.710 0.133)

Copy-ready code

/* CSS */
color: #9eb522;
background-color: #9eb522;
/* Tailwind (arbitrary) */
class="text-[#9eb522] bg-[#9eb522]"
/* SCSS */
$brand: #9eb522;
/* SwiftUI */
Color(red: 0.620, green: 0.710, blue: 0.133)
/* Android */
Color.parseColor("#9eb522")
/* Flutter */
Color(0xFF9EB522)
/* Python / OpenCV (BGR) */
(34, 181, 158)

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

Accessibility — WCAG contrast

Aa
#9eb522 on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#9eb522 on black: 9.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C1AA00
deuteranopia · #BFAB31
tritanopia · #A8AB9B

Color scale — 50 to 950

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

#FAFBF3
#F5F8E8
#ECF2CA
#E1EDA1
#D2E471
#C3DC42
#B4CE27
#9eb522
#78891A
#586417
#373E0E
Base = 700Lightest = 50 · #FAFBF3Darkest = 950 · #373E0E
:root {
  --brand-50: #FAFBF3;
  --brand-100: #F5F8E8;
  --brand-200: #ECF2CA;
  --brand-300: #E1EDA1;
  --brand-400: #D2E471;
  --brand-500: #C3DC42;
  --brand-600: #B4CE27;
  --brand-700: #9eb522;
  --brand-800: #78891A;
  --brand-900: #586417;
  --brand-950: #373E0E;
  --brand: #9eb522;
  --brand-ink: #000000;
}

Colors that work with #9eb522

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#E6EDC0
Hairlines and dividers
Muted text#8E9B4B
Captions on the surface
Accent#1E2CBA
Second voice, not a rival
Dark variant#5E6B14
Hover, pressed, headers
Light variant#F8FBEA
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 #9eb522

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#3922B5
Analogous left#B58322
Analogous right#55B522
Split-complement 1#2255B5
Split-complement 2#8322B5
Triadic 1#229EB5
Triadic 2#B5229E
Tetradic#22B583

RGB percentages

Red62.0%
Green71.0%
Blue13.3%

CMYK percentages

Cyan12.7%
Magenta0.0%
Yellow81.2%
Key (black)29.0%

Color previews

#9eb522 text on a black background

contrast 9.09:1

Card sample

#9eb522 text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(158, 181, 34, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(158, 181, 34, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9eb522;
background: linear-gradient(135deg, #9eb522, #3CB522);

Monochromatic scale

Palettes built from #9eb522

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.

#9eb522 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

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

#9eb522, answered

What color is #9eb522?

#9eb522 is a dark vivid yellow, closest to Yellow Green (ΔE2000 7.2). It sits at 69° on the hue wheel with 68% saturation and 42% lightness, which reads as warm.

What is the RGB value of #9eb522?

rgb(158, 181, 34) — 158 red, 181 green and 34 blue out of 255, or 62% / 71% / 13.3% by channel.

Is #9eb522 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4043 and perceived brightness is 64%, so black text on it reaches 9.09:1.

Should I use black or white text on #9eb522?

Black. It scores 9.09:1 against #9eb522, versus 2.31:1 for white — AAA at any size.

What is the complementary color of #9eb522?

#3922B5 sits directly opposite on the wheel. Softer options are the split-complements #2255B5 and #8322B5, which give the same contrast with far less vibration.

What colors go well with #9eb522?

For interface work: #F9FAF4 as the surface, #E6EDC0 for borders, #8E9B4B for secondary text, #1E2CBA as an accent and #5E6B14 for hover and pressed states. For a palette, the analogous pair #B58322 and #55B522 stays calm, while #3922B5 is the loudest partner.

What is #9eb522 in CMYK for printing?

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

Is #9eb522 warm or cool?

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

Work with #9eb522 in the Color Lab