#518F2A#518F2A
#518F2A is a mid, vivid yellow-green. Relative luminance 0.216; OKLCH L 58.7% C 0.148 H 135.7°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).
Color values
| HEX | #518F2A |
|---|---|
| RGB | rgb(81, 143, 42) |
| HSL | hsl(97, 55%, 36%) |
| HSV | hsv(97, 71%, 56%) |
| CMYK | cmyk(43.4%, 0%, 70.6%, 43.9%) |
| CIE-LAB | lab(53.56, -38.08, 45.40) |
| CIE-LCH | lch(53.56, 59.26, 129.99°) |
| OKLab | oklab(58.69% -0.106 0.1033) |
| OKLCH | oklch(58.69% 0.148 135.7) |
| XYZ | xyz(13.6334, 21.5606, 5.6333) |
| Luminance | 0.2156 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Sap Green
#5C8B15
ΔE00 3.76
Mossy Green
#638B27
ΔE00 3.81
Moss Green (survey)
#658B38
ΔE00 4.04
Fern Green
#548D44
ΔE00 4.39
Grass Green
#3F9B0B
ΔE00 5.05
Forestgreen (CSS)
#228B22
ΔE00 5.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#518F2A #682A8F
analogous
#848F2A #518F2A #2A8F36
triadic
#518F2A #2A518F #8F2A51
tetradic
#518F2A #2A848F #682A8F #8F362A
square
#518F2A #2A848F #682A8F #8F362A
split-complementary
#518F2A #362A8F #8F2A84
monochromatic
#1B300E #36601C #518F2A #6CBE38 #8DD162
Accessibility & contrast
On white
3.95
#518F2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.31
#518F2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #518F2A
5.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##518F2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##518F2A | 1.00 | 3.95 | 5.31 | 5.31 |
| #FFFFFF | 3.95 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#94831B
Deuteranopia (green-blind)
#8C7E33
Tritanopia (blue-blind)
#4F8A7B
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #518f2a; /* rgb */ color: rgb(81, 143, 42); /* oklch */ color: oklch(58.7% 0.148 135.7);
Tailwind
colors: {
custom: {
50: '#87b069',
500: '#518f2a',
950: '#000000',
},
}SCSS
$custom: #518f2a; $custom-light: #87b069; $custom-dark: #000000;
JSON
{
"hex": "#518f2a",
"rgb": {
"r": 81,
"g": 143,
"b": 42
},
"hsl": {
"h": 96.832,
"s": 54.595,
"l": 36.275
},
"oklch": {
"l": 0.58686,
"c": 0.14796,
"h": 135.7
},
"luminance": 0.21561
}Semantic roles & 50–950 ramp
primary
#518F2A
secondary
#955EB7
accent
#4ADEA5
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1007
muted
#7D7F7A