Skip to content

#8f9708

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

RGB
143, 151, 8
HSL
63°, 90%, 31%
CMYK
5, 0, 95, 41
Luminance
0.2799

At a glance

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

Hex
#8f9708
Hue
63°
yellow
Saturation
90%
electric
Lightness
31%
dark
Brightness
59%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2799
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
6.60:1
Closest name
Olive
ΔE2000 8
Where it sits
Hue63° of 360°
Saturation90%
Lightness31%
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#8f9708
RGBrgb(143, 151, 8)
HSLhsl(63, 90%, 31%)
CMYKcmyk(5%, 0%, 95%, 41%)
LABlab(59.9 -18.1 61.9)
LCHlch(59.9 64.5 106.2)
OKLCHoklch(0.648 0.143 113.5)
Decimal9410312
Display P3color(display-p3 0.561 0.592 0.031)

Copy-ready code

/* CSS */
color: #8f9708;
background-color: #8f9708;
/* Tailwind (arbitrary) */
class="text-[#8f9708] bg-[#8f9708]"
/* SCSS */
$brand: #8f9708;
/* SwiftUI */
Color(red: 0.561, green: 0.592, blue: 0.031)
/* Android */
Color.parseColor("#8f9708")
/* Flutter */
Color(0xFF8F9708)
/* Python / OpenCV (BGR) */
(8, 151, 143)

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

Accessibility — WCAG contrast

Aa
#8f9708 on white: 3.18:1
AA ✗ fail · AA-large · AAA
Aa
#8f9708 on black: 6.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A38F00
deuteranopia · #A3911D
tritanopia · #998D80

Color scale — 50 to 950

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

#FCFDF2
#F9FBE5
#F5F8C3
#F4F994
#EEF75F
#E8F42A
#DCE80C
#B7C20A
#8f9708
#6A700B
#424607
Base = 800Lightest = 50 · #FCFDF2Darkest = 950 · #424607
:root {
  --brand-50: #FCFDF2;
  --brand-100: #F9FBE5;
  --brand-200: #F5F8C3;
  --brand-300: #F4F994;
  --brand-400: #EEF75F;
  --brand-500: #E8F42A;
  --brand-600: #DCE80C;
  --brand-700: #B7C20A;
  --brand-800: #8f9708;
  --brand-900: #6A700B;
  --brand-950: #424607;
  --brand: #8f9708;
  --brand-ink: #000000;
}

Colors that work with #8f9708

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#969B4B
Captions on the surface
Accent#05229A
Second voice, not a rival
Dark variant#737906
Hover, pressed, headers
Light variant#FCFEE7
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 #8f9708

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#100897
Analogous left#975808
Analogous right#479708
Split-complement 1#084797
Split-complement 2#580897
Triadic 1#088F97
Triadic 2#97088F
Tetradic#089758

RGB percentages

Red56.1%
Green59.2%
Blue3.1%

CMYK percentages

Cyan5.3%
Magenta0.0%
Yellow94.7%
Key (black)40.8%

Color previews

#8f9708 text on a black background

contrast 6.60:1

Card sample

#8f9708 text on a white background

contrast 3.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8f9708;
Background color
Panel with #8f9708 background
background-color: #8f9708;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f9708

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.

#8f9708 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.

#8f9708, answered

What color is #8f9708?

#8f9708 is a dark electric yellow, closest to Olive (ΔE2000 8). It sits at 63° on the hue wheel with 90% saturation and 31% lightness, which reads as warm.

What is the RGB value of #8f9708?

rgb(143, 151, 8) — 143 red, 151 green and 8 blue out of 255, or 56.1% / 59.2% / 3.1% by channel.

Is #8f9708 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2799 and perceived brightness is 55%, so black text on it reaches 6.60:1.

Should I use black or white text on #8f9708?

Black. It scores 6.60:1 against #8f9708, versus 3.18:1 for white — AA at any size.

What is the complementary color of #8f9708?

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

What colors go well with #8f9708?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #969B4B for secondary text, #05229A as an accent and #737906 for hover and pressed states. For a palette, the analogous pair #975808 and #479708 stays calm, while #100897 is the loudest partner.

What is #8f9708 in CMYK for printing?

cmyk(5%, 0%, 95%, 41%). 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 #8f9708 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 #976B08; nudged cooler, #5B9906.

Work with #8f9708 in the Color Lab