#5A7821 color

#5A7821 rgb(90, 120, 33)
Shades of green

The hex color #5A7821 is a dark, moderate yellow-green.

In the RGB color model it is made of 35.3% red, 47.1% green and 12.9% blue (90, 120, 33).

Its hue angle is 81°, with 57% saturation and 30% lightness. For print, the CMYK equivalent is 25% cyan, 0% magenta, 73% yellow and 53% black.

The closest named color is Master Chief (#507D2A), a difference of 3.6 ΔE, a small difference.

White text is the more readable choice on this background (contrast 5.07:1).

#5A7821 color codes

HEX#5A7821
RGBrgb(90, 120, 33)
RGB percentrgb(35.3%, 47.1%, 12.9%)
HSLhsl(81, 57%, 30%)
HSV / HSBhsv(81, 73%, 47%)
CMYKcmyk(25%, 0%, 73%, 53%)
CIE LABlab(46.6, -24.64, 42.11)
CIE LCHlch(46.6, 48.79, 120.34)
CIE XYZxyz(11.207, 15.716, 3.882)
Decimal5928993
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #5A7821, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #5A7821RatioAAAAAAA large
Sample text4.14:1FailFailPass
Sample text5.07:1PassFailPass
#5A7821 as text onRatioAAAAAAA large
Sample text5.07:1PassFailPass
Sample text4.14:1FailFailPass

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #5A7821 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #5a7821; }
.text { color: #5a7821; }
.border { border: 2px solid #5a7821; }
.transparent { background-color: rgb(90 120 33 / 50%); }
.gradient { background: linear-gradient(to right, #5a7821, #2f7821); }
Background
Text color
Border

Similar colors

Questions

What color is #5A7821?
#5A7821 is a dark, moderate yellow-green, closest to the named color Master Chief. It belongs to the green family of colors.
What is the RGB value of #5A7821?
The RGB value is 90, 120, 33: 90 red, 120 green and 33 blue on a 0 to 255 scale.
What is the complementary color of #5A7821?
The complementary color is #3F2178, found by rotating the hue 180° on the color wheel.
Is black or white text better on #5A7821?
White text. Black text has a contrast ratio of 4.14:1 and white text 5.07:1. WCAG asks for at least 4.5:1 for normal text.