Skip to content

#7e6607

a dark, electric yellow · warm · closest name: Olive

RGB
126, 102, 7
HSL
48°, 90%, 26%
CMYK
0, 19, 94, 51
Luminance
0.1395

At a glance

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

Hex
#7e6607
Hue
48°
yellow
Saturation
90%
electric
Lightness
26%
dark
Brightness
49%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1395
WCAG relative
Temperature
Warm
15/100 cool
Color family
Yellow
Tone
Electric
Best ink
White
5.54:1
Closest name
Olive
ΔE2000 11.6
Where it sits
Hue48° of 360°
Saturation90%
Lightness26%
Temperature
Warm ← → Cool15% 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#7e6607
RGBrgb(126, 102, 7)
HSLhsl(48, 90%, 26%)
CMYKcmyk(0%, 19%, 94%, 51%)
LABlab(44.2 0.8 49.4)
LCHlch(44.2 49.4 89.0)
OKLCHoklch(0.519 0.104 92.2)
Decimal8283655
Display P3color(display-p3 0.494 0.400 0.027)

Copy-ready code

/* CSS */
color: #7e6607;
background-color: #7e6607;
/* Tailwind (arbitrary) */
class="text-[#7e6607] bg-[#7e6607]"
/* SCSS */
$brand: #7e6607;
/* SwiftUI */
Color(red: 0.494, green: 0.400, blue: 0.027)
/* Android */
Color.parseColor("#7e6607")
/* Flutter */
Color(0xFF7E6607)
/* Python / OpenCV (BGR) */
(7, 102, 126)

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

Accessibility — WCAG contrast

Aa
#7e6607 on white: 5.54:1
AA ✓ pass · AA-large · AAA
Aa
#7e6607 on black: 3.79:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #736400
deuteranopia · #796B10
tritanopia · #895C56

Color scale — 50 to 950

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

#FDFBF2
#FBF6E5
#F8EEC3
#F9E595
#F6D860
#F3CB2A
#E8BC0D
#C19C0B
#9B7D09
#7e6607
#463907
Base = 900Lightest = 50 · #FDFBF2Darkest = 950 · #463907
:root {
  --brand-50: #FDFBF2;
  --brand-100: #FBF6E5;
  --brand-200: #F8EEC3;
  --brand-300: #F9E595;
  --brand-400: #F6D860;
  --brand-500: #F3CB2A;
  --brand-600: #E8BC0D;
  --brand-700: #C19C0B;
  --brand-800: #9B7D09;
  --brand-900: #7e6607;
  --brand-950: #463907;
  --brand: #7e6607;
  --brand-ink: #ffffff;
}

Colors that work with #7e6607

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#FAF9F4
Tinted page background
Border#EDE4C0
Hairlines and dividers
Muted text#9B8B4B
Captions on the surface
Accent#043D81
Second voice, not a rival
Dark variant#796207
Hover, pressed, headers
Light variant#FEF9E7
Selected rows, tints
Dark surface#242114
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 #7e6607

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#071F7E
Analogous left#7E2B07
Analogous right#5B7E07
Split-complement 1#075B7E
Split-complement 2#2B077E
Triadic 1#077E66
Triadic 2#66077E
Tetradic#077E2B

RGB percentages

Red49.4%
Green40.0%
Blue2.7%

CMYK percentages

Cyan0.0%
Magenta19.0%
Yellow94.4%
Key (black)50.6%

Color previews

#7e6607 text on a black background

contrast 3.79:1

Card sample

#7e6607 text on a white background

contrast 5.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7e6607;
Background color
Panel with #7e6607 background
background-color: #7e6607;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7e6607;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(126, 102, 7, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(126, 102, 7, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7e6607;
background: linear-gradient(135deg, #7e6607, #477E07);

Monochromatic scale

Palettes built from #7e6607

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.

#7e6607 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.

#7e6607, answered

What color is #7e6607?

#7e6607 is a dark electric yellow, closest to Olive (ΔE2000 11.6). It sits at 48° on the hue wheel with 90% saturation and 26% lightness, which reads as warm.

What is the RGB value of #7e6607?

rgb(126, 102, 7) — 126 red, 102 green and 7 blue out of 255, or 49.4% / 40% / 2.7% by channel.

Is #7e6607 a light or a dark color?

It is a dark color. Relative luminance is 0.1395 and perceived brightness is 41%, so white text on it reaches 5.54:1.

Should I use black or white text on #7e6607?

White. It scores 5.54:1 against #7e6607, versus 3.79:1 for black — AA at any size.

What is the complementary color of #7e6607?

#071F7E sits directly opposite on the wheel. Softer options are the split-complements #075B7E and #2B077E, which give the same contrast with far less vibration.

What colors go well with #7e6607?

For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8B4B for secondary text, #043D81 as an accent and #796207 for hover and pressed states. For a palette, the analogous pair #7E2B07 and #5B7E07 stays calm, while #071F7E is the loudest partner.

What is #7e6607 in CMYK for printing?

cmyk(0%, 19%, 94%, 51%). 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 #7e6607 warm or cool?

Warm — it scores 15 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7E4907; nudged cooler, #6B7F06.

Work with #7e6607 in the Color Lab