Skip to content

#796921

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

RGB
121, 105, 33
HSL
49°, 57%, 30%
CMYK
0, 13, 73, 53
Luminance
0.1428

Every format

HEX#796921
RGBrgb(121, 105, 33)
HSLhsl(49, 57%, 30%)
CMYKcmyk(0%, 13%, 73%, 53%)
LABlab(44.6 -2.3 41.0)
LCHlch(44.6 41.0 93.3)
OKLCHoklch(0.522 0.092 96.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#796921 on white: 5.45:1
AA ✓ pass · AA-large · AAA
Aa
#796921 on black: 3.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.5%
Green41.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta13.2%
Yellow72.7%
Key (black)52.5%

Color previews

#796921 text on a black background

contrast 3.86:1

Card sample

#796921 text on a white background

contrast 5.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(121, 105, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 105, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #796921;
background: linear-gradient(135deg, #796921, #4E7921);

Monochromatic scale

Palettes built from #796921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #796921 in the Color Lab