Skip to content

#807f21

a dark, vivid yellow · cool · closest name: olive

RGB
128, 127, 33
HSL
59°, 59%, 32%
CMYK
0, 1, 74, 50
Luminance
0.1988

Every format

HEX#807f21
RGBrgb(128, 127, 33)
HSLhsl(59, 59%, 32%)
CMYKcmyk(0%, 1%, 74%, 50%)
LABlab(51.7 -11.4 48.1)
LCHlch(51.7 49.5 103.3)
OKLCHoklch(0.580 0.112 108.8)

Copy-ready code

/* CSS */
color: #807f21;
background-color: #807f21;
/* Tailwind (arbitrary) */
class="text-[#807f21] bg-[#807f21]"
/* SCSS */
$brand: #807f21;
/* SwiftUI */
Color(red: 0.502, green: 0.498, blue: 0.129)
/* Android */
Color.parseColor("#807f21")

Accessibility — WCAG contrast

Aa
#807f21 on white: 4.22:1
AA ✗ fail · AA-large · AAA
Aa
#807f21 on black: 4.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red50.2%
Green49.8%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta0.8%
Yellow74.2%
Key (black)49.8%

Color previews

#807f21 text on a black background

contrast 4.98:1

Card sample

#807f21 text on a white background

contrast 4.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #807f21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #807f21 in the Color Lab