Skip to content

#5b6521

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

RGB
91, 101, 33
HSL
69°, 51%, 26%
CMYK
10, 0, 67, 60
Luminance
0.1164

Every format

HEX#5b6521
RGBrgb(91, 101, 33)
HSLhsl(69, 51%, 26%)
CMYKcmyk(10%, 0%, 67%, 60%)
LABlab(40.6 -14.2 35.9)
LCHlch(40.6 38.6 111.6)
OKLCHoklch(0.483 0.092 117.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5b6521 on white: 6.31:1
AA ✓ pass · AA-large · AAA
Aa
#5b6521 on black: 3.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red35.7%
Green39.6%
Blue12.9%

CMYK percentages

Cyan9.9%
Magenta0.0%
Yellow67.3%
Key (black)60.4%

Color previews

#5b6521 text on a black background

contrast 3.33:1

Card sample

#5b6521 text on a white background

contrast 6.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(91, 101, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(91, 101, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5b6521;
background: linear-gradient(135deg, #5b6521, #2E6521);

Monochromatic scale

Palettes built from #5b6521

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5b6521 in the Color Lab