Skip to content

#5f4c01

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

RGB
95, 76, 1
HSL
48°, 98%, 19%
CMYK
0, 20, 99, 63
Luminance
0.0760

At a glance

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

Hex
#5f4c01
Hue
48°
yellow
Saturation
98%
electric
Lightness
19%
deep
Brightness
37%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0760
WCAG relative
Temperature
Warm
15/100 cool
Color family
Yellow
Tone
Electric
Best ink
White
8.33:1
Closest name
Dark Olive Green
ΔE2000 17
Where it sits
Hue48° of 360°
Saturation98%
Lightness19%
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#5f4c01
RGBrgb(95, 76, 1)
HSLhsl(48, 98%, 19%)
CMYKcmyk(0%, 20%, 99%, 63%)
LABlab(33.1 0.8 41.4)
LCHlch(33.1 41.4 88.9)
OKLCHoklch(0.424 0.086 92.2)
Decimal6245377
Display P3color(display-p3 0.373 0.298 0.004)

Copy-ready code

/* CSS */
color: #5f4c01;
background-color: #5f4c01;
/* Tailwind (arbitrary) */
class="text-[#5f4c01] bg-[#5f4c01]"
/* SCSS */
$brand: #5f4c01;
/* SwiftUI */
Color(red: 0.373, green: 0.298, blue: 0.004)
/* Android */
Color.parseColor("#5f4c01")
/* Flutter */
Color(0xFF5F4C01)
/* Python / OpenCV (BGR) */
(1, 76, 95)

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

Accessibility — WCAG contrast

Aa
#5f4c01 on white: 8.33:1
AA ✓ pass · AA-large · AAA
Aa
#5f4c01 on black: 2.52:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #564B00
deuteranopia · #5B5007
tritanopia · #684440

Color scale — 50 to 950

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

#FDFBF1
#FCF7E3
#FBEFC1
#FEE890
#FDDC58
#FDD021
#F2C203
#CAA202
#A18102
#745E06
#5f4c01
Base = 950Lightest = 50 · #FDFBF1Darkest = 950 · #5f4c01
:root {
  --brand-50: #FDFBF1;
  --brand-100: #FCF7E3;
  --brand-200: #FBEFC1;
  --brand-300: #FEE890;
  --brand-400: #FDDC58;
  --brand-500: #FDD021;
  --brand-600: #F2C203;
  --brand-700: #CAA202;
  --brand-800: #A18102;
  --brand-900: #745E06;
  --brand-950: #5f4c01;
  --brand: #5f4c01;
  --brand-ink: #ffffff;
}

Colors that work with #5f4c01

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#002B60
Second voice, not a rival
Dark variant#7E6501
Hover, pressed, headers
Light variant#FFFAE6
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 #5f4c01

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#01145F
Analogous left#5F1D01
Analogous right#435F01
Split-complement 1#01435F
Split-complement 2#1D015F
Triadic 1#015F4C
Triadic 2#4C015F
Tetradic#015F1D

RGB percentages

Red37.3%
Green29.8%
Blue0.4%

CMYK percentages

Cyan0.0%
Magenta20.0%
Yellow98.9%
Key (black)62.7%

Color previews

#5f4c01 text on a black background

contrast 2.52:1

Card sample

#5f4c01 text on a white background

contrast 8.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5f4c01;
Background color
Panel with #5f4c01 background
background-color: #5f4c01;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(95, 76, 1, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(95, 76, 1, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5f4c01;
background: linear-gradient(135deg, #5f4c01, #335F01);

Monochromatic scale

Palettes built from #5f4c01

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.

#5f4c01 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.

#5f4c01, answered

What color is #5f4c01?

#5f4c01 is a deep electric yellow, closest to Dark Olive Green (ΔE2000 17). It sits at 48° on the hue wheel with 98% saturation and 19% lightness, which reads as warm.

What is the RGB value of #5f4c01?

rgb(95, 76, 1) — 95 red, 76 green and 1 blue out of 255, or 37.3% / 29.8% / 0.4% by channel.

Is #5f4c01 a light or a dark color?

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

Should I use black or white text on #5f4c01?

White. It scores 8.33:1 against #5f4c01, versus 2.52:1 for black — AAA at any size.

What is the complementary color of #5f4c01?

#01145F sits directly opposite on the wheel. Softer options are the split-complements #01435F and #1D015F, which give the same contrast with far less vibration.

What colors go well with #5f4c01?

For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8B4B for secondary text, #002B60 as an accent and #7E6501 for hover and pressed states. For a palette, the analogous pair #5F1D01 and #435F01 stays calm, while #01145F is the loudest partner.

What is #5f4c01 in CMYK for printing?

cmyk(0%, 20%, 99%, 63%). 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 #5f4c01 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 #5F3301; nudged cooler, #506000.

Work with #5f4c01 in the Color Lab