Skip to content

#917b21

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

RGB
145, 123, 33
HSL
48°, 63%, 35%
CMYK
0, 15, 77, 43
Luminance
0.2030

At a glance

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

Hex
#917b21
Hue
48°
yellow
Saturation
63%
vivid
Lightness
35%
dark
Brightness
57%
HSV value
Perceived
48%
weighted brightness
Luminance
0.2030
WCAG relative
Temperature
Warm
15/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
5.06:1
Closest name
Olive
ΔE2000 7.3
Where it sits
Hue48° of 360°
Saturation63%
Lightness35%
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#917b21
RGBrgb(145, 123, 33)
HSLhsl(48, 63%, 35%)
CMYKcmyk(0%, 15%, 77%, 43%)
LABlab(52.2 -1.3 49.1)
LCHlch(52.2 49.2 91.5)
OKLCHoklch(0.587 0.108 94.7)
Decimal9534241
Display P3color(display-p3 0.569 0.482 0.129)

Copy-ready code

/* CSS */
color: #917b21;
background-color: #917b21;
/* Tailwind (arbitrary) */
class="text-[#917b21] bg-[#917b21]"
/* SCSS */
$brand: #917b21;
/* SwiftUI */
Color(red: 0.569, green: 0.482, blue: 0.129)
/* Android */
Color.parseColor("#917b21")
/* Flutter */
Color(0xFF917B21)
/* Python / OpenCV (BGR) */
(33, 123, 145)

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

Accessibility — WCAG contrast

Aa
#917b21 on white: 4.15:1
AA ✗ fail · AA-large · AAA
Aa
#917b21 on black: 5.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #897910
deuteranopia · #8E7F27
tritanopia · #9D716A

Color scale — 50 to 950

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

#FBFAF4
#F7F4E8
#F0E9CC
#EADCA4
#E0CB76
#D5BA48
#C7A92D
#A68D26
#917b21
#61531A
#3C3410
Base = 800Lightest = 50 · #FBFAF4Darkest = 950 · #3C3410
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F7F4E8;
  --brand-200: #F0E9CC;
  --brand-300: #EADCA4;
  --brand-400: #E0CB76;
  --brand-500: #D5BA48;
  --brand-600: #C7A92D;
  --brand-700: #A68D26;
  --brand-800: #917b21;
  --brand-900: #61531A;
  --brand-950: #3C3410;
  --brand: #917b21;
  --brand-ink: #000000;
}

Colors that work with #917b21

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#FAF9F4
Tinted page background
Border#EDE4C0
Hairlines and dividers
Muted text#9B8B4B
Captions on the surface
Accent#1D5395
Second voice, not a rival
Dark variant#685818
Hover, pressed, headers
Light variant#FAF7EA
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 #917b21

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#213791
Analogous left#914321
Analogous right#6F9121
Split-complement 1#216F91
Split-complement 2#432191
Triadic 1#21917B
Triadic 2#7B2191
Tetradic#219143

RGB percentages

Red56.9%
Green48.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta15.2%
Yellow77.2%
Key (black)43.1%

Color previews

#917b21 text on a black background

contrast 5.06:1

Card sample

#917b21 text on a white background

contrast 4.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #917b21;
Background color
Panel with #917b21 background
background-color: #917b21;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(145, 123, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(145, 123, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #917b21;
background: linear-gradient(135deg, #917b21, #5C9121);

Monochromatic scale

Palettes built from #917b21

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.

#917b21 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.

#917b21, answered

What color is #917b21?

#917b21 is a dark vivid yellow, closest to Olive (ΔE2000 7.3). It sits at 48° on the hue wheel with 63% saturation and 35% lightness, which reads as warm.

What is the RGB value of #917b21?

rgb(145, 123, 33) — 145 red, 123 green and 33 blue out of 255, or 56.9% / 48.2% / 12.9% by channel.

Is #917b21 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2030 and perceived brightness is 48%, so black text on it reaches 5.06:1.

Should I use black or white text on #917b21?

Black. It scores 5.06:1 against #917b21, versus 4.15:1 for white — AA at any size.

What is the complementary color of #917b21?

#213791 sits directly opposite on the wheel. Softer options are the split-complements #216F91 and #432191, which give the same contrast with far less vibration.

What colors go well with #917b21?

For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8B4B for secondary text, #1D5395 as an accent and #685818 for hover and pressed states. For a palette, the analogous pair #914321 and #6F9121 stays calm, while #213791 is the loudest partner.

What is #917b21 in CMYK for printing?

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

Is #917b21 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 #915E21; nudged cooler, #7F931F.

Work with #917b21 in the Color Lab