Yellow Green Hex Code #9ACD32
Yellow Green is a light, strong green with the hex code #9ACD32. In RGB it is 154, 205, 50, and in HSL it is 80°, 61%, 50%. It is one of the 148 named colors in CSS, so you can write “yellowgreen” instead of the hex code.
- HEX
- #9ACD32
- RGB
- rgb(154, 205, 50)
- HSL
- hsl(80, 61%, 50%)
- HSV
- hsv(80°, 76%, 80%)
- CMYK
- cmyk(25%, 0%, 76%, 20%)
- CSS name
- yellowgreen
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Yellow Green
On a white background Yellow Green has a contrast ratio of 1.88:1 (Fail), and on black 11.15:1 (AAA). Black text is the better choice on top of it.
It sits between the warm and cool halves of the color wheel, so it pairs comfortably with either.
Green suggests growth, health and success, so it is common for confirmations, finance and eco brands. Check text contrast carefully, because many mid-tone greens fall short of the WCAG minimum with white text.
Shades and tints of Yellow Green
Tints mix Yellow Green with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Color harmonies for Yellow Green
These schemes are calculated from Yellow Green on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.
On the artist’s RYB wheel, the complement of Yellow Green is #CD32C5, close to the named color Medium Orchid.
Yellow Green contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Yellow Green scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 1.88:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
| Black (#000000) | 11.15:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
Yellow Green and color blindness
These are approximate previews of how Yellow Green can look with the main types of color vision deficiency.
Yellow Green changes noticeably.
Yellow Green changes noticeably.
Yellow Green changes noticeably.
Yellow Green changes noticeably.
Gradients with Yellow Green
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Yellow Green to a lighter tint
background: linear-gradient(135deg, #9acd32 0%, #d7ebad 100%); Yellow Green to its analogous neighbour
background: linear-gradient(135deg, #9acd32 0%, #4ccd32 100%); Yellow Green to its complement
background: linear-gradient(135deg, #9acd32 0%, #6532cd 100%); Colors similar to Yellow Green
How each close match differs from Yellow Green.
Use Yellow Green in code
.element {
color: #9acd32;
background-color: #9acd32;
border-color: yellowgreen; /* yellowgreen is a valid CSS color name */
} :root {
--color-yellow-green: #9acd32;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#9acd32] text-[#9acd32] border-[#9acd32]"></div>
/* Tailwind v4 theme color */
@theme {
--color-yellow-green: #9acd32;
} Yellow Green questions
What is the hex code for Yellow Green?
The hex code for Yellow Green is #9ACD32. In RGB that is rgb(154, 205, 50), and in HSL it is hsl(80, 61%, 50%).
What is the complementary color of Yellow Green?
On the RGB (screen) color wheel, the complement of Yellow Green is #6532CD, which is close to Blue Violet. On the artist’s RYB wheel it is #CD32C5, close to Medium Orchid.
Should I use white or black text on Yellow Green?
Black text. It has a contrast ratio of 11.15:1 against Yellow Green, which is WCAG AAA. The other option scores 1.88:1.
Is Yellow Green accessible as a text color on white?
No. Yellow Green on white scores 1.88:1, which is below the WCAG minimum of 3:1 even for large text.
What are darker and lighter shades of Yellow Green?
Mixing Yellow Green with black gives #7BA428, #5C7B1E, #3E5214, #1F290A (20% to 80% black). Mixing it with white gives #AED75B, #C2E184, #D7EBAD, #EBF5D6 (20% to 80% white).