#507F18#507F18
#507F18 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.2% C 0.139 H 131.8°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #507F18 |
|---|---|
| RGB | rgb(80, 127, 24) |
| HSL | hsl(87, 68%, 30%) |
| HSV | hsv(87, 81%, 50%) |
| CMYK | cmyk(37%, 0%, 81.1%, 50.2%) |
| CIE-LAB | lab(48.20, -32.59, 46.77) |
| CIE-LCH | lch(48.20, 57.01, 124.86°) |
| OKLab | oklab(54.25% -0.0923 0.1034) |
| OKLCH | oklch(54.25% 0.139 131.8) |
| XYZ | xyz(11.0624, 16.9497, 3.5527) |
| Luminance | 0.1695 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado
#568203
ΔE00 2.53
Dark Grass Green
#388004
ΔE00 3.49
Dirty Green
#667E2C
ΔE00 4.76
Sap Green
#5C8B15
ΔE00 4.83
Mossy Green
#638B27
ΔE00 5.18
Tree Green
#2A7E19
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#507F18 #47187F
analogous
#7F7B18 #507F18 #1C7F18
triadic
#507F18 #18507F #7F1850
tetradic
#507F18 #187F7B #47187F #7F181C
square
#507F18 #187F7B #47187F #7F181C
split-complementary
#507F18 #181C7F #7B187F
monochromatic
#101A05 #304C0E #507F18 #70B222 #90D938
Accessibility & contrast
On white
4.78
#507F18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#507F18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #507F18
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##507F18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##507F18 | 1.00 | 4.78 | 4.39 | 4.78 |
| #FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7E7123
Tritanopia (blue-blind)
#51796C
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #507f18; /* rgb */ color: rgb(80, 127, 24); /* oklch */ color: oklch(54.2% 0.139 131.8);
Tailwind
colors: {
custom: {
50: '#86a45e',
500: '#507f18',
950: '#000000',
},
}SCSS
$custom: #507f18; $custom-light: #86a45e; $custom-dark: #000000;
JSON
{
"hex": "#507f18",
"rgb": {
"r": 80,
"g": 127,
"b": 24
},
"hsl": {
"h": 87.379,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.54249,
"c": 0.13863,
"h": 131.8
},
"luminance": 0.1695
}Semantic roles & 50–950 ramp
primary
#507F18
secondary
#743FB3
accent
#3DEB8C
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79