Skip to content

#807b21

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

RGB
128, 123, 33
HSL
57°, 59%, 32%
CMYK
0, 4, 74, 50
Luminance
0.1886

At a glance

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

Hex
#807b21
Hue
57°
yellow
Saturation
59%
vivid
Lightness
32%
dark
Brightness
50%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1886
WCAG relative
Temperature
Warm
22/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
4.77:1
Closest name
Olive
ΔE2000 3.5
Where it sits
Hue57° of 360°
Saturation59%
Lightness32%
Temperature
Warm ← → Cool22% 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#807b21
RGBrgb(128, 123, 33)
HSLhsl(57, 59%, 32%)
CMYKcmyk(0%, 4%, 74%, 50%)
LABlab(50.5 -9.2 47.0)
LCHlch(50.5 47.9 101.1)
OKLCHoklch(0.570 0.108 106.2)
Decimal8420129
Display P3color(display-p3 0.502 0.482 0.129)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#807b21 on white: 4.40:1
AA ✗ fail · AA-large · AAA
Aa
#807b21 on black: 4.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #867611
deuteranopia · #887A27
tritanopia · #8A7269

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #807b21 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
#F7F6E9
#EFEDCD
#E8E4A6
#DCD779
#D1CA4D
#C3BB32
#A29C2A
#807b21
#5E5B1C
#3B3911
Base = 800Lightest = 50 · #FBFAF4Darkest = 950 · #3B3911
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F7F6E9;
  --brand-200: #EFEDCD;
  --brand-300: #E8E4A6;
  --brand-400: #DCD779;
  --brand-500: #D1CA4D;
  --brand-600: #C3BB32;
  --brand-700: #A29C2A;
  --brand-800: #807b21;
  --brand-900: #5E5B1C;
  --brand-950: #3B3911;
  --brand: #807b21;
  --brand-ink: #000000;
}

Colors that work with #807b21

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#FAFAF4
Tinted page background
Border#EDEAC0
Hairlines and dividers
Muted text#9B974B
Captions on the surface
Accent#1E3D83
Second voice, not a rival
Dark variant#65611A
Hover, pressed, headers
Light variant#FAF9EB
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 #807b21

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#212680
Analogous left#804C21
Analogous right#568021
Split-complement 1#215680
Split-complement 2#4C2180
Triadic 1#21807B
Triadic 2#7B2180
Tetradic#21804C

RGB percentages

Red50.2%
Green48.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta3.9%
Yellow74.2%
Key (black)49.8%

Color previews

#807b21 text on a black background

contrast 4.77:1

Card sample

#807b21 text on a white background

contrast 4.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #807b21

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.

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

#807b21, answered

What color is #807b21?

#807b21 is a dark vivid yellow, closest to Olive (ΔE2000 3.5). It sits at 57° on the hue wheel with 59% saturation and 32% lightness, which reads as warm.

What is the RGB value of #807b21?

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

Is #807b21 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1886 and perceived brightness is 46%, so black text on it reaches 4.77:1.

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

Black. It scores 4.77:1 against #807b21, versus 4.40:1 for white — AA at any size.

What is the complementary color of #807b21?

#212680 sits directly opposite on the wheel. Softer options are the split-complements #215680 and #4C2180, which give the same contrast with far less vibration.

What colors go well with #807b21?

For interface work: #FAFAF4 as the surface, #EDEAC0 for borders, #9B974B for secondary text, #1E3D83 as an accent and #65611A for hover and pressed states. For a palette, the analogous pair #804C21 and #568021 stays calm, while #212680 is the loudest partner.

What is #807b21 in CMYK for printing?

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

Is #807b21 warm or cool?

Warm — it scores 22 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #805821; nudged cooler, #63821F.

Work with #807b21 in the Color Lab