Skip to content

#5a6708

a deep, electric yellow · warm · closest name: Dark Olive Green

RGB
90, 103, 8
HSL
68°, 86%, 22%
CMYK
13, 0, 92, 60
Luminance
0.1189

At a glance

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

Hex
#5a6708
Hue
68°
yellow
Saturation
86%
electric
Lightness
22%
deep
Brightness
40%
HSV value
Perceived
36%
weighted brightness
Luminance
0.1189
WCAG relative
Temperature
Warm
32/100 cool
Color family
Yellow
Tone
Electric
Best ink
White
6.22:1
Closest name
Dark Olive Green
ΔE2000 6.6
Where it sits
Hue68° of 360°
Saturation86%
Lightness22%
Temperature
Warm ← → Cool32% 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#5a6708
RGBrgb(90, 103, 8)
HSLhsl(68, 86%, 22%)
CMYKcmyk(13%, 0%, 92%, 60%)
LABlab(41.0 -17.1 45.2)
LCHlch(41.0 48.3 110.7)
OKLCHoklch(0.486 0.110 118.1)
Decimal5924616
Display P3color(display-p3 0.353 0.404 0.031)

Copy-ready code

/* CSS */
color: #5a6708;
background-color: #5a6708;
/* Tailwind (arbitrary) */
class="text-[#5a6708] bg-[#5a6708]"
/* SCSS */
$brand: #5a6708;
/* SwiftUI */
Color(red: 0.353, green: 0.404, blue: 0.031)
/* Android */
Color.parseColor("#5a6708")
/* Flutter */
Color(0xFF5A6708)
/* Python / OpenCV (BGR) */
(8, 103, 90)

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#ffffff on #5a6708 · 6.22:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.22:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.38:1
AA fail · AA large pass · AAA fail
Reading the other direction: #5a6708 as text scores 6.22:1 on white and 3.38:1 on black.

Accessibility — WCAG contrast

Aa
#5a6708 on white: 6.22:1
AA ✓ pass · AA-large · AAA
Aa
#5a6708 on black: 3.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #6F6100
deuteranopia · #6D6114
tritanopia · #606157

Color scale — 50 to 950

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

#FBFDF2
#F7FAE5
#F0F7C5
#EAF797
#DFF363
#D5EF2F
#C7E312
#A5BD0F
#84970C
#5a6708
#3C4408
Base = 900Lightest = 50 · #FBFDF2Darkest = 950 · #3C4408
:root {
  --brand-50: #FBFDF2;
  --brand-100: #F7FAE5;
  --brand-200: #F0F7C5;
  --brand-300: #EAF797;
  --brand-400: #DFF363;
  --brand-500: #D5EF2F;
  --brand-600: #C7E312;
  --brand-700: #A5BD0F;
  --brand-800: #84970C;
  --brand-900: #5a6708;
  --brand-950: #3C4408;
  --brand: #5a6708;
  --brand-ink: #ffffff;
}

Colors that work with #5a6708

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAFAF4
Tinted page background
Border#E7EDC0
Hairlines and dividers
Muted text#909B4B
Captions on the surface
Accent#061169
Second voice, not a rival
Dark variant#677609
Hover, pressed, headers
Light variant#FAFDE7
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 #5a6708

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • 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
  • 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#150867
Analogous left#674508
Analogous right#2B6708
Split-complement 1#082B67
Split-complement 2#450867
Triadic 1#085A67
Triadic 2#67085A
Tetradic#086745

RGB percentages

Red35.3%
Green40.4%
Blue3.1%

CMYK percentages

Cyan12.6%
Magenta0.0%
Yellow92.2%
Key (black)59.6%

Color previews

#5a6708 text on a black background

contrast 3.38:1

Card sample

#5a6708 text on a white background

contrast 6.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5a6708;
Background color
Panel with #5a6708 background
background-color: #5a6708;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5a6708;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(90, 103, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(90, 103, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5a6708;
background: linear-gradient(135deg, #5a6708, #1B6708);

Monochromatic scale

Palettes built from #5a6708

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.

#5a6708 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.

#5a6708, answered

What color is #5a6708?

#5a6708 is a deep electric yellow, closest to Dark Olive Green (ΔE2000 6.6). It sits at 68° on the hue wheel with 86% saturation and 22% lightness, which reads as warm.

What is the RGB value of #5a6708?

rgb(90, 103, 8) — 90 red, 103 green and 8 blue out of 255, or 35.3% / 40.4% / 3.1% by channel.

Is #5a6708 a light or a dark color?

It is a dark color. Relative luminance is 0.1189 and perceived brightness is 36%, so white text on it reaches 6.22:1.

Should I use black or white text on #5a6708?

White. It scores 6.22:1 against #5a6708, versus 3.38:1 for black — AA at any size.

What is the complementary color of #5a6708?

#150867 sits directly opposite on the wheel. Softer options are the split-complements #082B67 and #450867, which give the same contrast with far less vibration.

What colors go well with #5a6708?

For interface work: #FAFAF4 as the surface, #E7EDC0 for borders, #909B4B for secondary text, #061169 as an accent and #677609 for hover and pressed states. For a palette, the analogous pair #674508 and #2B6708 stays calm, while #150867 is the loudest partner.

What is #5a6708 in CMYK for printing?

cmyk(13%, 0%, 92%, 60%). 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 #5a6708 warm or cool?

Warm — it scores 32 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #675108; nudged cooler, #376807.

Work with #5a6708 in the Color Lab