Skip to content

#7c8213

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

RGB
124, 130, 19
HSL
63°, 75%, 29%
CMYK
5, 0, 85, 49
Luminance
0.2030

At a glance

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

Hex
#7c8213
Hue
63°
yellow
Saturation
75%
vivid
Lightness
29%
dark
Brightness
51%
HSV value
Perceived
47%
weighted brightness
Luminance
0.2030
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
5.06:1
Closest name
Olive
ΔE2000 2.2
Where it sits
Hue63° of 360°
Saturation75%
Lightness29%
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#7c8213
RGBrgb(124, 130, 19)
HSLhsl(63, 75%, 29%)
CMYKcmyk(5%, 0%, 85%, 49%)
LABlab(52.2 -15.4 52.9)
LCHlch(52.2 55.1 106.2)
OKLCHoklch(0.582 0.124 113.0)
Decimal8159763
Display P3color(display-p3 0.486 0.510 0.075)

Copy-ready code

/* CSS */
color: #7c8213;
background-color: #7c8213;
/* Tailwind (arbitrary) */
class="text-[#7c8213] bg-[#7c8213]"
/* SCSS */
$brand: #7c8213;
/* SwiftUI */
Color(red: 0.486, green: 0.510, blue: 0.075)
/* Android */
Color.parseColor("#7c8213")
/* Flutter */
Color(0xFF7C8213)
/* Python / OpenCV (BGR) */
(19, 130, 124)

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

Accessibility — WCAG contrast

Aa
#7c8213 on white: 4.15:1
AA ✗ fail · AA-large · AAA
Aa
#7c8213 on black: 5.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8D7B00
deuteranopia · #8D7E1F
tritanopia · #857A6E

Color scale — 50 to 950

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

#FBFCF3
#F8F9E7
#F1F4C8
#ECF19D
#E3EA6C
#D9E23B
#CCD61F
#AAB21A
#7c8213
#636713
#3E400C
Base = 800Lightest = 50 · #FBFCF3Darkest = 950 · #3E400C
:root {
  --brand-50: #FBFCF3;
  --brand-100: #F8F9E7;
  --brand-200: #F1F4C8;
  --brand-300: #ECF19D;
  --brand-400: #E3EA6C;
  --brand-500: #D9E23B;
  --brand-600: #CCD61F;
  --brand-700: #AAB21A;
  --brand-800: #7c8213;
  --brand-900: #636713;
  --brand-950: #3E400C;
  --brand: #7c8213;
  --brand-ink: #000000;
}

Colors that work with #7c8213

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#102785
Second voice, not a rival
Dark variant#6A6F10
Hover, pressed, headers
Light variant#FBFCE9
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 #7c8213

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

Works well for
  • Headings from 24px up on white
  • 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
  • Small text on white — under 4.5:1
  • 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#191382
Analogous left#825013
Analogous right#458213
Split-complement 1#134582
Split-complement 2#501382
Triadic 1#137C82
Triadic 2#82137C
Tetradic#138250

RGB percentages

Red48.6%
Green51.0%
Blue7.5%

CMYK percentages

Cyan4.6%
Magenta0.0%
Yellow85.4%
Key (black)49.0%

Color previews

#7c8213 text on a black background

contrast 5.06:1

Card sample

#7c8213 text on a white background

contrast 4.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(124, 130, 19, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(124, 130, 19, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7c8213;
background: linear-gradient(135deg, #7c8213, #328213);

Monochromatic scale

Palettes built from #7c8213

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.

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

#7c8213, answered

What color is #7c8213?

#7c8213 is a dark vivid yellow, closest to Olive (ΔE2000 2.2). It sits at 63° on the hue wheel with 75% saturation and 29% lightness, which reads as warm.

What is the RGB value of #7c8213?

rgb(124, 130, 19) — 124 red, 130 green and 19 blue out of 255, or 48.6% / 51% / 7.5% by channel.

Is #7c8213 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2030 and perceived brightness is 47%, so black text on it reaches 5.06:1.

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

Black. It scores 5.06:1 against #7c8213, versus 4.15:1 for white — AA at any size.

What is the complementary color of #7c8213?

#191382 sits directly opposite on the wheel. Softer options are the split-complements #134582 and #501382, which give the same contrast with far less vibration.

What colors go well with #7c8213?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #979B4B for secondary text, #102785 as an accent and #6A6F10 for hover and pressed states. For a palette, the analogous pair #825013 and #458213 stays calm, while #191382 is the loudest partner.

What is #7c8213 in CMYK for printing?

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

Is #7c8213 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 #825F13; nudged cooler, #548311.

Work with #7c8213 in the Color Lab