Skip to content

#4f570b

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

RGB
79, 87, 11
HSL
66°, 78%, 19%
CMYK
9, 0, 87, 66
Luminance
0.0850

At a glance

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

Hex
#4f570b
Hue
66°
yellow
Saturation
78%
electric
Lightness
19%
deep
Brightness
34%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0850
WCAG relative
Temperature
Warm
30/100 cool
Color family
Yellow
Tone
Electric
Best ink
White
7.78:1
Closest name
Dark Olive Green
ΔE2000 8.5
Where it sits
Hue66° of 360°
Saturation78%
Lightness19%
Temperature
Warm ← → Cool30% 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#4f570b
RGBrgb(79, 87, 11)
HSLhsl(66, 78%, 19%)
CMYKcmyk(9%, 0%, 87%, 66%)
LABlab(35.0 -13.4 38.9)
LCHlch(35.0 41.1 109.0)
OKLCHoklch(0.435 0.094 115.9)
Decimal5199627
Display P3color(display-p3 0.310 0.341 0.043)

Copy-ready code

/* CSS */
color: #4f570b;
background-color: #4f570b;
/* Tailwind (arbitrary) */
class="text-[#4f570b] bg-[#4f570b]"
/* SCSS */
$brand: #4f570b;
/* SwiftUI */
Color(red: 0.310, green: 0.341, blue: 0.043)
/* Android */
Color.parseColor("#4f570b")
/* Flutter */
Color(0xFF4F570B)
/* Python / OpenCV (BGR) */
(11, 87, 79)

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 #4f570b · 7.78:1
Use #ffffffAAA at every size.
Aa
White text · 7.78:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.70:1
AA fail · AA large fail · AAA fail
Reading the other direction: #4f570b as text scores 7.78:1 on white and 2.70:1 on black.

Accessibility — WCAG contrast

Aa
#4f570b on white: 7.78:1
AA ✓ pass · AA-large · AAA
Aa
#4f570b on black: 2.70:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5E5200
deuteranopia · #5D5313
tritanopia · #555149

Color scale — 50 to 950

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

#FBFCF3
#F7F9E6
#F0F4C7
#E9F29B
#DEEC6A
#D4E638
#C5D91B
#A5B517
#849112
#606912
#4f570b
Base = 950Lightest = 50 · #FBFCF3Darkest = 950 · #4f570b
:root {
  --brand-50: #FBFCF3;
  --brand-100: #F7F9E6;
  --brand-200: #F0F4C7;
  --brand-300: #E9F29B;
  --brand-400: #DEEC6A;
  --brand-500: #D4E638;
  --brand-600: #C5D91B;
  --brand-700: #A5B517;
  --brand-800: #849112;
  --brand-900: #606912;
  --brand-950: #4f570b;
  --brand: #4f570b;
  --brand-ink: #ffffff;
}

Colors that work with #4f570b

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#E8EDC0
Hairlines and dividers
Muted text#929B4B
Captions on the surface
Accent#091559
Second voice, not a rival
Dark variant#67710E
Hover, pressed, headers
Light variant#FAFCE8
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 #4f570b

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
  • Text on black or near-black surfaces
  • 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#130B57
Analogous left#57390B
Analogous right#29570B
Split-complement 1#0B2957
Split-complement 2#390B57
Triadic 1#0B4F57
Triadic 2#570B4F
Tetradic#0B5739

RGB percentages

Red31.0%
Green34.1%
Blue4.3%

CMYK percentages

Cyan9.2%
Magenta0.0%
Yellow87.4%
Key (black)65.9%

Color previews

#4f570b text on a black background

contrast 2.70:1

Card sample

#4f570b text on a white background

contrast 7.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4f570b;
Background color
Panel with #4f570b background
background-color: #4f570b;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(79, 87, 11, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 87, 11, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f570b;
background: linear-gradient(135deg, #4f570b, #1C570B);

Monochromatic scale

Palettes built from #4f570b

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.

#4f570b 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.

#4f570b, answered

What color is #4f570b?

#4f570b is a deep electric yellow, closest to Dark Olive Green (ΔE2000 8.5). It sits at 66° on the hue wheel with 78% saturation and 19% lightness, which reads as warm.

What is the RGB value of #4f570b?

rgb(79, 87, 11) — 79 red, 87 green and 11 blue out of 255, or 31% / 34.1% / 4.3% by channel.

Is #4f570b a light or a dark color?

It is a dark color. Relative luminance is 0.0850 and perceived brightness is 31%, so white text on it reaches 7.78:1.

Should I use black or white text on #4f570b?

White. It scores 7.78:1 against #4f570b, versus 2.70:1 for black — AAA at any size.

What is the complementary color of #4f570b?

#130B57 sits directly opposite on the wheel. Softer options are the split-complements #0B2957 and #390B57, which give the same contrast with far less vibration.

What colors go well with #4f570b?

For interface work: #FAFAF4 as the surface, #E8EDC0 for borders, #929B4B for secondary text, #091559 as an accent and #67710E for hover and pressed states. For a palette, the analogous pair #57390B and #29570B stays calm, while #130B57 is the loudest partner.

What is #4f570b in CMYK for printing?

cmyk(9%, 0%, 87%, 66%). 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 #4f570b warm or cool?

Warm — it scores 30 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #57430B; nudged cooler, #33580A.

Work with #4f570b in the Color Lab