Skip to content

#5f5913

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

RGB
95, 89, 19
HSL
55°, 67%, 22%
CMYK
0, 6, 80, 63
Luminance
0.0962

At a glance

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

Hex
#5f5913
Hue
55°
yellow
Saturation
67%
vivid
Lightness
22%
deep
Brightness
37%
HSV value
Perceived
34%
weighted brightness
Luminance
0.0962
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Vivid
Best ink
White
7.18:1
Closest name
Dark Olive Green
ΔE2000 10.8
Where it sits
Hue55° of 360°
Saturation67%
Lightness22%
Temperature
Warm ← → Cool21% 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#5f5913
RGBrgb(95, 89, 19)
HSLhsl(55, 67%, 22%)
CMYKcmyk(0%, 6%, 80%, 63%)
LABlab(37.2 -6.3 38.6)
LCHlch(37.2 39.1 99.3)
OKLCHoklch(0.456 0.087 104.3)
Decimal6248723
Display P3color(display-p3 0.373 0.349 0.075)

Copy-ready code

/* CSS */
color: #5f5913;
background-color: #5f5913;
/* Tailwind (arbitrary) */
class="text-[#5f5913] bg-[#5f5913]"
/* SCSS */
$brand: #5f5913;
/* SwiftUI */
Color(red: 0.373, green: 0.349, blue: 0.075)
/* Android */
Color.parseColor("#5f5913")
/* Flutter */
Color(0xFF5F5913)
/* Python / OpenCV (BGR) */
(19, 89, 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 #5f5913 · 7.18:1
Use #ffffffAAA at every size.
Aa
White text · 7.18:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.92:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5f5913 as text scores 7.18:1 on white and 2.92:1 on black.

Accessibility — WCAG contrast

Aa
#5f5913 on white: 7.18:1
AA ✓ pass · AA-large · AAA
Aa
#5f5913 on black: 2.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #625605
deuteranopia · #645918
tritanopia · #67524C

Color scale — 50 to 950

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

#FBFBF3
#F8F6E8
#F1EECA
#ECE6A1
#E3DA73
#DACE44
#CCBF29
#AA9F22
#88801B
#5f5913
#3E3A0F
Base = 900Lightest = 50 · #FBFBF3Darkest = 950 · #3E3A0F
:root {
  --brand-50: #FBFBF3;
  --brand-100: #F8F6E8;
  --brand-200: #F1EECA;
  --brand-300: #ECE6A1;
  --brand-400: #E3DA73;
  --brand-500: #DACE44;
  --brand-600: #CCBF29;
  --brand-700: #AA9F22;
  --brand-800: #88801B;
  --brand-900: #5f5913;
  --brand-950: #3E3A0F;
  --brand: #5f5913;
  --brand-ink: #ffffff;
}

Colors that work with #5f5913

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#EDE9C0
Hairlines and dividers
Muted text#9B954B
Captions on the surface
Accent#112B62
Second voice, not a rival
Dark variant#6A6415
Hover, pressed, headers
Light variant#FBF9EA
Selected rows, tints
Dark surface#242314
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 #5f5913

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#13195F
Analogous left#5F3313
Analogous right#3F5F13
Split-complement 1#133F5F
Split-complement 2#33135F
Triadic 1#135F59
Triadic 2#59135F
Tetradic#135F33

RGB percentages

Red37.3%
Green34.9%
Blue7.5%

CMYK percentages

Cyan0.0%
Magenta6.3%
Yellow80.0%
Key (black)62.7%

Color previews

#5f5913 text on a black background

contrast 2.92:1

Card sample

#5f5913 text on a white background

contrast 7.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(95, 89, 19, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(95, 89, 19, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5f5913;
background: linear-gradient(135deg, #5f5913, #325F13);

Monochromatic scale

Palettes built from #5f5913

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.

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

#5f5913, answered

What color is #5f5913?

#5f5913 is a deep vivid yellow, closest to Dark Olive Green (ΔE2000 10.8). It sits at 55° on the hue wheel with 67% saturation and 22% lightness, which reads as warm.

What is the RGB value of #5f5913?

rgb(95, 89, 19) — 95 red, 89 green and 19 blue out of 255, or 37.3% / 34.9% / 7.5% by channel.

Is #5f5913 a light or a dark color?

It is a dark color. Relative luminance is 0.0962 and perceived brightness is 34%, so white text on it reaches 7.18:1.

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

White. It scores 7.18:1 against #5f5913, versus 2.92:1 for black — AAA at any size.

What is the complementary color of #5f5913?

#13195F sits directly opposite on the wheel. Softer options are the split-complements #133F5F and #33135F, which give the same contrast with far less vibration.

What colors go well with #5f5913?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B954B for secondary text, #112B62 as an accent and #6A6415 for hover and pressed states. For a palette, the analogous pair #5F3313 and #3F5F13 stays calm, while #13195F is the loudest partner.

What is #5f5913 in CMYK for printing?

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

Is #5f5913 warm or cool?

Warm — it scores 21 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5F3D13; nudged cooler, #4A6012.

Work with #5f5913 in the Color Lab