Skip to content

#5f5f0e

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

RGB
95, 95, 14
HSL
60°, 74%, 21%
CMYK
0, 0, 85, 63
Luminance
0.1065

At a glance

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

Hex
#5f5f0e
Hue
60°
yellow
Saturation
74%
vivid
Lightness
21%
deep
Brightness
37%
HSV value
Perceived
35%
weighted brightness
Luminance
0.1065
WCAG relative
Temperature
Warm
25/100 cool
Color family
Yellow
Tone
Vivid
Best ink
White
6.71:1
Closest name
Dark Olive Green
ΔE2000 8.9
Where it sits
Hue60° of 360°
Saturation74%
Lightness21%
Temperature
Warm ← → Cool25% 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#5f5f0e
RGBrgb(95, 95, 14)
HSLhsl(60, 74%, 21%)
CMYKcmyk(0%, 0%, 85%, 63%)
LABlab(39.0 -10.0 42.0)
LCHlch(39.0 43.2 103.4)
OKLCHoklch(0.471 0.097 109.6)
Decimal6250254
Display P3color(display-p3 0.373 0.373 0.055)

Copy-ready code

/* CSS */
color: #5f5f0e;
background-color: #5f5f0e;
/* Tailwind (arbitrary) */
class="text-[#5f5f0e] bg-[#5f5f0e]"
/* SCSS */
$brand: #5f5f0e;
/* SwiftUI */
Color(red: 0.373, green: 0.373, blue: 0.055)
/* Android */
Color.parseColor("#5f5f0e")
/* Flutter */
Color(0xFF5F5F0E)
/* Python / OpenCV (BGR) */
(14, 95, 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 #5f5f0e · 6.71:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.71:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.13:1
AA fail · AA large pass · AAA fail
Reading the other direction: #5f5f0e as text scores 6.71:1 on white and 3.13:1 on black.

Accessibility — WCAG contrast

Aa
#5f5f0e on white: 6.71:1
AA ✓ pass · AA-large · AAA
Aa
#5f5f0e on black: 3.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #675B00
deuteranopia · #685D16
tritanopia · #665850

Color scale — 50 to 950

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

#FCFCF3
#F9F9E7
#F4F4C8
#F1F19D
#E9E96C
#E2E23B
#D5D51F
#B2B21A
#8E8E15
#5f5f0e
#40400C
Base = 900Lightest = 50 · #FCFCF3Darkest = 950 · #40400C
:root {
  --brand-50: #FCFCF3;
  --brand-100: #F9F9E7;
  --brand-200: #F4F4C8;
  --brand-300: #F1F19D;
  --brand-400: #E9E96C;
  --brand-500: #E2E23B;
  --brand-600: #D5D51F;
  --brand-700: #B2B21A;
  --brand-800: #8E8E15;
  --brand-900: #5f5f0e;
  --brand-950: #40400C;
  --brand: #5f5f0e;
  --brand-ink: #ffffff;
}

Colors that work with #5f5f0e

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#EDEDC0
Hairlines and dividers
Muted text#9B9B4B
Captions on the surface
Accent#0C2161
Second voice, not a rival
Dark variant#6F6F10
Hover, pressed, headers
Light variant#FCFCE9
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 #5f5f0e

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
  • 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#0E0E5F
Analogous left#5F370E
Analogous right#375F0E
Split-complement 1#0E375F
Split-complement 2#370E5F
Triadic 1#0E5F5F
Triadic 2#5F0E5F
Tetradic#0E5F37

RGB percentages

Red37.3%
Green37.3%
Blue5.5%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow85.3%
Key (black)62.7%

Color previews

#5f5f0e text on a black background

contrast 3.13:1

Card sample

#5f5f0e text on a white background

contrast 6.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f5f0e

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.

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

#5f5f0e, answered

What color is #5f5f0e?

#5f5f0e is a deep vivid yellow, closest to Dark Olive Green (ΔE2000 8.9). It sits at 60° on the hue wheel with 74% saturation and 21% lightness, which reads as warm.

What is the RGB value of #5f5f0e?

rgb(95, 95, 14) — 95 red, 95 green and 14 blue out of 255, or 37.3% / 37.3% / 5.5% by channel.

Is #5f5f0e a light or a dark color?

It is a dark color. Relative luminance is 0.1065 and perceived brightness is 35%, so white text on it reaches 6.71:1.

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

White. It scores 6.71:1 against #5f5f0e, versus 3.13:1 for black — AA at any size.

What is the complementary color of #5f5f0e?

#0E0E5F sits directly opposite on the wheel. Softer options are the split-complements #0E375F and #370E5F, which give the same contrast with far less vibration.

What colors go well with #5f5f0e?

For interface work: #FAFAF4 as the surface, #EDEDC0 for borders, #9B9B4B for secondary text, #0C2161 as an accent and #6F6F10 for hover and pressed states. For a palette, the analogous pair #5F370E and #375F0E stays calm, while #0E0E5F is the loudest partner.

What is #5f5f0e in CMYK for printing?

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

Is #5f5f0e warm or cool?

Warm — it scores 25 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5F410E; nudged cooler, #42600D.

Work with #5f5f0e in the Color Lab