Moss color: hex codes, shades and palettes
Palettes built around moss. Click any swatch to copy its hex code.
A muted yellow-green, the colour of dry moss rather than wet. Less grey than sage and darker than olive.
Moss hex, RGB, HSL and OKLCH
- HEX
#5A6B4A- RGB
rgb(90, 107, 74)- HSL
hsl(91, 18%, 35%)- OKLCH
oklch(50.4% 0.054 130.3)- On white
- 5.77:1
- On black
- 3.64:1
Shades of moss
9 steps from one base color, generated in OKLCH so each step is an equal perceived step rather than an equal numeric one. Click a swatch to copy it.
Moss color values
| RGB | 90 | 107 | 74 | |
|---|---|---|---|---|
| HSL | 91° | 18% | 35% | |
| HSV | 91° | 31% | 42% | |
| CMYK | 0.16 | 0.00 | 0.31 | 0.58 |
| XYZ | 10.7100 | 13.1833 | 8.4576 | |
| Yxy | 13.1833 | 0.3311 | 0.4075 | |
| CIE-Lab | 43.0382 | -12.9734 | 16.4552 | |
| Hunter Lab | 36.3089 | -10.8886 | 11.6054 | |
| OKLCH | 50.4% | 0.054 | 130.3° |
#5A6B4A is 90 red, 107 green and 74 blue. Its green channel carries the most of it. The nearest of the 216 web safe colors is #666633.
CIE-Lab, XYZ and Yxy are measured against D65, the white point sRGB itself is defined against. Hunter Lab uses the original illuminant C constants, which is what paint and plastics specifications quote, so the two Lab rows are not directly comparable. CMYK is the plain arithmetic conversion: real ink values depend on the press, the paper and the profile.
| Base | Red | Green | Blue |
|---|---|---|---|
| Binary | 01011010 | 01101011 | 01001010 |
| Octal | 132 | 153 | 112 |
| Decimal | 90 | 107 | 74 |
| Hex | 5A | 6B | 4A |
#5a6b4a mixed with black
Ten even steps of the classic shade ramp, worked out in RGB, which is how the term has always been defined and how other references list it. The OKLCH scale further down this page answers a different question: it steps by equal perceived amounts, so its values are not the same.
- #5A6B4A
- #516042
- #48553B
- #3E4A33
- #36402C
- #2D3525
- #242A1D
- #1B2016
- #11150E
- #080A07
- #000000
#5a6b4a mixed with white
The tint ramp, by the same rule in the other direction.
- #5A6B4A
- #6A795C
- #7B886E
- #8B9780
- #9CA692
- #ACB5A4
- #BDC3B6
- #CDD2C8
- #DEE1DA
- #EEF0EC
- #FFFFFF
Channel shares
Color schemes
Turned in OKLCH rather than HSL, so every member keeps the lightness and chroma of the original instead of one of them arriving washed out.
Complementary
- #5A6B4A
- #6E5C7C
Triadic
- #5A6B4A
- #4D6783
- #80585D
Analogous
- #5A6B4A
- #486E5A
- #6B6541
Monochromatic
- #050D00
- #1C2A0C
- #3A492A
- #5A6B4A
- #7C8E6C
- #A1B490
- #C7DAB5
#5a6b4a on black and on white
The quick brown fox jumps over the lazy dog. 3.64:1
The quick brown fox jumps over the lazy dog. 5.77:1
Body text needs 4.5:1 to meet AA and large text needs 3:1, so a ratio tells you which of the two backgrounds this color can be read on, and at what size.
CSS for #5a6b4a
color: #5a6b4a;
background-color: #5a6b4a;
border: 3px solid #5a6b4a;
box-shadow: 1px 1px 3px 2px #5a6b4a;
text-shadow: 4px 4px 2px rgba(90, 107, 74, 0.8);
/* Perceptually even, and what a modern stylesheet wants */
color: oklch(50.4% 0.054 130.3);The OKLCH form is the same color stated so that lightening or darkening it moves by an amount the eye agrees with. Every current browser understands it.
Contrast and readability
Moss on white measures 5.77:1 and on black 3.64:1. WCAG AA asks for 4.5:1 on normal text and 3:1 on large text and UI components, so the higher of those two decides which background it belongs on. In the scale above, 500 is the first to clear 4.5:1 on white, at 5.19:1.
The contrast checker reports every level for a given pair and suggests the nearest passing shade on the same hue. The color picker builds this same scale from any color you paste in.
Related colors: sage, forest green, pine, juniper. See every shade on the colors index.
No moss palettes yet
Run npm run generate to build the dataset.