Skip to content

#9da508

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

RGB
157, 165, 8
HSL
63°, 91%, 34%
CMYK
5, 0, 95, 35
Luminance
0.3410

At a glance

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

Hex
#9da508
Hue
63°
yellow
Saturation
91%
electric
Lightness
34%
dark
Brightness
65%
HSV value
Perceived
60%
weighted brightness
Luminance
0.3410
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
7.82:1
Closest name
Dark Khaki
ΔE2000 10.7
Where it sits
Hue63° of 360°
Saturation91%
Lightness34%
Temperature
Warm ← → Cool28% 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#9da508
RGBrgb(157, 165, 8)
HSLhsl(63, 91%, 34%)
CMYKcmyk(5%, 0%, 95%, 35%)
LABlab(65.0 -19.0 66.4)
LCHlch(65.0 69.0 106.0)
OKLCHoklch(0.692 0.153 113.2)
Decimal10331400
Display P3color(display-p3 0.616 0.647 0.031)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9da508 on white: 2.69:1
AA ✗ fail · AA-large · AAA
Aa
#9da508 on black: 7.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B29C00
deuteranopia · #B29F20
tritanopia · #A89A8C

Color scale — 50 to 950

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

#FCFDF2
#FAFBE5
#F6F9C3
#F5FA94
#EFF75E
#EAF529
#DEEA0B
#B9C309
#9da508
#6B700A
#434606
Base = 800Lightest = 50 · #FCFDF2Darkest = 950 · #434606
:root {
  --brand-50: #FCFDF2;
  --brand-100: #FAFBE5;
  --brand-200: #F6F9C3;
  --brand-300: #F5FA94;
  --brand-400: #EFF75E;
  --brand-500: #EAF529;
  --brand-600: #DEEA0B;
  --brand-700: #B9C309;
  --brand-800: #9da508;
  --brand-900: #6B700A;
  --brand-950: #434606;
  --brand: #9da508;
  --brand-ink: #000000;
}

Colors that work with #9da508

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#EAEDC0
Hairlines and dividers
Muted text#979B4B
Captions on the surface
Accent#0425A8
Second voice, not a rival
Dark variant#747A06
Hover, pressed, headers
Light variant#FDFEE7
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 #9da508

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#1008A5
Analogous left#A55F08
Analogous right#4EA508
Split-complement 1#084EA5
Split-complement 2#5F08A5
Triadic 1#089DA5
Triadic 2#A5089D
Tetradic#08A55F

RGB percentages

Red61.6%
Green64.7%
Blue3.1%

CMYK percentages

Cyan4.8%
Magenta0.0%
Yellow95.2%
Key (black)35.3%

Color previews

#9da508 text on a black background

contrast 7.82:1

Card sample

#9da508 text on a white background

contrast 2.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9da508

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.

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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#9da508, answered

What color is #9da508?

#9da508 is a dark electric yellow, closest to Dark Khaki (ΔE2000 10.7). It sits at 63° on the hue wheel with 91% saturation and 34% lightness, which reads as warm.

What is the RGB value of #9da508?

rgb(157, 165, 8) — 157 red, 165 green and 8 blue out of 255, or 61.6% / 64.7% / 3.1% by channel.

Is #9da508 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3410 and perceived brightness is 60%, so black text on it reaches 7.82:1.

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

Black. It scores 7.82:1 against #9da508, versus 2.69:1 for white — AAA at any size.

What is the complementary color of #9da508?

#1008A5 sits directly opposite on the wheel. Softer options are the split-complements #084EA5 and #5F08A5, which give the same contrast with far less vibration.

What colors go well with #9da508?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #979B4B for secondary text, #0425A8 as an accent and #747A06 for hover and pressed states. For a palette, the analogous pair #A55F08 and #4EA508 stays calm, while #1008A5 is the loudest partner.

What is #9da508 in CMYK for printing?

cmyk(5%, 0%, 95%, 35%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #9da508 warm or cool?

Warm — it scores 28 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A57308; nudged cooler, #64A706.

Work with #9da508 in the Color Lab