#5A9218 color
The hex color #5A9218 is a dark, moderate yellow-green.
In the RGB color model it is made of 35.3% red, 57.3% green and 9.4% blue (90, 146, 24).
Its hue angle is 88°, with 72% saturation and 33% lightness. For print, the CMYK equivalent is 38% cyan, 0% magenta, 84% yellow and 43% black.
The closest named color is Basil (#579229), a difference of 2.1 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 5.56:1).
#5A9218 color codes
| HEX | #5A9218 | |
|---|---|---|
| RGB | rgb(90, 146, 24) | |
| RGB percent | rgb(35.3%, 57.3%, 9.4%) | |
| HSL | hsl(88, 72%, 33%) | |
| HSV / HSB | hsv(88, 84%, 57%) | |
| CMYK | cmyk(38%, 0%, 84%, 43%) | |
| CIE LAB | lab(54.86, -37.3, 53.07) | |
| CIE LCH | lch(54.86, 64.87, 125.1) | |
| CIE XYZ | xyz(14.66, 22.797, 4.492) | |
| Decimal | 5935640 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5A9218, 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 #5A9218 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.56:1 | Pass | Fail | Pass |
| Sample text | 3.78:1 | Fail | Fail | Pass |
| #5A9218 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.78:1 | Fail | Fail | Pass |
| Sample text | 5.56:1 | Pass | Fail | Pass |
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 #5A9218 looks to people with the most common types of color vision deficiency.
#988600Protanopia
no red cones#918227Deuteranopia
no green cones#5b8c7cTritanopia
no blue cones#838383Achromatopsia
no color vision
CSS examples
.background { background-color: #5a9218; }
.text { color: #5a9218; }
.border { border: 2px solid #5a9218; }
.transparent { background-color: rgb(90 146 24 / 50%); }
.gradient { background: linear-gradient(to right, #5a9218, #1d9218); }
Similar colors
#579229Basil#6a8e22Asparagus Sultan#6b8e23Olive Drab#669900Gecko’s Dream#558800Pesto Alla Genovese#689938Hidden Valley#659c35Radiant Foliage#3f9b0bGrass Is Greener
Questions
- What color is #5A9218?
- #5A9218 is a dark, moderate yellow-green, closest to the named color Basil. It belongs to the green family of colors.
- What is the RGB value of #5A9218?
- The RGB value is 90, 146, 24: 90 red, 146 green and 24 blue on a 0 to 255 scale.
- What is the complementary color of #5A9218?
- The complementary color is #501892, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5A9218?
- Black text. Black text has a contrast ratio of 5.56:1 and white text 3.78:1. WCAG asks for at least 4.5:1 for normal text.