Skip to content

#7f8f00

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

RGB
127, 143, 0
HSL
67°, 100%, 28%
CMYK
11, 0, 100, 44
Luminance
0.2416

At a glance

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

Hex
#7f8f00
Hue
67°
yellow
Saturation
100%
electric
Lightness
28%
dark
Brightness
56%
HSV value
Perceived
51%
weighted brightness
Luminance
0.2416
WCAG relative
Temperature
Warm
31/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
5.83:1
Closest name
Olive
ΔE2000 6
Where it sits
Hue67° of 360°
Saturation100%
Lightness28%
Temperature
Warm ← → Cool31% 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#7f8f00
RGBrgb(127, 143, 0)
HSLhsl(67, 100%, 28%)
CMYKcmyk(11%, 0%, 100%, 44%)
LABlab(56.2 -21.2 59.9)
LCHlch(56.2 63.5 109.5)
OKLCHoklch(0.616 0.142 117.4)
Decimal8359680
Display P3color(display-p3 0.498 0.561 0.000)

Copy-ready code

/* CSS */
color: #7f8f00;
background-color: #7f8f00;
/* Tailwind (arbitrary) */
class="text-[#7f8f00] bg-[#7f8f00]"
/* SCSS */
$brand: #7f8f00;
/* SwiftUI */
Color(red: 0.498, green: 0.561, blue: 0.000)
/* Android */
Color.parseColor("#7f8f00")
/* Flutter */
Color(0xFF7F8F00)
/* Python / OpenCV (BGR) */
(0, 143, 127)

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

Accessibility — WCAG contrast

Aa
#7f8f00 on white: 3.60:1
AA ✗ fail · AA-large · AAA
Aa
#7f8f00 on black: 5.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #9A8600
deuteranopia · #988718
tritanopia · #888679

Color scale — 50 to 950

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

#FCFEF1
#F9FCE3
#F5FCC0
#F2FF8F
#ECFF57
#E6FF1F
#D9F500
#B5CC00
#7f8f00
#697605
#424903
Base = 800Lightest = 50 · #FCFEF1Darkest = 950 · #424903
:root {
  --brand-50: #FCFEF1;
  --brand-100: #F9FCE3;
  --brand-200: #F5FCC0;
  --brand-300: #F2FF8F;
  --brand-400: #ECFF57;
  --brand-500: #E6FF1F;
  --brand-600: #D9F500;
  --brand-700: #B5CC00;
  --brand-800: #7f8f00;
  --brand-900: #697605;
  --brand-950: #424903;
  --brand: #7f8f00;
  --brand-ink: #000000;
}

Colors that work with #7f8f00

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#E8EDC0
Hairlines and dividers
Muted text#929B4B
Captions on the surface
Accent#00148F
Second voice, not a rival
Dark variant#718000
Hover, pressed, headers
Light variant#FCFFE5
Selected rows, tints
Dark surface#232414
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 #7f8f00

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#10008F
Analogous left#8F5700
Analogous right#378F00
Split-complement 1#00378F
Split-complement 2#57008F
Triadic 1#007F8F
Triadic 2#8F007F
Tetradic#008F57

RGB percentages

Red49.8%
Green56.1%
Blue0.0%

CMYK percentages

Cyan11.2%
Magenta0.0%
Yellow100.0%
Key (black)43.9%

Color previews

#7f8f00 text on a black background

contrast 5.83:1

Card sample

#7f8f00 text on a white background

contrast 3.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(127, 143, 0, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 143, 0, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f8f00;
background: linear-gradient(135deg, #7f8f00, #208F00);

Monochromatic scale

Palettes built from #7f8f00

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.

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

#7f8f00, answered

What color is #7f8f00?

#7f8f00 is a dark electric yellow, closest to Olive (ΔE2000 6). It sits at 67° on the hue wheel with 100% saturation and 28% lightness, which reads as warm.

What is the RGB value of #7f8f00?

rgb(127, 143, 0) — 127 red, 143 green and 0 blue out of 255, or 49.8% / 56.1% / 0% by channel.

Is #7f8f00 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2416 and perceived brightness is 51%, so black text on it reaches 5.83:1.

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

Black. It scores 5.83:1 against #7f8f00, versus 3.60:1 for white — AA at any size.

What is the complementary color of #7f8f00?

#10008F sits directly opposite on the wheel. Softer options are the split-complements #00378F and #57008F, which give the same contrast with far less vibration.

What colors go well with #7f8f00?

For interface work: #FAFAF4 as the surface, #E8EDC0 for borders, #929B4B for secondary text, #00148F as an accent and #718000 for hover and pressed states. For a palette, the analogous pair #8F5700 and #378F00 stays calm, while #10008F is the loudest partner.

What is #7f8f00 in CMYK for printing?

cmyk(11%, 0%, 100%, 44%). 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 #7f8f00 warm or cool?

Warm — it scores 31 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8F6A00; nudged cooler, #4A8F00.

Work with #7f8f00 in the Color Lab