#508F2A#508F2A
#508F2A is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.6% C 0.148 H 136.0°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #508F2A |
|---|---|
| RGB | rgb(80, 143, 42) |
| HSL | hsl(97, 55%, 36%) |
| HSV | hsv(97, 71%, 56%) |
| CMYK | cmyk(44.1%, 0%, 70.6%, 43.9%) |
| CIE-LAB | lab(53.51, -38.43, 45.34) |
| CIE-LCH | lch(53.51, 59.43, 130.28°) |
| OKLab | oklab(58.63% -0.1068 0.1032) |
| OKLCH | oklch(58.63% 0.148 136) |
| XYZ | xyz(13.5483, 21.5168, 5.6293) |
| Luminance | 0.2152 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Sap Green
#5C8B15
ΔE00 3.89
Mossy Green
#638B27
ΔE00 3.95
Moss Green (survey)
#658B38
ΔE00 4.15
Fern Green
#548D44
ΔE00 4.35
Grass Green
#3F9B0B
ΔE00 5.02
Forestgreen (CSS)
#228B22
ΔE00 5.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#508F2A #692A8F
analogous
#838F2A #508F2A #2A8F37
triadic
#508F2A #2A508F #8F2A50
tetradic
#508F2A #2A838F #692A8F #8F372A
square
#508F2A #2A838F #692A8F #8F372A
split-complementary
#508F2A #372A8F #8F2A83
monochromatic
#1B300E #36601C #508F2A #6ABE38 #8CD162
Accessibility & contrast
On white
3.96
#508F2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.30
#508F2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #508F2A
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##508F2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##508F2A | 1.00 | 3.96 | 5.30 | 5.30 |
| #FFFFFF | 3.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#94831B
Deuteranopia (green-blind)
#8C7E33
Tritanopia (blue-blind)
#4E8A7B
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #508f2a; /* rgb */ color: rgb(80, 143, 42); /* oklch */ color: oklch(58.6% 0.148 136.0);
Tailwind
colors: {
custom: {
50: '#86b069',
500: '#508f2a',
950: '#000000',
},
}SCSS
$custom: #508f2a; $custom-light: #86b069; $custom-dark: #000000;
JSON
{
"hex": "#508f2a",
"rgb": {
"r": 80,
"g": 143,
"b": 42
},
"hsl": {
"h": 97.426,
"s": 54.595,
"l": 36.275
},
"oklch": {
"l": 0.58634,
"c": 0.14849,
"h": 136
},
"luminance": 0.21518
}Semantic roles & 50–950 ramp
primary
#508F2A
secondary
#955EB7
accent
#4ADEA6
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1007
muted
#7D7F7A