Yellow green #9ACD32
Yellow green is one of the named colours in CSS, written yellowgreen. Black text reaches 11.15:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | yellowgreen |
|---|---|
| HEX | #9ACD32 |
| RGB | rgb(154 205 50) |
| HSL | hsl(80 61% 50%) |
| OKLCH | oklch(78.5% 0.184 126.6) |
| White text | 1.88:1 · body text AA Fail |
| Black text | 11.15:1 · body text AA Pass |
Colours that go with Yellow green
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Night Green (#87C540), close. These are the colours Wada paired it with, ranked by their contrast with Yellow green itself.
| Colour | HEX | Contrast with Yellow green | Body text AA |
|---|---|---|---|
| Mars Brown Tobacco | #653514 | 5.38:1 | Pass |
| Cinnamon Rufous | #C27544 | 1.88:1 | Fail |
| Peach Red | #F15A30 | 1.79:1 | Fail |
| Sulpher Yellow | #F5ECC2 | 1.58:1 | Fail |
| Lemon Yellow | #F8ED43 | 1.54:1 | Fail |
| Ochraceous Salmon | #D8A37B | 1.18:1 | Fail |
| Yellow Green | #AFD472 | 1.12:1 | Fail |
Palettes with Night Green
Shades and tints of Yellow green
Nine lightness steps in OKLCH that keep the hue of Yellow green. Chroma is reduced only where sRGB cannot show it.
- 100#E8FFCA
- 200#C4FA67
- 300#AEE34D
- 400#92C526
- 500#77A400
- 600#5C7F00
- 700#446000
- 800#2E4200
- 900#192700
:root {
--yellowgreen-100: #E8FFCA;
--yellowgreen-200: #C4FA67;
--yellowgreen-300: #AEE34D;
--yellowgreen-400: #92C526;
--yellowgreen-500: #77A400;
--yellowgreen-600: #5C7F00;
--yellowgreen-700: #446000;
--yellowgreen-800: #2E4200;
--yellowgreen-900: #192700;
}
Text that keeps Yellow green on screen
Text #192700 on #9ACD32 reaches 8.38:1, which passes WCAG AA for body text. Check it on a dashboard