Skip to content

#9da02a

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

RGB
157, 160, 42
HSL
62°, 58%, 40%
CMYK
2, 0, 74, 37
Luminance
0.3248

At a glance

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

Hex
#9da02a
Hue
62°
yellow
Saturation
58%
vivid
Lightness
40%
dark
Brightness
63%
HSV value
Perceived
59%
weighted brightness
Luminance
0.3248
WCAG relative
Temperature
Warm
26/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
7.50:1
Closest name
Dark Khaki
ΔE2000 9.7
Where it sits
Hue62° of 360°
Saturation58%
Lightness40%
Temperature
Warm ← → Cool26% 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#9da02a
RGBrgb(157, 160, 42)
HSLhsl(62, 58%, 40%)
CMYKcmyk(2%, 0%, 74%, 37%)
LABlab(63.7 -15.4 57.2)
LCHlch(63.7 59.2 105.1)
OKLCHoklch(0.682 0.135 111.0)
Decimal10330154
Display P3color(display-p3 0.616 0.627 0.165)

Copy-ready code

/* CSS */
color: #9da02a;
background-color: #9da02a;
/* Tailwind (arbitrary) */
class="text-[#9da02a] bg-[#9da02a]"
/* SCSS */
$brand: #9da02a;
/* SwiftUI */
Color(red: 0.616, green: 0.627, blue: 0.165)
/* Android */
Color.parseColor("#9da02a")
/* Flutter */
Color(0xFF9DA02A)
/* Python / OpenCV (BGR) */
(42, 160, 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 #9da02a · 7.50:1
Use #000000AAA at every size.
Aa
White text · 2.80:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.50:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #9da02a as text scores 2.80:1 on white and 7.50:1 on black.

Accessibility — WCAG contrast

Aa
#9da02a on white: 2.80:1
AA ✗ fail · AA-large · AAA
Aa
#9da02a on black: 7.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #AD9912
deuteranopia · #AE9C33
tritanopia · #A89689

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #9da02a 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
#E6E8A6
#DADC7A
#CDD04D
#BEC233
#9da02a
#7F8122
#5C5E1C
#3A3B12
Base = 700Lightest = 50 · #FBFBF4Darkest = 950 · #3A3B12
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F6F7E9;
  --brand-200: #EEEFCD;
  --brand-300: #E6E8A6;
  --brand-400: #DADC7A;
  --brand-500: #CDD04D;
  --brand-600: #BEC233;
  --brand-700: #9da02a;
  --brand-800: #7F8122;
  --brand-900: #5C5E1C;
  --brand-950: #3A3B12;
  --brand: #9da02a;
  --brand-ink: #000000;
}

Colors that work with #9da02a

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#ECEDC0
Hairlines and dividers
Muted text#999B4B
Captions on the surface
Accent#2642A4
Second voice, not a rival
Dark variant#63651B
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 #9da02a

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#2D2AA0
Analogous left#A0682A
Analogous right#62A02A
Split-complement 1#2A62A0
Split-complement 2#682AA0
Triadic 1#2A9DA0
Triadic 2#A02A9D
Tetradic#2AA068

RGB percentages

Red61.6%
Green62.7%
Blue16.5%

CMYK percentages

Cyan1.9%
Magenta0.0%
Yellow73.8%
Key (black)37.3%

Color previews

#9da02a text on a black background

contrast 7.50:1

Card sample

#9da02a text on a white background

contrast 2.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9da02a

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.

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

#9da02a, answered

What color is #9da02a?

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

What is the RGB value of #9da02a?

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

Is #9da02a a light or a dark color?

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

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

Black. It scores 7.50:1 against #9da02a, versus 2.80:1 for white — AAA at any size.

What is the complementary color of #9da02a?

#2D2AA0 sits directly opposite on the wheel. Softer options are the split-complements #2A62A0 and #682AA0, which give the same contrast with far less vibration.

What colors go well with #9da02a?

For interface work: #FAFAF4 as the surface, #ECEDC0 for borders, #999B4B for secondary text, #2642A4 as an accent and #63651B for hover and pressed states. For a palette, the analogous pair #A0682A and #62A02A stays calm, while #2D2AA0 is the loudest partner.

What is #9da02a in CMYK for printing?

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

Is #9da02a warm or cool?

Warm — it scores 26 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A0782A; nudged cooler, #72A228.

Work with #9da02a in the Color Lab