Skip to content

#9da412

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

RGB
157, 164, 18
HSL
63°, 80%, 36%
CMYK
4, 0, 89, 36
Luminance
0.3376

At a glance

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

Hex
#9da412
Hue
63°
yellow
Saturation
80%
electric
Lightness
36%
dark
Brightness
64%
HSV value
Perceived
60%
weighted brightness
Luminance
0.3376
WCAG relative
Temperature
Warm
27/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
7.75:1
Closest name
Dark Khaki
ΔE2000 10.5
Where it sits
Hue63° of 360°
Saturation80%
Lightness36%
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#9da412
RGBrgb(157, 164, 18)
HSLhsl(63, 80%, 36%)
CMYKcmyk(4%, 0%, 89%, 36%)
LABlab(64.8 -18.3 64.7)
LCHlch(64.8 67.2 105.8)
OKLCHoklch(0.690 0.150 112.8)
Decimal10331154
Display P3color(display-p3 0.616 0.643 0.071)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9da412 on white: 2.71:1
AA ✗ fail · AA-large · AAA
Aa
#9da412 on black: 7.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B19C00
deuteranopia · #B19F24
tritanopia · #A8998B

Color scale — 50 to 950

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

#FCFCF3
#F8F9E6
#F3F5C6
#F0F49A
#E8EE67
#E0E935
#D3DD18
#B0B814
#9da412
#666A10
#40420A
Base = 800Lightest = 50 · #FCFCF3Darkest = 950 · #40420A
:root {
  --brand-50: #FCFCF3;
  --brand-100: #F8F9E6;
  --brand-200: #F3F5C6;
  --brand-300: #F0F49A;
  --brand-400: #E8EE67;
  --brand-500: #E0E935;
  --brand-600: #D3DD18;
  --brand-700: #B0B814;
  --brand-800: #9da412;
  --brand-900: #666A10;
  --brand-950: #40420A;
  --brand: #9da412;
  --brand-ink: #000000;
}

Colors that work with #9da412

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#0E2DA8
Second voice, not a rival
Dark variant#6E730D
Hover, pressed, headers
Light variant#FBFCE8
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 #9da412

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#1912A4
Analogous left#A46212
Analogous right#54A412
Split-complement 1#1254A4
Split-complement 2#6212A4
Triadic 1#129DA4
Triadic 2#A4129D
Tetradic#12A462

RGB percentages

Red61.6%
Green64.3%
Blue7.1%

CMYK percentages

Cyan4.3%
Magenta0.0%
Yellow89.0%
Key (black)35.7%

Color previews

#9da412 text on a black background

contrast 7.75:1

Card sample

#9da412 text on a white background

contrast 2.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9da412

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.

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

#9da412, answered

What color is #9da412?

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

What is the RGB value of #9da412?

rgb(157, 164, 18) — 157 red, 164 green and 18 blue out of 255, or 61.6% / 64.3% / 7.1% by channel.

Is #9da412 a light or a dark color?

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

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

Black. It scores 7.75:1 against #9da412, versus 2.71:1 for white — AAA at any size.

What is the complementary color of #9da412?

#1912A4 sits directly opposite on the wheel. Softer options are the split-complements #1254A4 and #6212A4, which give the same contrast with far less vibration.

What colors go well with #9da412?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #979B4B for secondary text, #0E2DA8 as an accent and #6E730D for hover and pressed states. For a palette, the analogous pair #A46212 and #54A412 stays calm, while #1912A4 is the loudest partner.

What is #9da412 in CMYK for printing?

cmyk(4%, 0%, 89%, 36%). 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 #9da412 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 #A47612; nudged cooler, #68A610.

Work with #9da412 in the Color Lab