Skip to content

#9da22a

a dark, vivid yellow · warm · closest name: Dark Khaki

RGB
157, 162, 42
HSL
63°, 59%, 40%
CMYK
3, 0, 74, 37
Luminance
0.3318

At a glance

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

Hex
#9da22a
Hue
63°
yellow
Saturation
59%
vivid
Lightness
40%
dark
Brightness
64%
HSV value
Perceived
59%
weighted brightness
Luminance
0.3318
WCAG relative
Temperature
Warm
27/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
7.64:1
Closest name
Dark Khaki
ΔE2000 9.5
Where it sits
Hue63° of 360°
Saturation59%
Lightness40%
Temperature
Warm ← → Cool27% 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#9da22a
RGBrgb(157, 162, 42)
HSLhsl(63, 59%, 40%)
CMYKcmyk(3%, 0%, 74%, 37%)
LABlab(64.3 -16.5 57.7)
LCHlch(64.3 60.0 105.9)
OKLCHoklch(0.687 0.137 111.9)
Decimal10330666
Display P3color(display-p3 0.616 0.635 0.165)

Copy-ready code

/* CSS */
color: #9da22a;
background-color: #9da22a;
/* Tailwind (arbitrary) */
class="text-[#9da22a] bg-[#9da22a]"
/* SCSS */
$brand: #9da22a;
/* SwiftUI */
Color(red: 0.616, green: 0.635, blue: 0.165)
/* Android */
Color.parseColor("#9da22a")
/* Flutter */
Color(0xFF9DA22A)
/* Python / OpenCV (BGR) */
(42, 162, 157)

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

Accessibility — WCAG contrast

Aa
#9da22a on white: 2.75:1
AA ✗ fail · AA-large · AAA
Aa
#9da22a on black: 7.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #AF9A11
deuteranopia · #AF9D34
tritanopia · #A8988B

Color scale — 50 to 950

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

#FBFBF4
#F6F7E9
#EEEFCD
#E5E8A6
#D8DC79
#CBD14D
#BCC232
#9da22a
#7E8222
#5C5E1C
#393B12
Base = 700Lightest = 50 · #FBFBF4Darkest = 950 · #393B12
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F6F7E9;
  --brand-200: #EEEFCD;
  --brand-300: #E5E8A6;
  --brand-400: #D8DC79;
  --brand-500: #CBD14D;
  --brand-600: #BCC232;
  --brand-700: #9da22a;
  --brand-800: #7E8222;
  --brand-900: #5C5E1C;
  --brand-950: #393B12;
  --brand: #9da22a;
  --brand-ink: #000000;
}

Colors that work with #9da22a

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#EBEDC0
Hairlines and dividers
Muted text#989B4B
Captions on the surface
Accent#2641A6
Second voice, not a rival
Dark variant#62651A
Hover, pressed, headers
Light variant#F9FAEB
Selected rows, tints
Dark surface#242414
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 #9da22a

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#2F2AA2
Analogous left#A26B2A
Analogous right#61A22A
Split-complement 1#2A61A2
Split-complement 2#6B2AA2
Triadic 1#2A9DA2
Triadic 2#A22A9D
Tetradic#2AA26B

RGB percentages

Red61.6%
Green63.5%
Blue16.5%

CMYK percentages

Cyan3.1%
Magenta0.0%
Yellow74.1%
Key (black)36.5%

Color previews

#9da22a text on a black background

contrast 7.64:1

Card sample

#9da22a text on a white background

contrast 2.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(157, 162, 42, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(157, 162, 42, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9da22a;
background: linear-gradient(135deg, #9da22a, #4DA22A);

Monochromatic scale

Palettes built from #9da22a

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.

#9da22a 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.

#9da22a, answered

What color is #9da22a?

#9da22a is a dark vivid yellow, closest to Dark Khaki (ΔE2000 9.5). It sits at 63° on the hue wheel with 59% saturation and 40% lightness, which reads as warm.

What is the RGB value of #9da22a?

rgb(157, 162, 42) — 157 red, 162 green and 42 blue out of 255, or 61.6% / 63.5% / 16.5% by channel.

Is #9da22a a light or a dark color?

It is a mid-tone. Relative luminance is 0.3318 and perceived brightness is 59%, so black text on it reaches 7.64:1.

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

Black. It scores 7.64:1 against #9da22a, versus 2.75:1 for white — AAA at any size.

What is the complementary color of #9da22a?

#2F2AA2 sits directly opposite on the wheel. Softer options are the split-complements #2A61A2 and #6B2AA2, which give the same contrast with far less vibration.

What colors go well with #9da22a?

For interface work: #FAFAF4 as the surface, #EBEDC0 for borders, #989B4B for secondary text, #2641A6 as an accent and #62651A for hover and pressed states. For a palette, the analogous pair #A26B2A and #61A22A stays calm, while #2F2AA2 is the loudest partner.

What is #9da22a in CMYK for printing?

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

Is #9da22a warm or cool?

Warm — it scores 27 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A27B2A; nudged cooler, #71A428.

Work with #9da22a in the Color Lab